Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1515418 - RFE: Provide diagnostics for failed boot
RFE: Provide diagnostics for failed boot
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: OVMF (Show other bugs)
7.5
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Laszlo Ersek
FuXiangChun
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-20 13:49 EST by Dr. David Alan Gilbert
Modified: 2018-04-10 12:31 EDT (History)
9 users (show)

See Also:
Fixed In Version: ovmf-20171011-4.git92d07e48907f.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 12:31:01 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
prototype on top of ovmf-20171011-1.git92d07e48907f.el7 (4.33 KB, patch)
2017-11-21 08:53 EST, Laszlo Ersek
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
TianoCore 513 None None None 2017-11-21 08:53 EST
Red Hat Product Errata RHBA-2018:0902 None None None 2018-04-10 12:31 EDT

  None (edit)
Description Dr. David Alan Gilbert 2017-11-20 13:49:59 EST
Description of problem:
If you try and boot a non-EFI disk image on OVMF, it quite often just sits at the logo and doesn't tell the user anything about what went wrong;  it looks like it just hung.  We need some diagnostics so it's obvious to the user they screwed up and need to fix their disk image.
This is especially important since we elected to remove both the EFI shell and the BIOS compatibility shim which 1) removes the easy way to debug and 2) makes it much more likely you'll hit it.  Oh and 3) EFI disc images are much more complex so screwing them up is much easier.

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

How reproducible:
100%

Steps to Reproduce:
1. Take a BIOS boot disk image
2. Boot it on an OVMF configured host 
3.

Actual results:
an OVMF boot logo screen

Expected results:
Trying to boot .....
FAILED because ....

Additional info:
Comment 3 Laszlo Ersek 2017-11-21 08:53 EST
Created attachment 1356689 [details]
prototype on top of ovmf-20171011-1.git92d07e48907f.el7

This is just a quick PoC. The actual upstream solution should use status code routing / handling / reporting. We already have some REPORT_STATUS_CODE() invocations in EfiBootManagerBoot() and BdsEntry(); some new ones should be added, and the current ones should emit more information (e.g. with EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID).
Comment 6 Laszlo Ersek 2017-11-22 19:01:04 EST
Posted upstream series:

[edk2] [PATCH 0/5] MdeModulePkg, OvmfPkg: more easily visible boot progress
                   reporting
http://mid.mail-archive.com/20171122235849.4177-1-lersek@redhat.com
https://lists.01.org/pipermail/edk2-devel/2017-November/017850.html
Comment 18 Laszlo Ersek 2017-11-29 09:04:56 EST
Steps for virt-QE, from Dave:

"""
a) Install a normal BIOS VM (e.g. Fedora or RHEL)
b) Use virt-manager to create a new VM, telling it to import the disk image from the VM in (a) but to customize the VM before install
c) During the customize, change the machine type/bios to q35+ovmf
d) Let it boot

Current versions stick at the Tianocore logo
This fix gives useful feedback and lets you get to the boot manager.
"""

Thanks.
Comment 21 Miroslav Rezanina 2017-12-06 09:12:17 EST
Fix included in ovmf-20171011-4.git92d07e48907f.el7
Comment 22 FuXiangChun 2017-12-11 21:07:37 EST
Reproduced this bug with OVMF-20171011-1.git92d07e48907f.el7.noarch & qemu-kvm-rhev-2.10.0-11.el7.x86_64.

Result:
1)stick at the Tianocore logo

2)OVMF log:
Error: Image at 0007CEA3000 start failed: Unsupported
Error: Image at 0007CDDF000 start failed: Unsupported
Error: Image at 0007CD6D000 start failed: Unsupported
Error: Image at 0007BE1A000 start failed: Unsupported
Error: Image at 0007BD34000 start failed: Aborted
[Bds] Unable to boot!

3) cann't get to the boot manager


Verified this bug with OVMF-20171011-4.git92d07e48907f.el7.noarch & qemu-kvm-rhev-2.10.0-11.el7.x86_64.

Result:
1)useful feedback as below:
BdsDxe: No bootable option or device was found.
BdsDxe: Press any key to enter the Boot Manager Menu.

2)type Enter, I can get to the boot manager.

3)part of ovmf log as below:

.......
SataControllerStart error return status = Already started
 BlockSize : 512 
 LastBlock : 77FFFFF 
 BlockSize : 512 
 LastBlock : 1FFFFF 
 BlockSize : 512 
 LastBlock : 75FF7FF 
SataControllerStart START
SataControllerStart error return status = Already started
 BlockSize : 512 
 LastBlock : 77FFFFF 
 BlockSize : 512 
 LastBlock : 1FFFFF 
 BlockSize : 512 
 LastBlock : 75FF7FF 
 BlockSize : 512 
 LastBlock : 77FFFFF 
 BlockSize : 512 
 LastBlock : 1FFFFF 
 BlockSize : 512 
 LastBlock : 75FF7FF 
 BlockSize : 512 
 LastBlock : 1FFFFF 
 BlockSize : 512 
 LastBlock : 75FF7FF 
[Bds] Expand \EFI\BOOT\BOOTX64.EFI -> <null string>
Comment 23 FuXiangChun 2017-12-11 21:08:29 EST
According to comment18 & comment22, set this bug as verified.
Comment 26 errata-xmlrpc 2018-04-10 12:31:01 EDT
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:0902

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