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
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.
"-drive index" is not setting the boot index, it is just a shortcut for the bus and unit.