arighi / virtme-ng

Quickly build and run kernels inside a virtualized snapshot of your live system
GNU General Public License v2.0
305 stars 33 forks source link

Running on NixOS #95

Open zyklotomic opened 4 months ago

zyklotomic commented 4 months ago

Wondering if anyone was able to get this to run on NixOS. I wrote a flake and believe I got vng the binary to build and install properly. Furthermore, I was able to build the kernel via vng -b. However, I was unable to get the vm to actually run.

Will share my flake soon.

zyklotomic commented 4 months ago

Link to the flakes

https://github.com/zyklotomic/virtme-ng-flake.nix

I enter a nix-shell to build using

nix-shell -p file virtiofsd busybox elfutils
[nix-shell:~/linux-trees/linux] $ vng -b
arighi commented 4 months ago

@zyklotomic thanks for looking at this. I have zero experience with NixOS.. but I'll take a look as soon as I can find some time!