From 7490ed85811bed1822ca51fa7bdb796beb354dfe Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 10 Jun 2018 11:02:27 -0400 Subject: Update for newer versions of qemu (The new qemu warns about opening a file as a raw disk image unless `raw` is specified explicitly.) --- src/qemu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qemu.sh') diff --git a/src/qemu.sh b/src/qemu.sh index 11de8e7..8f53490 100755 --- a/src/qemu.sh +++ b/src/qemu.sh @@ -61,5 +61,5 @@ sudo qemu-system-x86_64 -enable-kvm -smp 2 -m 640 -k en-us \ -net nic,vlan=0,model=virtio,macaddr=$MAC \ ${USE_NET:+ -net "$NET"} \ -rtc base=localtime \ - -hda "$disk" \ + -drive index=0,media=disk,format=raw,file="$disk" \ "$@" -- cgit v1.2.3