Bug 497844

Summary: RFE: Add possibility to pass option-rom-parameter(s) to qemu
Product: [Community] Virtualization Tools Reporter: Stefan Neufeind <redhat>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: unspecifiedCC: berrange, crobinso, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-13 22:15:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Neufeind 2009-04-27 14:30:41 UTC
I tried booting a kvm-machine using libvirt/virsh. Works fine with IDE-disks, but fails if you configure the primary disk to use virtio. To what I've found on the net, it should be possible to boot from a virtio-disk when the "extboot"-option-rom is used. However there seems to be no way to pass an option-rom-parameter using a libvirt-managed configuration (or to use any existing parameter as a workaround). Afaik using virtio instead of ide should offer a fairly good performance-improvement. And my RHEL-guest seems to recognise virtio fine out of the box - if just the bios would try to cleanly boot from the virtio-disk.

Comment 1 Daniel Berrangé 2009-04-27 14:44:08 UTC
It isn't neccessary to set any -option-rom parameter. QEMU will automatically load extboot.bin when needed. If this isn't happening, then there's a bug in some other part of the stack. Please provide details of the actual problem you are having booting with Virtio

Comment 2 Stefan Neufeind 2009-04-27 14:55:41 UTC
Output is:

Options: apmbios pcibios eltorito rombios32

[...]

Booting from hard disk
Boot failed: Could not read the boot disk

FATAL: No bootable device



When I attach a secondary partition via virtio (not the boot-partiton) that appears fine in my RHEL-guest. So I assume qemu trying to boot without extboot might be the problem. But I don't know how to pursuade it to do so :-)

Comment 3 Daniel Berrangé 2009-11-13 11:18:46 UTC
If you are still hitting this problem, can you provide the guest XML configuration from 'virsh dumpxml GUESTNAME', and the associated log file from the time you attempt to start this. ie /var/log/libvirt/qemu/$GUEST.log

Comment 4 Stefan Neufeind 2009-11-13 18:57:54 UTC
sorry, can't retest that in my current environment anymore

Comment 5 Daniel Berrangé 2009-11-13 22:15:04 UTC
Ok, closing on the basis that I know virtio booting works in general now - all our guests default to virtio these days.