From: Brian Jackson Subject: Re: [libvirt-users] Problems with libvirt / qemu Date: Mon, 11 Oct 2010 15:10:15 -0500 Message-ID: <201010111510.16169.iggy@theiggy.com> References: <201010101614.57184.kvm@dmj.nu> <201010111857.27964.kvm@dmj.nu> Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Dan Johansson Return-path: Received: from theiggy.com ([66.220.1.110]:51792 "EHLO mail.theiggy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756037Ab0JKUK2 (ORCPT ); Mon, 11 Oct 2010 16:10:28 -0400 In-Reply-To: <201010111857.27964.kvm@dmj.nu> Sender: kvm-owner@vger.kernel.org List-ID: On Monday, October 11, 2010 11:57:27 am Dan Johansson wrote: > Yes, the image contains an OS (it works if I start the guest manually). > > On Monday 11 October 2010 03.41:29 jbuy0710 wrote: > > The image contains an OS or not? > > If not, you can't choose to boot from disk like "" > > > > 2010/10/10 Dan Johansson : > > > HI, > > > > > > I have a small problem with libvirt / qemu. I have created a guest and > > > when I start it from the command-line the guests starts OK, but when I > > > start the guest through libvirt with "virsh start" I get "Booting from > > > Hard Disk... Boot failed: not a bootable disk > > > No bootable device" > > > > > > This is the command-line I use to start the guest (which works) > > > "cd /var/lib/kvm/Wilmer; /usr/bin/qemu-system-x86_64 --enable-kvm \ > > > > > > -net nic,vlan=1,model=rtl8139,macaddr=DE:ED:BE:EF:01:03 -net > > > tap,vlan=1,ifname=qtap13,script=no,downscript=no \ -net > > > nic,vlan=3,model=rtl8139,macaddr=DE:ED:BE:EF:03:03 -net > > > tap,vlan=3,ifname=qtap33,script=no,downscript=no \ -m 2048 -k > > > de-ch -vnc :3 -daemonize \ > > > Wilmer.qcow2" My guess would be that libvirt is using the -drive syntax with if=ide and boot=on. Those 2 options together are known to be broken in certain versions of qemu/kvm. You can find out by checking in the libvirt logs to see what kvm command it's running to start the guest. > > > > > > The libvirt XML-file was created using "virsh domxml-from-native > > > qemu-argv" and this is the result of that conversion: > > type='kvm'> > > > > > > wilmer > > > a421968d-0573-1356-8cb7-32caff525a03 > > > 2097152 > > > 2097152 > > > 2 > > > > > > > > > hvm > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > destroy > > > restart > > > destroy > > > > > > > > > /usr/bin/qemu-system-x86_64 > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > function='0x1'/> > > > > > > > > > > > > > > > > > >