mac-vz / macvz

macOS Virtualization for linux
MIT License
83 stars 5 forks source link

Support for libslirp #19

Open balajiv113 opened 2 years ago

balajiv113 commented 2 years ago

Describe the solution you'd like Idea is to implement libslirp or equivalent networking model for macvz.

With this implementation, we should be able to resolve issues around vpn connection and at the same time with support for multiple network interface we should be able to provide network access among VMs using NAT or Bridge Network support from Apple Virtualization

A clear and concise description of what you want to happen.

Describe alternatives you've considered

Additional context Supporting both the architecture is a important one.

balajiv113 commented 2 years ago

The following are the results from the spikes done as of now for this, libslirp Was able to integrate slirp like network using libslirp-rs cli.

gvisor-tap-vsock Was able to integrate slirp like network but having issues with respect to https packets. Needs further analysis on this to properly support raw dgram sockets.

Both these should be tested in mac m1 as well

balajiv113 commented 2 years ago

gvisor-tap-vsock After version upgrade of gvisor, working seemlessly with Virtualization framework. https://github.com/balajiv113/gvisor-tap-vsock

We will proceed with this integration, as this has direct golang integration and has better performance than libslirp-cli