dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame qemu-virtio-blk-boot-on.patch

Mark McLoughlin 92dcc1
From: Pauline Middelink <middelink@polyware.nl>
Mark McLoughlin 92dcc1
To: kvm@vger.kernel.org
Mark McLoughlin 92dcc1
Subject: kvm-85 won't boot guests with virtio block device
Mark McLoughlin 92dcc1
Mark McLoughlin 92dcc1
Hi,
Mark McLoughlin 92dcc1
Mark McLoughlin 92dcc1
To follow up on the issues with kvm-85 and libvirt I discovered the following
Mark McLoughlin 92dcc1
issue: libvirt detects from the help of qemu which options it can give to
Mark McLoughlin 92dcc1
qemu. (in this case obviously /usr/kvm/bin/qemu-system-x86_64 -help)
Mark McLoughlin 92dcc1
Mark McLoughlin 92dcc1
If you look carefully to the output of the -help of qemu from kvm-84 and
Mark McLoughlin 92dcc1
kvm-85, you will notice the boot flag to the -drive option has disappeared!
Mark McLoughlin 92dcc1
Hence letting libvirt believe it isnt allowed to use it, hence the unable
Mark McLoughlin 92dcc1
to boot error.
Mark McLoughlin 92dcc1
Mark McLoughlin 92dcc1
A small patch which fixes the problem for me, is attached.
Mark McLoughlin 92dcc1
Mark McLoughlin 92dcc1
    Met vriendelijke groet,
Mark McLoughlin 92dcc1
        Pauline Middelink
Mark McLoughlin 92dcc1
Mark McLoughlin 92dcc1
diff -ur kvm-85/qemu/qemu-options.hx kvm-85a/qemu/qemu-options.hx
Mark McLoughlin 92dcc1
--- kvm-85/qemu/qemu-options.hx 2009-04-21 11:57:31.000000000 +0200
Mark McLoughlin 92dcc1
+++ kvm-85a/qemu/qemu-options.hx        2009-04-24 19:04:50.000000000 +0200
Mark McLoughlin 92dcc1
@@ -77,6 +77,7 @@
Mark McLoughlin 92dcc1
     "-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n"
Mark McLoughlin 92dcc1
     "       [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]\n"
Mark McLoughlin 92dcc1
     "       [,cache=writethrough|writeback|none][,format=f][,serial=s]\n"
Mark McLoughlin 92dcc1
+    "       [,boot=on|off]\n"
Mark McLoughlin 92dcc1
     "                use 'file' as a drive image\n")
Mark McLoughlin 92dcc1
 STEXI
Mark McLoughlin 92dcc1
 @item -drive @var{option}[,@var{option}[,@var{option}[,...]]]
Mark McLoughlin 92dcc1