* Re: [libvirt-users] Problems with libvirt / qemu
[not found] ` <AANLkTin61b11C1xozyVPD+H3MT5PP1J6rSFdQcpi-vjs@mail.gmail.com>
@ 2010-10-11 16:57 ` Dan Johansson
2010-10-11 20:10 ` Brian Jackson
0 siblings, 1 reply; 2+ messages in thread
From: Dan Johansson @ 2010-10-11 16:57 UTC (permalink / raw)
To: kvm
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 "<boot dev='hd'/>"
>
> 2010/10/10 Dan Johansson <kvm@dmj.nu>:
> > 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"
> >
> >
> > The libvirt XML-file was created using "virsh domxml-from-native qemu-argv" and this is the result of that conversion:
> > <domain type='kvm'>
> > <name>wilmer</name>
> > <uuid>a421968d-0573-1356-8cb7-32caff525a03</uuid>
> > <memory>2097152</memory>
> > <currentMemory>2097152</currentMemory>
> > <vcpu>2</vcpu>
> > <os>
> > <type arch='x86_64' machine='pc-0.12'>hvm</type>
> > <boot dev='hd'/>
> > </os>
> > <features>
> > <acpi/>
> > </features>
> > <clock offset='utc'/>
> > <on_poweroff>destroy</on_poweroff>
> > <on_reboot>restart</on_reboot>
> > <on_crash>destroy</on_crash>
> > <devices>
> > <emulator>/usr/bin/qemu-system-x86_64</emulator>
> > <disk type='file' device='disk'>
> > <source file='/var/lib/kvm/Wilmer/Wilmer.qcow2'/>
> > <target dev='hda' bus='ide'/>
> > <address type='drive' controller='0' bus='0' unit='0'/>
> > </disk>
> > <controller type='ide' index='0'>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
> > </controller>
> > <interface type='ethernet'>
> > <mac address='de:ed:be:ef:01:03'/>
> > <script path='no'/>
> > <target dev='qtap13'/>
> > <model type='rtl8139'/>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
> > </interface>
> > <interface type='ethernet'>
> > <mac address='de:ed:be:ef:03:03'/>
> > <script path='no'/>
> > <target dev='qtap33'/>
> > <model type='rtl8139'/>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
> > </interface>
> > <input type='mouse' bus='ps2'/>
> > <graphics type='vnc' port='5903' autoport='no' listen=''/>
> > <video>
> > <model type='cirrus' vram='9216' heads='1'/>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
> > </video>
> > </devices>
> > </domain>
> >
> >
> > Anyone seeing something obvious that I have missed?
> >
> > Regards,
> > --
> > Dan Johansson, <http://www.dmj.nu>
> > ***************************************************
> > This message is printed on 100% recycled electrons!
> > ***************************************************
> >
> > _______________________________________________
> > libvirt-users mailing list
> > libvirt-users@redhat.com
> > https://www.redhat.com/mailman/listinfo/libvirt-users
> >
>
--
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [libvirt-users] Problems with libvirt / qemu
2010-10-11 16:57 ` [libvirt-users] Problems with libvirt / qemu Dan Johansson
@ 2010-10-11 20:10 ` Brian Jackson
0 siblings, 0 replies; 2+ messages in thread
From: Brian Jackson @ 2010-10-11 20:10 UTC (permalink / raw)
To: Dan Johansson; +Cc: kvm
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 "<boot dev='hd'/>"
> >
> > 2010/10/10 Dan Johansson <kvm@dmj.nu>:
> > > 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: <domain
> > > type='kvm'>
> > >
> > > <name>wilmer</name>
> > > <uuid>a421968d-0573-1356-8cb7-32caff525a03</uuid>
> > > <memory>2097152</memory>
> > > <currentMemory>2097152</currentMemory>
> > > <vcpu>2</vcpu>
> > > <os>
> > >
> > > <type arch='x86_64' machine='pc-0.12'>hvm</type>
> > > <boot dev='hd'/>
> > >
> > > </os>
> > > <features>
> > >
> > > <acpi/>
> > >
> > > </features>
> > > <clock offset='utc'/>
> > > <on_poweroff>destroy</on_poweroff>
> > > <on_reboot>restart</on_reboot>
> > > <on_crash>destroy</on_crash>
> > > <devices>
> > >
> > > <emulator>/usr/bin/qemu-system-x86_64</emulator>
> > > <disk type='file' device='disk'>
> > >
> > > <source file='/var/lib/kvm/Wilmer/Wilmer.qcow2'/>
> > > <target dev='hda' bus='ide'/>
> > > <address type='drive' controller='0' bus='0' unit='0'/>
> > >
> > > </disk>
> > > <controller type='ide' index='0'>
> > >
> > > <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> > > function='0x1'/>
> > >
> > > </controller>
> > > <interface type='ethernet'>
> > >
> > > <mac address='de:ed:be:ef:01:03'/>
> > > <script path='no'/>
> > > <target dev='qtap13'/>
> > > <model type='rtl8139'/>
> > > <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> > > function='0x0'/>
> > >
> > > </interface>
> > > <interface type='ethernet'>
> > >
> > > <mac address='de:ed:be:ef:03:03'/>
> > > <script path='no'/>
> > > <target dev='qtap33'/>
> > > <model type='rtl8139'/>
> > > <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> > > function='0x0'/>
> > >
> > > </interface>
> > > <input type='mouse' bus='ps2'/>
> > > <graphics type='vnc' port='5903' autoport='no' listen=''/>
> > > <video>
> > >
> > > <model type='cirrus' vram='9216' heads='1'/>
> > > <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> > > function='0x0'/>
> > >
> > > </video>
> > >
> > > </devices>
> > >
> > > </domain>
> > >
> > >
> > > Anyone seeing something obvious that I have missed?
> > >
> > > Regards,
> > >
> > > --
> > > Dan Johansson, <http://www.dmj.nu>
> > > ***************************************************
> > > This message is printed on 100% recycled electrons!
> > > ***************************************************
> > >
> > > _______________________________________________
> > > libvirt-users mailing list
> > > libvirt-users@redhat.com
> > > https://www.redhat.com/mailman/listinfo/libvirt-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-11 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201010101614.57184.kvm@dmj.nu>
[not found] ` <AANLkTin61b11C1xozyVPD+H3MT5PP1J6rSFdQcpi-vjs@mail.gmail.com>
2010-10-11 16:57 ` [libvirt-users] Problems with libvirt / qemu Dan Johansson
2010-10-11 20:10 ` Brian Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox