astro / microvm.nix

NixOS MicroVMs
https://astro.github.io/microvm.nix/
MIT License
1.38k stars 101 forks source link

Add macvtap support for crossvm #150

Closed pinkisemils closed 1 year ago

pinkisemils commented 1 year ago

This solves #143, had this code lying around for a while, but finally got around to pushing it. It's not a big change, and I've only verified that it works in my own limited test case.

astro commented 1 year ago

Thanks for taking the initiative.

I had to add use of macvtapFds to make the behaviour consistent with the other hypervisors. Better have a look if that's still fitting your use-case!