Gentoo Archives: gentoo-user

From: Dan Johansson <Dan.Johansson@×××.nu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: [OT] Problems with libvirt / qemu
Date: Mon, 11 Oct 2010 17:04:24
Message-Id: 201010111848.12192.Dan.Johansson@dmj.nu
In Reply to: [gentoo-user] Re: [OT] Problems with libvirt / qemu by walt
1 On Sunday 10 October 2010 20.08:26 walt wrote:
2 > On 10/10/2010 07:05 AM, Dan Johansson wrote:
3 > > I know this is of topic, but this is one of the few lists where you mostly get a competent answer.
4 > >
5 > > I have a small problem with libvirt / qemu. I have created a guest (also gentoo) on a gentoo hosts 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...
6 > > Boot failed: not a bootable disk
7 > > No bootable device"
8 > >
9 > > This is the command-line I use to start the guest (which works)
10 > > "cd /var/lib/kvm/Wilmer; /usr/bin/qemu-system-x86_64 --enable-kvm \
11 > > -net nic,vlan=1,model=rtl8139,macaddr=DE:ED:BE:EF:01:03 -net tap,vlan=1,ifname=qtap13,script=no,downscript=no \
12 > > -net nic,vlan=3,model=rtl8139,macaddr=DE:ED:BE:EF:03:03 -net tap,vlan=3,ifname=qtap33,script=no,downscript=no \
13 > > -m 2048 -k de-ch -vnc :3 -daemonize \
14 > > Wilmer.qcow2"
15 > >
16 > >
17 > > The libvirt XML-file was created using "virsh domxml-from-native qemu-argv" and this is the result of that conversion:
18 >
19 > > <boot dev='hd'/>
20 >
21 > You obviously know more about libvirt than I do, but I'm wondering about
22 > that 'hd'. qemu knows enough to interpret Wilmer.qcow2 as the boot disk,
23 > but maybe libvirt isn't that smart.
24 >
25 > I'd maybe try using an explicit '-hda Wilmer.qcow2' in your original script
26 > so virsh doesn't need to assume anything while converting it.
27
28 Good point - but that did not help, still the same. :-(
29
30 --
31 Dan Johansson, <http://www.dmj.nu>
32 ***************************************************
33 This message is printed on 100% recycled electrons!
34 ***************************************************