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.

Bug 1505784

Summary: Failed to boot with multi-disks when the first disk is not bootable
Product: Red Hat Enterprise Linux 7 Reporter: aihua liang <aliang>
Component: seabiosAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED DUPLICATE QA Contact: FuXiangChun <xfu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: chayang, coli, famz, juzhang, knoel, kraxel, michen, pbonzini, qzhang, stefanha, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-28 06:46:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Seabios log none

Description aihua liang 2017-10-24 09:51:33 UTC
Description of problem:
 Failed to boot with multi-disks when the first disk is not bootable

Version-Release number of selected component (if applicable):
kernel version::3.10.0-742.el7.x86_64
qemu-kvm-rhev version: qemu-kvm-rhev-2.10.0-3.el7.x86_64
seabios version: seabios-bin-1.10.2-5.el7.noarch


How reproducible:
100%

Steps to Reproduce:
1.Create img "usbdevice.qcow2" with no OS installed on it.
2.Start guest with qemu cmds:
  /usr/libexec/qemu-kvm \
    -name 'avocado-vt-vm1'  \
    -sandbox off  \
    -machine pc  \
    -nodefaults  \
    -vga cirrus  \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/var/tmp/monitor-qmpmonitor1-20171022-043431-Oqzhk5Cb,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control  \
    -chardev socket,id=qmp_id_catch_monitor,path=/var/tmp/monitor-catch_monitor-20171022-043431-Oqzhk5Cb,server,nowait \
    -mon chardev=qmp_id_catch_monitor,mode=control \
    -device pvpanic,ioport=0x505,id=idFEWDmx  \
    -chardev socket,id=serial_id_serial0,path=/var/tmp/serial-serial0-20171022-043431-Oqzhk5Cb,server,nowait \
    -device isa-serial,chardev=serial_id_serial0  \
    -chardev socket,id=seabioslog_id_20171022-043431-Oqzhk5Cb,path=/var/tmp/seabios-20171022-043431-Oqzhk5Cb,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20171022-043431-Oqzhk5Cb,iobase=0x402 \
    -device usb-ehci,id=usb1,bus=pci.0,addr=0x3 \
    -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/kvm_autotest_root/images/rhel75-64-virtio.qcow2 \
    -device ide-hd,id=image1,drive=drive_image1,bootindex=1,bus=ide.0,unit=0 \
    -drive id=drive_stg,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/kvm_autotest_root/images/usbdevice.qcow2 \
    -device usb-storage,id=stg,drive=drive_stg,bootindex=0,bus=usb1.0,port=1 \
    -device virtio-net-pci,mac=9a:d2:d3:d4:d5:d6,id=idd5QZro,vectors=4,netdev=id3eaS82,bus=pci.0,addr=0x4  \
    -netdev tap,id=id3eaS82,vhost=on \
    -m 8192  \
    -smp 4,maxcpus=4,cores=2,threads=1,sockets=2  \
    -cpu 'Westmere',+kvm_pv_unhalt  \
    -vnc :0  \
    -rtc base=utc,clock=host,driftfix=slew  \
    -boot menu=on,strict=off,order=cdn,once=c \
    -enable-kvm  \
    -device sga \

Actual results:
  Boot failed with error msg:
   ********
   Booting from Hard Disk...
   Boot failed:not a bootable disk
   *************
    
Expected results:
  Guest can be booted successfully from img "/home/kvm_autotest_root/images/rhel75-64-virtio.qcow2" 


Additional Info:
  Not a regression bug.

Comment 2 aihua liang 2017-10-24 10:37:06 UTC
Created attachment 1342686 [details]
Seabios log

Comment 3 Paolo Bonzini 2017-10-28 06:46:37 UTC
This is not possible due to the BIOS specification.  All hard disks are in the same "group".

*** This bug has been marked as a duplicate of bug 1210651 ***