···119120 networking.usePredictableInterfaceNames = false;
121122- # Make sure we use a patched QEMU that ignores file ownership.
123- virtualisation.qemu.program = "${pkgs.qemu_test}/bin/qemu-kvm";
124-125 # Make it easy to log in as root when running the test interactively.
126 users.extraUsers.root.initialHashedPassword = mkOverride 150 "";
127
···119120 networking.usePredictableInterfaceNames = false;
121000122 # Make it easy to log in as root when running the test interactively.
123 users.extraUsers.root.initialHashedPassword = mkOverride 150 "";
124
+1-9
nixos/modules/virtualisation/qemu-vm.nix
···70 '')}
7172 # Start QEMU.
73- exec ${cfg.qemu.program} \
74 -name ${vmName} \
75 -m ${toString config.virtualisation.memorySize} \
76 ${optionalString (pkgs.stdenv.system == "x86_64-linux") "-cpu kvm64"} \
···299 };
300301 virtualisation.qemu = {
302- program = mkOption {
303- type = types.path;
304- default = "${pkgs.qemu_kvm}/bin/qemu-kvm";
305- defaultText = "\${pkgs.qemu_kvm}/bin/qemu-kvm";
306- example = literalExample "\${pkgs.qemu_test}/bin/qemu-kvm";
307- description = "The QEMU variant used to start the VM.";
308- };
309-310 options =
311 mkOption {
312 type = types.listOf types.unspecified;