Bug 960917 - IDE disk doesn't follow boot sequence
Summary: IDE disk doesn't follow boot sequence
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-08 10:01 UTC by Lukáš Doktor
Modified: 2013-06-20 11:53 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-20 11:53:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukáš Doktor 2013-05-08 10:01:22 UTC
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 Lukáš Doktor 2013-05-08 10:06:14 UTC
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 11:53:23 UTC
"-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.