Nixos configuration file to VM (e.g. qemu) - nix-build vm

  • if I run
    nix-build '<nixpkgs/nixos>' -A vm --arg configuration configuration.nix # that the file which i run on bare metal
  • I will get the derivative path where you have to add
    /bin/run-nixosP-vm
  • and executing it will open qemu
  • It takes some seconds and the login screen is up
  • I enter my password but than

my tower start to


I can run e.g. Ubuntu on virt-manager (qemu/kvm) without “issues”


Does some else has experienced that behavior?
How to debug the VM?

1 Like