Bug 960917 - IDE disk doesn't follow boot sequence
IDE disk doesn't follow boot sequence
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: qemu (Show other bugs)
17
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Fedora Virtualization Maintainers
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-08 06:01 EDT by Lukas Doktor
Modified: 2013-06-20 07:53 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-20 07:53:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Lukas Doktor 2013-05-08 06:01:22 EDT
Description of problem:
When I create a VM with bootable disk (index=0) and attach unbootable ide (index=0,1,2,not_set...) disk VM won't boot as it tries to boot the ide disk.

Version-Release number of selected component (if applicable):
qemu-kvm-1.0.1-6.fc17.x86_64 and upstream qemu 1.4.0

How reproducible:
Always

Steps to Reproduce:
1. qemu-kvm  -drive file='f18-64.qcow2',if=scsi,index=0 -drive file='stg0.qcow2',if=ide,index=2
  
Actual results:
SeaBIOS (version 1.7.1-20121028_012716-)



iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+07FC8B00+07F88B00 CA00
                                                                               

Booting from Hard Disk...
Boot failed: not a bootable disk

Booting from ROM...
iPXE (PCI 00:03.0) starting execution...ok
iPXE initialising devices...ok



iPXE 1.0.0+ -- Open Source Network Boot Firmware -- http://ipxe.org
Features: iSCSI HTTP DNS TFTP AoE COMBOOT ELF MBOOT PXE bzImage PXEXT
net0: 52:54:00:12:34:56 using rtl8139 on PCI00:03.0 (open)
  [Link:up, TX:0 TXE:0 RX:0 RXE:0]
DHCP (net0 52:54:00:12:34:56)...... ok
net0: 10.0.2.15/255.255.255.0 gw 10.0.2.2
Next server: 10.0.2.2
Nothing to boot: No such file or directory (http://ipxe.org/2d03e13b)
No more network devices
Booting from Floppy...
Boot failed: could not read the boot disk

No bootable device.  Retrying in 60 seconds.


Expected results:
VM boots the f18-64.qcow2 image (F18)

Additional info:
I tested various setups:
ide, ide+ide, scsi, scsi+scsi, ahci, virtio_scsi, virtio, usb2 - works
ahci+ide, virtio_scsi+ide, scsi+ide, virtio+ide, usb2+ide - doesn't work (boots the ide disk)

I tested various index setups:
(boot disk)  (ide disk)
no_index  no_index
no_index  index=-1
index=0  no_index
index=0  index=-1
index=0  index=0
index=0  index=1
index=1  index=0
Comment 1 Lukas Doktor 2013-05-08 06:06:14 EDT
When I use -device -drive and set bootindex=0, than everything works fine. But with -device if=xxx the only drive which boots is IDE.
Comment 2 Paolo Bonzini 2013-06-20 07:53:23 EDT
"-drive index" is not setting the boot index, it is just a shortcut for the bus and unit.

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