From e2e7b689b47c70580af87f64a5b1e9cd5a5cc835 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 10 Mar 2011 11:39:37 +0000 Subject: [PATCH] * Fix `nixos-rebuild build-vm-with-bootloader': QEMU now requires the `readonly' flag if the disk image is not writable. svn path=/nixos/trunk/; revision=26245 --- modules/virtualisation/qemu-vm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/virtualisation/qemu-vm.nix b/modules/virtualisation/qemu-vm.nix index e97dde690922..7eb2d0769862 100644 --- a/modules/virtualisation/qemu-vm.nix +++ b/modules/virtualisation/qemu-vm.nix @@ -162,7 +162,7 @@ let -net user,vlan=0,guestfwd=tcp:10.0.2.4:445-chardev:samba''${QEMU_NET_OPTS:+,$QEMU_NET_OPTS} \ ${if cfg.useBootLoader then '' -drive index=0,file=$NIX_DISK_IMAGE,if=virtio,cache=writeback,werror=report \ - -drive index=1,file=${bootDisk}/disk.img,if=virtio,boot=on \ + -drive index=1,file=${bootDisk}/disk.img,if=virtio,boot=on,readonly \ '' else '' -drive file=$NIX_DISK_IMAGE,if=virtio,cache=writeback,werror=report \ -kernel ${config.system.build.toplevel}/kernel \