From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pauline Middelink Subject: kvm-85 won't boot guests with virtio block device Date: Fri, 24 Apr 2009 19:18:53 +0200 Message-ID: <20090424171853.GA3798@polyware.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" To: kvm@vger.kernel.org Return-path: Received: from nathan.polyware.nl ([80.89.239.2]:58916 "EHLO nathan.polyware.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755112AbZDXR1G (ORCPT ); Fri, 24 Apr 2009 13:27:06 -0400 Received: from nathan.polyware.nl (localhost.localdomain [127.0.0.1]) by nathan.polyware.nl (8.13.8/8.13.8) with ESMTP id n3OHIrQX004153 for ; Fri, 24 Apr 2009 19:18:53 +0200 Received: (from middelin@localhost) by nathan.polyware.nl (8.13.8/8.13.8/Submit) id n3OHIrf2004152 for kvm@vger.kernel.org; Fri, 24 Apr 2009 19:18:53 +0200 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, To follow up on the issues with kvm-85 and libvirt I discovered the following issue: libvirt detects from the help of qemu which options it can give to qemu. (in this case obviously /usr/kvm/bin/qemu-system-x86_64 -help) If you look carefully to the output of the -help of qemu from kvm-84 and kvm-85, you will notice the boot flag to the -drive option has disappeared! Hence letting libvirt believe it isnt allowed to use it, hence the unable to boot error. A small patch which fixes the problem for me, is attached. Met vriendelijke groet, Pauline Middelink -- GPG Key fingerprint = 2D5B 87A7 DDA6 0378 5DEA BD3B 9A50 B416 E2D0 C3C2 For more details look at my website http://www.polyware.nl/~middelink --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="kvm-85-virtio-boot.patch" diff -ur kvm-85/qemu/qemu-options.hx kvm-85a/qemu/qemu-options.hx --- kvm-85/qemu/qemu-options.hx 2009-04-21 11:57:31.000000000 +0200 +++ kvm-85a/qemu/qemu-options.hx 2009-04-24 19:04:50.000000000 +0200 @@ -77,6 +77,7 @@ "-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n" " [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]\n" " [,cache=writethrough|writeback|none][,format=f][,serial=s]\n" + " [,boot=on|off]\n" " use 'file' as a drive image\n") STEXI @item -drive @var{option}[,@var{option}[,@var{option}[,...]]] --OgqxwSJOaUobr8KG--