Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 621903 - Booting Virtual Domain fails on "Grub Loading"
Booting Virtual Domain fails on "Grub Loading"
Product: Virtualization Tools
Classification: Community
Component: libvirt (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Libvirt Maintainers
Depends On:
  Show dependency treegraph
Reported: 2010-08-06 09:04 EDT by M. Enslin
Modified: 2015-04-14 09:41 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-04-14 09:41:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description M. Enslin 2010-08-06 09:04:21 EDT
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 09:41:48 EDT
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.