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 901433

Summary: fail to boot guest with 8 virtio_blk data disk using virtio-scsi interface for system disk
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: seabiosAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 6.4CC: chayang, ehabkost, flang, gnatapov, juzhang, kwolf, mazhang, michen, pbonzini, qzhang, sluo, virt-maint, yduan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-18 15:43:56 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:

Description Sibiao Luo 2013-01-18 07:56:04 UTC
Description of problem:
boot guest with 8 virtio_blk data disk and adding "-boot menu=on" in cli, the system disk use virtio-scsi interface and set bootindex for it to 0, but the guest fail to boot up. If press F12 during POST and find that there is no system disk(virtio-scsi) in boot device list.
The seabios maybe limit the max number of the boot device, but anyway, the system disk should be listed there, as the bootindex was specified in the command line.

Version-Release number of selected component (if applicable):
host info:
kernel-2.6.32-355.el6.x86_64
qemu-kvm-0.12.1.2-2.352.el6.x86_64
seabios-0.6.1.2-26.el6.x86_64
guest info:
kernel-2.6.32-355.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot guest with 8 virtio_blk data disk and adding "-boot menu=on" in cli, the system disk use virtio-scsi interface and set bootindex for it to 0.
2.press F12 during POST.

Actual results:
after step 2,
Press F12 for boot menu.

Select boot device:

1. gPXE (PCI 00:05.0)
2. USB MSC Drive QEMU QEMU HARDDISK 0.12
3. Virtio disk PCI:0:9
4. Virtio disk PCI:0:10
5. Virtio disk PCI:0:11
6. Virtio disk PCI:0:12
7. Virtio disk PCI:0:13
8. Virtio disk PCI:0:14
9. Virtio disk PCI:0:15
10. Floppy [drive A]
11. DVD/CD [ata0-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
12. Legacy option rom

Expected results:
boot up guest successfully without any problem, the system disk should be listed in boot device, like:
Press F12 for boot menu.

Select boot device:

1. virtio-scsi Drive QEMU QEMU HARDDISK 0.12       <-----------------
2. gPXE (PCI 00:05.0)
3. USB MSC Drive QEMU QEMU HARDDISK 0.12
4. Virtio disk PCI:0:9
...
9. Virtio disk PCI:0:14
10. Floppy [drive A]
11. DVD/CD [ata0-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
12. Legacy option rom

Additional info:
BTW, if shift the system disk to use the virtio-blk interface, the system disk can be list in boot device.
Press F12 for boot menu.

Select boot device:

1. Virtio disk PCI:0:4          <-------------
2. gPXE (PCI 00:05.0)
3. USB MSC Drive QEMU QEMU HARDDISK 0.12
4. Virtio disk PCI:0:9
5. Virtio disk PCI:0:10
6. Virtio disk PCI:0:11
7. Virtio disk PCI:0:12
8. Virtio disk PCI:0:13
9. Virtio disk PCI:0:14
10. Floppy [drive A]
11. DVD/CD [ata0-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
12. Legacy option rom

Comment 1 Sibiao Luo 2013-01-18 07:57:06 UTC
my qemu-kvm command line:
# /usr/libexec/qemu-kvm -M rhel6.4.0 -cpu SandyBridge -enable-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -no-kvm-pit-reinjection -usb -device usb-tablet,id=input0 -name virtual-blk-device -uuid 350e716b-5f98-4bf0-9a2a-c8e423295244 -rtc base=localtime,clock=host,driftfix=slew -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=0,bus=pci.0,addr=0x3 -chardev socket,id=channel1,path=/tmp/helloworld1,server,nowait -device virtserialport,chardev=channel1,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,chardev=channel2,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port2 -drive file=/home/RHEL6.4-20121212.1-Server-x86_64-copy.qcow2,if=none,id=drive-system-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x4 -device scsi-hd,drive=drive-system-disk,bus=scsi0.0,id=system-disk,bootindex=0 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=2c:41:38:b6:40:22,bus=pci.0,addr=0x5,bootindex=2,event_idx=off -device virtio-balloon-pci,id=ballooning,bus=pci.0,addr=0x6 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -device usb-ehci,id=ehci,bus=pci.0,addr=0x7 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=ehci.0,debug=2 -drive file=/home/usb-storage.raw,if=none,id=storage,media=disk,cache=none,format=raw -device usb-storage,drive=storage,id=usb-storage -k en-us -boot menu=on -spice port=5931,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 -drive file=/home/floppy1.vfd,if=none,id=drive-fdc0-0-0,format=raw -global isa-fdc.driveA=drive-fdc0-0-0 -drive file=/home/my-cdrom1.iso,if=none,media=cdrom,format=raw,id=drive-ide1-0-1 -device ide-drive,drive=drive-ide1-0-1,id=ide1-0-1,bus=ide.0,unit=0 -monitor stdio -drive file=/home/my-data-disk1.raw,if=none,id=drive-virtio-disk1,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x9,scsi=off,drive=drive-virtio-disk1,id=virtio-disk1,serial="QEMU-DISK1" -drive file=/home/my-data-disk2.raw,if=none,id=drive-virtio-disk2,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x10,scsi=off,drive=drive-virtio-disk2,id=virtio-disk2,serial="QEMU-DISK2" -drive file=/home/my-data-disk3.raw,if=none,id=drive-virtio-disk3,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x11,scsi=off,drive=drive-virtio-disk3,id=virtio-disk3,serial="QEMU-DISK3" -drive file=/home/my-data-disk4.raw,if=none,id=drive-virtio-disk4,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x12,scsi=off,drive=drive-virtio-disk4,id=virtio-disk4,serial="QEMU-DISK4" -drive file=/home/my-data-disk5.raw,if=none,id=drive-virtio-disk5,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x13,scsi=off,drive=drive-virtio-disk5,id=virtio-disk5,serial="QEMU-DISK5" -drive file=/home/my-data-disk6.raw,if=none,id=drive-virtio-disk6,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x14,scsi=off,drive=drive-virtio-disk6,id=virtio-disk6,serial="QEMU-DISK6" -drive file=/home/my-data-disk7.raw,if=none,id=drive-virtio-disk7,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x15,scsi=off,drive=drive-virtio-disk7,id=virtio-disk7,serial="QEMU-DISK7" -drive file=/home/my-data-disk8.raw,if=none,id=drive-virtio-disk8,format=raw,cache=none,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x16,scsi=off,drive=drive-virtio-disk8,id=virtio-disk8,serial="QEMU-DISK8" -device sga -chardev socket,id=serial0,path=/var/sluo,server,nowait -device isa-serial,chardev=serial0

Comment 2 Sibiao Luo 2013-01-18 07:58:11 UTC
my host cpu info:
processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
stepping	: 7
cpu MHz		: 1600.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 7
initial apicid	: 7
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6784.77
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

Comment 3 Paolo Bonzini 2013-01-18 15:43:56 UTC
You're hitting the limit on the number of disks that are seen by SeaBIOS.

The virtio-scsi disk is left out because SeaBIOS probes virtio-blk before virtio-scsi:

    floppy_setup();
    ata_setup();
    ramdisk_setup();
    virtio_blk_setup();
    virtio_scsi_setup();

(from SeaBIOS's src/post.c).