Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
when using <boot dev='hd'/> in guest xml,guest will only try to boot from the disk.
when using <boot dev='hd'/> and <bootmenu enable='yes'/>,guest will try to boot from unselected device.
suggest unify the boot behavior. Either only boot from the disk, or try to boot all the devices in guest.
Version-Release number of selected component (if applicable):
libvirt-1.3.3-2.el7.x86_64
qemu-kvm-rhev-2.5.0-4.el7.x86_64
kernel-3.10.0-327.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.start a guest with xml:
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.2.0'>hvm</type>
<boot dev='hd'/>
</os>
...
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/a1.img'/> -->not bootable disk
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/root/RHEL-7.2-20151030.0-Server-x86_64-dvd1.iso'/>
<target dev='hdb' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
...
2.[root@localhost ~]# ps -ef | grep guest
... ***-boot strict=on*** ...
-drive file=/var/lib/libvirt/images/a1.img,format=raw,if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,***bootindex=1***....
3.start a guest with xml:
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.2.0'>hvm</type>
<boot dev='hd'/>
<bootmenu enable='yes'/>
</os>
...
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/a1.img'/> -->not bootable disk
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/root/RHEL-7.2-20151030.0-Server-x86_64-dvd1.iso'/>
<target dev='hdb' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
...
4.[root@localhost ~]# ps -ef | grep guest
...-boot ***order=c,menu=on,strict=on***...
-drive file=/var/lib/libvirt/images/a1.img,format=raw,if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0...
Actual results:
in step 1,guest will only try to boot from the disk.boot failed.
in step 3,guest boots from disk,failed. Then tries to boot from cdrom.
Expected results:
suggest unify boot behaviors in step1 and step3,because they are both using the same <boot dev='hd'/>.
Additional info:
Description of problem: when using <boot dev='hd'/> in guest xml,guest will only try to boot from the disk. when using <boot dev='hd'/> and <bootmenu enable='yes'/>,guest will try to boot from unselected device. suggest unify the boot behavior. Either only boot from the disk, or try to boot all the devices in guest. Version-Release number of selected component (if applicable): libvirt-1.3.3-2.el7.x86_64 qemu-kvm-rhev-2.5.0-4.el7.x86_64 kernel-3.10.0-327.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.start a guest with xml: <os> <type arch='x86_64' machine='pc-i440fx-rhel7.2.0'>hvm</type> <boot dev='hd'/> </os> ... <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/images/a1.img'/> -->not bootable disk <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/root/RHEL-7.2-20151030.0-Server-x86_64-dvd1.iso'/> <target dev='hdb' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> ... 2.[root@localhost ~]# ps -ef | grep guest ... ***-boot strict=on*** ... -drive file=/var/lib/libvirt/images/a1.img,format=raw,if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,***bootindex=1***.... 3.start a guest with xml: <os> <type arch='x86_64' machine='pc-i440fx-rhel7.2.0'>hvm</type> <boot dev='hd'/> <bootmenu enable='yes'/> </os> ... <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/images/a1.img'/> -->not bootable disk <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/root/RHEL-7.2-20151030.0-Server-x86_64-dvd1.iso'/> <target dev='hdb' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> ... 4.[root@localhost ~]# ps -ef | grep guest ...-boot ***order=c,menu=on,strict=on***... -drive file=/var/lib/libvirt/images/a1.img,format=raw,if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0... Actual results: in step 1,guest will only try to boot from the disk.boot failed. in step 3,guest boots from disk,failed. Then tries to boot from cdrom. Expected results: suggest unify boot behaviors in step1 and step3,because they are both using the same <boot dev='hd'/>. Additional info: