astro / microvm.nix

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

Way to make several microvms talk to the same nix-daemon on the host? #65

Open locallycompact opened 1 year ago

locallycompact commented 1 year ago

Hi, I want to run several gitlab runners on the same host in microvms, but share the build products. Is it possible to expose the nix-daemon on the host and have the microvms talk to it rather than having separate write only store overlays for each vm?

astro commented 1 year ago

In contrast to containers, you cannot just bind-mount a socket into a VM.

Maybe remote builders are a solution?