Bug 1429832

Summary: Can not pick out the boot device when guest with emulated SCSI CD-ROM' , 'SCSI hard disk' and 'pass through SCSI disk'
Product: Red Hat Enterprise Linux 7 Reporter: Yongxue Hong <yhong>
Component: SLOFAssignee: Thomas Huth <thuth>
Status: CLOSED ERRATA QA Contact: xianwang <xianwang>
Severity: low Docs Contact:
Priority: medium    
Version: 7.4CC: mrezanin, qzhang, thuth, xianwang
Target Milestone: rc   
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: SLOF-20170724-1.git89f519f.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 14:41:52 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:
Bug Depends On:    
Bug Blocks: 1445612, 1458547, 1458551    
Attachments:
Description Flags
x86 boot menu none

Description Yongxue Hong 2017-03-07 09:04:11 UTC
Created attachment 1260721 [details]
x86 boot menu

Description of problem:
Can not pick out the boot device when guest with emulated SCSI CD-ROM' , 'SCSI hard disk' and 'pass through SCSI disk'

Version-Release number of selected component (if applicable):
kernel version:
kernel-3.10.0-568.el7.ppc64le

qemu-kvm version:
qemu-kvm-rhev-2.8.0-4.el7.ppc64le

guest version:
kernel-3.10.0-568.el7.ppc64

How reproducible:
100%

Steps to Reproduce:
1.Boot a guest 
eg:
/usr/libexec/qemu-kvm \
-name rhel7-11904 \
-M pseries-rhel7.4.0 \
-m 16G \
-nodefaults \
-smp 8 \
-boot menu=on,order=cd \
-device VGA,id=vga0,addr=0 \
-device nec-usb-xhci,id=xhci \
-device usb-tablet,id=usb-tablet0 \
-device usb-kbd,id=usb-kbd0 \
-device spapr-vscsi,id=scsi0,reg=0x1000 \
-drive file=/home/hyx/os/RHEL-7.3-20161019.0-Server-ppc64-dvd1.iso,if=none,media=cdrom,readonly=on,id=image0 \
-device scsi-cd,bus=scsi0.0,id=scsi-cd0,drive=image0,channel=0,scsi-id=0,lun=0,bootindex=1 \
-drive file=/dev/sdk,if=none,id=virtio-scsi2-id1,cache=none,snapshot=off,format=raw,aio=native \
-device scsi-disk,scsi-id=0,channel=1,lun=1,drive=virtio-scsi2-id1,bootindex=2 \
-drive file=/home/hyx/image/RHEL7-11904-1-20G.qcow2,format=qcow2,if=none,cache=none,id=drive-scsi-0 \
-device scsi-hd,bus=scsi0.0,id=scsi-blk0,drive=drive-scsi-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=70:e2:84:14:0e:00 \
-monitor stdio \
-serial unix:./sock0,server,nowait \
-qmp tcp:0:6000,server,nowait \
-vnc :0

2.Enter F12 into boot menu


Actual results:

Welcome to Open Firmware

  Copyright (c) 2004, 2011 IBM Corporation All rights reserved.
  This program and the accompanying materials are made available
  under the terms of the BSD License available at
  http://www.opensource.org/licenses/bsd-license.php

Select boot device:

1. /vdevice/v-scsi@1000/disk@8001000000000000: /vdevice/v-scsi@1000/disk@8001000000000000
2. /vdevice/v-scsi@1000/disk@8000000000000000: /vdevice/v-scsi@1000/disk@8000000000000000
3. /vdevice/v-scsi@1000/disk@8001000000000000: /vdevice/v-scsi@1000/disk@8001000000000000


Expected results:
The boot device should be show clearly and friendly.

Additional info:
The attachment is X86 boot menu that could tell user how to select the boot device clearly.

Comment 3 Thomas Huth 2017-08-04 07:29:22 UTC
The new bootmenu code has been merged in upstream:

https://github.com/aik/SLOF/commit/fa94a3bb20734cb8e0280b232d16b6d466ec3d53

We'll get it in downstream with the next rebase of the SLOF package.

Comment 5 Yongxue Hong 2017-10-09 09:08:28 UTC
The step of verification is same as comment 0.
Version of verification:
host: 3.10.0-693.2.1.el7.ppc64le
qemu: qemu-kvm-rhev-2.9.0-16.el7_4.8.ppc64le
SLOF: SLOF-20170724-2.git89f519f.el7.noarch

Actual results:
SLOF **********************************************************************
QEMU Starting
 Build Date = Oct  9 2017 02:32:33
 FW Version = mockbuild@ release 20170724
 Press "s" to enter Open Firmware.

Press F12 for boot menu.

Populating /vdevice methods
Populating /vdevice/v-scsi@1000
       SCSI: Looking for devices
          8001000000000000 DISK     : "QEMU     QEMU HARDDISK    2.5+"
          8000000000000000 CD-ROM   : "QEMU     QEMU CD-ROM      2.5+"
Populating /vdevice/vty@71000000
Populating /vdevice/nvram@71000001
Populating /pci@800000020000000
                     00 0000 (D) : 1234 1111    qemu vga
                     00 0800 (D) : 1033 0194    serial bus [ usb-xhci ]
                     00 1000 (D) : 1af4 1000    virtio [ net ]
Installing QEMU fb



Scanning USB 
  XHCI: Initializing
    USB Keyboard 
No console specified using screen & keyboard
     



  Welcome to Open Firmware

  Copyright (c) 2004, 2017 IBM Corporation All rights reserved.
  This program and the accompanying materials are made available
  under the terms of the BSD License available at
  http://www.opensource.org/licenses/bsd-license.php


Select boot device (or press '0' to abort):
1)  cdrom : /vdevice/v-scsi@1000/disk@8000000000000000
2)   disk : /vdevice/v-scsi@1000/disk@8001000000000000
3)    net : /pci@800000020000000/ethernet@2

It is clearly to show each device name, so this bug is fixed, then change the status to verified.

Comment 8 errata-xmlrpc 2018-04-10 14:41:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0820