astro / microvm.nix

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

Forward NOTIFY_SOCKET over vsock for cloud-hypervisor #219

Closed bouk closed 5 months ago

bouk commented 5 months ago

This will forward the systemd ready notification inside the VM so the systemd service status reflects whether the VM has finished booting.

I had to use socat to forward the messages because the NOTIFY_SOCKET that systemd creates only accepts datagrams, but cloud-hypervisor only supports streaming unix sockets.

Fixes #205

astro commented 5 months ago

Rebased as a439229a1af9e0fae3b3b21619c1983901a41bf7