Unable to create a vm on NixOS

I currently try to use the lxd vm feature on NixOS. I guess this is kind of problem of a missing dependency.

I have a description of the problem here: https://github.com/NixOS/nixpkgs/issues/140431

Thanks
Benjamin

To get VM working, you need at least:

  • qemu-system-x86_64 available in the PATH
  • /dev/kvm present
  • The vhost-vsock kernel module loadable

Once that’s all available, restarting LXD should have it detect that QEMU is available.
You’ll still need some files for the firmware (/usr/share/OVMF/) but that’s detected later on.