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 1247956 - Boot the guest with "-boot menu=on" and press F12,didn't show the boot menu index
Summary: Boot the guest with "-boot menu=on" and press F12,didn't show the boot menu i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: SLOF
Version: 7.2
Hardware: ppc64le
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Thomas Huth
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 1257111 (view as bug list)
Depends On: 1279954
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-29 10:47 UTC by Shuang Yu
Modified: 2016-11-04 04:31 UTC (History)
11 users (show)

Fixed In Version: qemu-slof-20151103
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 04:31:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot1 is based on Power (22.22 KB, image/png)
2015-07-29 10:47 UTC, Shuang Yu
no flags Details
Screenshot2 is based on x86 (11.95 KB, image/png)
2015-07-29 10:48 UTC, Shuang Yu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:2355 0 normal SHIPPED_LIVE SLOF bug fix and enhancement update 2016-11-03 13:48:37 UTC

Description Shuang Yu 2015-07-29 10:47:23 UTC
Created attachment 1057296 [details]
Screenshot1 is based on Power

Description of problem:
Boot the guest with "-boot menu=on" and during the boot press F12 to check the boot menu index,the guest did't show the boot menu index.

Version-Release number of selected component (if applicable):

ernel-3.10.0-292.el7.ppc64le
qemu-kvm-rhev-2.3.0-12.el7.ppc64le

guest kernel:
kernel-3.10.0-295.el7.ppc64le

How reproducible:
100%

Steps to Reproduce:
1.Boot the guest with "-boot menu=on" and different "bootindex" about the scsi-cd,scsi-hd,scsi-block:
/usr/libexec/qemu-kvm ... -device virtio-scsi-pci,id=scsi0,addr=0x6,bus=pci.0 -drive file=test_27.raw,if=none,id=drive-scsi0,format=raw,cache=none -device scsi-hd,bus=scsi0.0,drive=drive-scsi0,bootindex=0,id=scsi0-0 -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi1 -drive file=RHEL-7.2-20150720.0-Server-ppc64-dvd1.iso,if=none,media=cdrom,id=drive-scsi1,format=raw -device scsi-cd,drive=drive-scsi1,id=scsi0-1,bus=scsi1.0,bootindex=1 -device virtio-scsi-pci,id=scsi2,addr=0x8,bus=pci.0 -drive file=/dev/sdc,if=none,id=drive-scsi2,format=raw -device scsi-block,drive=drive-scsi2,id=scsi0-2,bus=scsi2.0,bootindex=2 ...-boot menu=on 

2.press F12 during POST and check.

3.

Actual results:
After press F12,the boot menu index interface didn't appear,the attachment Screenshot1 will show the first interface after the guest bootup.

Expected results:


Additional info:
Check this problem at x86 platform and didn't hit this issue,the attachment Screenshot2 will show the boot menu index interface

Comment 1 Shuang Yu 2015-07-29 10:48:07 UTC
Created attachment 1057297 [details]
Screenshot2 is based on x86

Comment 3 David Gibson 2015-07-30 00:12:59 UTC
The F12 boot menu is behaviour specific to the x86 BIOS, it's not implemented on the Power SLOF firmware.

Comment 4 Gu Nini 2015-08-26 10:21:17 UTC
*** Bug 1257111 has been marked as a duplicate of this bug. ***

Comment 5 Gu Nini 2015-08-26 10:23:16 UTC
(In reply to David Gibson from comment #3)
> The F12 boot menu is behaviour specific to the x86 BIOS, it's not
> implemented on the Power SLOF firmware.

Should we disable the prompt?

SLOF **********************************************************************
QEMU Starting
 Build Date = Aug  6 2015 10:55:18
 FW Version = mockbuild@ release 20150313
 Press "s" to enter Open Firmware.

Press F12 for boot menu.

Populating /vdevice methods
Populating /vdevice/v-scsi@1000

Comment 6 David Gibson 2015-08-31 04:49:36 UTC
Hi Nini,

Sorry - I was mistaken above.  It turns out an F12 boot menu had been added to SLOF in order to match x86 behaviour, which I hadn't realised.

When attempting to use the boot menu were you using a graphical console and USB keyboard, or the serial / hypervisor console?

Comment 7 Gu Nini 2015-08-31 07:40:33 UTC
(In reply to David Gibson from comment #6)
> Hi Nini,
> 
> Sorry - I was mistaken above.  It turns out an F12 boot menu had been added
> to SLOF in order to match x86 behaviour, which I hadn't realised.
> 
> When attempting to use the boot menu were you using a graphical console and
> USB keyboard, or the serial / hypervisor console?

David,

Both the graphical console(connected with vncviewer) and the serial console(connected with 'nc -U') could found the F12 info, and both a failure when use it.

Comment 8 Thomas Huth 2015-09-01 13:38:52 UTC
This bug is likely because function key sequences are generated wrong in SLOF. The problem has been discussed upstream a while ago, but I think the patch has never been committed upstream yet:

https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-May/129475.html

I'll ask for the current state...

Concerning the serial console ... I think it should work if you disable the graphics card of the guest, i.e. if you start with "-nographic -vga none", since SLOF will then ignore the USB keyboard.

Comment 9 David Gibson 2015-09-02 04:19:25 UTC
Thanks for the analysis, Thomas.

How will the menu work with the serial console?  I didn't think function keys even had a well defined representation over a serial link.

In any case, I'm deferring this to 7.3, it just doesn't seem vital enough for 7.2.

Comment 10 Thomas Huth 2015-09-02 06:55:58 UTC
(In reply to David Gibson from comment #9)
> How will the menu work with the serial console?  I didn't think function
> keys even had a well defined representation over a serial link.

SLOF simply supports the function key codes that are used by xterm and similar terminals... at least for F6 to F12, there seems to be a "common sense" how the function key codes should look like (see http://aperiodic.net/phil/archives/Geekery/term-function-keys.html for example).

Comment 11 Thomas Huth 2015-10-27 11:05:15 UTC
The fix for the function keys has now been picked up by upstream: https://github.com/aik/SLOF/commit/43c9abfd8144d03ffa8

Comment 17 Mike McCune 2016-03-28 23:40:50 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 18 Miroslav Rezanina 2016-05-06 11:50:23 UTC
Fix included in SLOF-20160223-1.gitdbbfda4.el7.

Comment 20 Qunfang Zhang 2016-05-25 08:30:50 UTC
Hi, Thomas

Verified this bug with the following version, and my question is at the end after the test steps. 

qemu-img-rhev-2.6.0-2.el7.ppc64le
SLOF-20160223-3.gitdbbfda4.el7.noarch

CLI: 

# /usr/libexec/qemu-kvm -name test_7_31_virtionet -machine pseries,accel=kvm,usb=off -m 4G -smp 4,sockets=1,cores=4,threads=1 -uuid 8aeab7e2-f341-4f8c-80e8-59e2968d85c2 -realtime mlock=off -nodefaults -monitor stdio -rtc base=utc -device spapr-vscsi,id=scsi0,reg=0x1000 -drive file=rhel72-ppc64le-virtio.qcow2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=none -device scsi-hd,bus=scsi0.0,drive=drive-scsi0-0-0-0,bootindex=1,id=scsi0-0-0-0  -drive if=none,id=drive-scsi0-0-1-0,readonly=on -device scsi-cd,bus=scsi0.0,drive=drive-scsi0-0-1-0,bootindex=2,id=scsi0-0-1-0 -vnc :10 -msg timestamp=on -usb -device usb-tablet,id=tablet1  -vga std -qmp tcp:0:4666,server,nowait -netdev tap,id=hostnet1,script=/etc/qemu-ifup,vhost=on -device virtio-net-pci,netdev=hostnet1,id=net1,mac=00:54:5a:5f:5b:5c,disable-legacy=off,disable-modern=on -boot menu=on  -drive file=disk.qcow2,if=none,id=drive-scsi0-0-0-1,format=qcow2,cache=none -device scsi-hd,bus=scsi0.0,drive=drive-scsi0-0-0-1,bootindex=3,id=scsi0-0-0-1 -chardev socket,id=serial_id_serial0,path=/tmp/serial,server,nowait -device spapr-vty,reg=0x30000000,chardev=serial_id_serial0

After I press "F12" at the early stage of booting process, I see the following message printed:

"Select boot device:"

BUT, I need to wait for more than 30s to get the following message:

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


So, could you help check why it blocks here so long and could we make it more quicker? 

Thanks,
Qunfang

Comment 21 Thomas Huth 2016-05-25 09:00:52 UTC
Hi Qunfang,

may I ask how often you pushed the F12 key? It works OK for me, if I only press the button once during boot. But if I hit it multiple times, the boot menu gets delayed as you described it.
I never noticed this behavior before ... but that's definitely a new, different bug - could you please open a separate ticket to track it? And maybe mark this one as verified if pressing the button only once works for you faster, too?

Comment 22 Qunfang Zhang 2016-05-25 09:05:02 UTC
Hi, Thomas

You are correct, if only push F12 key once, it works well.  This bug could be verified and I will create a new one.

Thanks!

Comment 23 Qunfang Zhang 2016-05-25 09:11:12 UTC
New bug:

Bug 1339528 - SLOF boot menu gets delayed if press 'F12' key for multiple times

Comment 25 errata-xmlrpc 2016-11-04 04:31:08 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://rhn.redhat.com/errata/RHEA-2016-2355.html


Note You need to log in before you can comment on or make changes to this bug.