diff --git a/lib/test-driver/Machine.pm b/lib/test-driver/Machine.pm index 069d60261a1a..43463eb7134e 100644 --- a/lib/test-driver/Machine.pm +++ b/lib/test-driver/Machine.pm @@ -25,7 +25,7 @@ sub new { $startCommand = "qemu-system-x86_64 -m 384 -no-kvm-irqchip " . "-net nic,model=virtio -net user \$QEMU_OPTS "; - $startCommand .= "-drive file=" . Cwd::abs_path($args->{hda}) . ",if=virtio,boot=on " + $startCommand .= "-drive file=" . Cwd::abs_path($args->{hda}) . ",if=virtio,boot=on,werror=report " if defined $args->{hda}; $startCommand .= "-cdrom $args->{cdrom} " if defined $args->{cdrom}; diff --git a/modules/virtualisation/qemu-vm.nix b/modules/virtualisation/qemu-vm.nix index 09764c09b909..a17e167cb46a 100644 --- a/modules/virtualisation/qemu-vm.nix +++ b/modules/virtualisation/qemu-vm.nix @@ -86,7 +86,7 @@ let exec ${pkgs.qemu_kvm}/bin/qemu-system-x86_64 -m ${toString config.virtualisation.memorySize} \ -no-kvm-irqchip \ -net nic,model=virtio -net user -smb / \ - -drive file=$NIX_DISK_IMAGE,if=virtio,boot=on \ + -drive file=$NIX_DISK_IMAGE,if=virtio,boot=on,werror=report \ -kernel ${config.system.build.toplevel}/kernel \ -initrd ${config.system.build.toplevel}/initrd \ ${qemuGraphics} \