Bug 1446132

Summary: The guest fail to boot up with the scsi-hd set bootindex=0 and lun=1
Product: Red Hat Enterprise Linux 7 Reporter: Yongxue Hong <yhong>
Component: qemu-kvm-rhevAssignee: Paolo Bonzini <pbonzini>
Status: CLOSED DUPLICATE QA Contact: aihua liang <aliang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: aliang, chayang, coli, juzhang, knoel, michen, pbonzini, qzhang, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-26 13:53:24 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 Yongxue Hong 2017-04-27 10:05:14 UTC
Description of problem:
The guest fail to boot up while the scsi disk with bootindex=0

Version-Release number of selected component (if applicable):
host:3.10.0-656.el7.x86_64
qmeu:qemu-kvm-rhev-2.9.0-1.el


How reproducible:
100%

Steps to Reproduce:
1.Install a guest with a scsi disk set lun=1
eg:
/usr/libexec/qemu-kvm \
-name rhel7_4-11853 \
-m 2G \
-nodefaults \
-boot menu=on,order=cd \
-device VGA,id=vga0 \
-device nec-usb-xhci,id=xhci \
-device usb-tablet,id=usb-tablet0 \
-device usb-kbd,id=usb-kbd0 \
-device virtio-scsi-pci,id=scsi-pci-0 \
-device virtio-scsi-pci,id=scsi-pci-1 \
-drive file=/home/hyx/iso/RHEL-7.4-20170330.1-Server-x86_64-dvd1.iso,if=none,media=cdrom,id=cd-0 \
-device scsi-cd,bus=scsi-pci-0.0,id=scsi-cd-0,drive=cd-0,channel=0,scsi-id=0,lun=0,bootindex=0 \
-drive file=/home/hyx/image/rhel-7_4-11853-20G.qcow2,format=qcow2,if=none,cache=none,media=disk,werror=stop,rerror=stop,id=drive-0 \
-device scsi-hd,bus=scsi-pci-1.0,id=scsi-hd-0,drive=drive-0,channel=0,scsi-id=0,lun=1 \
-netdev tap,id=hostnet0,script=/etc/qemu-ifup \
-device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=40:f2:e9:5d:9c:03 \
-serial unix:./sock0,server,nowait \
-qmp tcp:0:3000,server,nowait \
-monitor stdio \
-vnc :10

2.Boot the guset
eg:
/usr/libexec/qemu-kvm \
-name rhel7_4-11853 \
-m 2G \
-nodefaults \
-boot menu=on,order=cd \
-device VGA,id=vga0 \
-device nec-usb-xhci,id=xhci \
-device usb-tablet,id=usb-tablet0 \
-device usb-kbd,id=usb-kbd0 \
-device virtio-scsi-pci,id=scsi-pci-0 \
-device virtio-scsi-pci,id=scsi-pci-1 \
-drive file=/home/hyx/image/rhel-7_4-11853-20G.qcow2,format=qcow2,if=none,cache=none,media=disk,werror=stop,rerror=stop,id=drive-0 \
-device scsi-hd,bus=scsi-pci-1.0,id=scsi-hd-0,drive=drive-0,channel=0,scsi-id=0,lun=1,bootindex=0 \
-netdev tap,id=hostnet0,script=/etc/qemu-ifup \
-device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=40:f2:e9:5d:9c:03 \
-serial unix:./sock0,server,nowait \
-qmp tcp:0:3000,server,nowait \
-monitor stdio \
-vnc :10

Actual results:
The guest can not boot up because can not read the boot disk

Expected results:
The guest can boot up successfully.

Additional info:
It did not be reproduced in ppc.

Comment 2 Yongxue Hong 2017-04-27 10:12:47 UTC
If the lun=0 and the bootindex=0, the guest could boot up.

Comment 3 aihua liang 2017-05-04 03:22:56 UTC
Same root casue with bug 1445616.

Comment 4 Paolo Bonzini 2017-05-26 13:53:24 UTC

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