Bug 621903 - Booting Virtual Domain fails on "Grub Loading"
Summary: Booting Virtual Domain fails on "Grub Loading"
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2010-08-06 13:04 UTC by M. Enslin
Modified: 2015-04-14 13:41 UTC (History)
3 users (show)

Clone Of:
Last Closed: 2015-04-14 13:41:48 UTC

Attachments (Terms of Use)

Description M. Enslin 2010-08-06 13:04:21 UTC
Description of problem:
If trying to boot from virtual harddisk, booting fails with staying at "Grub loading" and 100% CPU usage. Booting from virtual CD-Rom succeeds.

Actual host is a self-virtualized system with a recent x64-Gentoo. It is a test system to migrate some HP-Blade-Servers from kvm to kvm&libvirt.

The following configuration is for a simple testsystem:
<domain type='qemu'>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
    <disk type='file' device='disk'>
      <source file='/home/virt/system/ipfire3.sys'/>
      <target dev='hda'/>
    <graphics type='vnc' port='5900' listen=''/>

Libvirt produces following output to start qemu:
/usr/bin/qemu-system-x86_64 -S -M pc -no-kvm -m 125 -smp 1,sockets=1,cores=1,threads=1 -name Ipfire -uuid 0068989a-21ae-4f38-900f-21571808da9a -nodefaults -chardev socket,id=monitor,path=/home/virt/.libvirt/qemu/lib/Ipfire.monitor,server,nowait -mon chardev=monitor,mode=readline -rtc base=utc -no-acpi -boot c -drive file=/home/virt/system/ipfire3.sys,if=none,id=drive-ide0-0-0,boot=on -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -usb -vnc -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3

If I start qemu manually with these parameters the system also fails to boot (same error).

If I set "boot=off" instead of "boot=on" or remove "boot=on", the system succeeds booting.
Setting drive as SCSI or virtio does not help

Version-Release number of selected component (if applicable):
The current version of libvirt & kvm (prior versions were also tested negative):
Compiled against library: libvir 0.8.2
Using library: libvir 0.8.2
Using API: QEMU 0.8.2
Running hypervisor: QEMU 0.12.4

How reproducible:

Steps to Reproduce:
see above
Actual results:
Virtual Domains not booting from virtual harddisks

Expected results:
Virtual Domains booting from virtual harddisks

Additional info:

Comment 1 Martin Kletzander 2015-04-14 13:41:48 UTC
This was probably a bug in QEMU, but anyway, libvirt is using bootindex now, so this shouldn't be a problem.  Reopen if you disagree.

Note You need to log in before you can comment on or make changes to this bug.