Bug 28157 - Virtuabox 6.1.16 can't load EFI ISO on EFI VM
Summary: Virtuabox 6.1.16 can't load EFI ISO on EFI VM
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High critical
Target Milestone: Mageia 8
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords: 8rc1
Depends on:
Blocks:
 
Reported: 2021-01-18 15:49 CET by Aurelien Oudelet
Modified: 2021-03-14 17:54 CET (History)
5 users (show)

See Also:
Source RPM: virtualbox-6.1.16-15.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Aurelien Oudelet 2021-01-18 15:49:33 CET
Regression

Can't determine since when but our packaged Virtualbox can't boot EFI ISO (M7, M8)
Even, with a media in CDROM tray, with a EFI VM, it can't load EFI Install.

I did can do it earlier in 2020.

Instead, it loads an EFI shell.
Note that with is reproduced with all M8 kernels host.
The issue seems in virtualbox itself.

$ uname -r
5.10.8-desktop-2.mga8

$ rpm -qa -last | grep virtualbox
virtualbox-kernel-desktop-latest-6.1.16-50.mga8.x86_64 Mon Jan 18 14:50:32 2021
virtualbox-kernel-5.10.8-desktop-2.mga8-6.1.16-50.mga8.x86_64 Mon Jan 18 14:50:32 2021
virtualbox-kernel-5.10.7-desktop-1.mga8-6.1.16-46.mga8.x86_64 Wed Jan 13 17:55:33 2021
virtualbox-6.1.16-15.mga8.x86_64              Tue Jan 12 14:13:36 2021
virtualbox-kernel-5.10.6-desktop-1.mga8-6.1.16-45.mga8.x86_64 Tue Jan 12 14:13:25 2021
virtualbox-kernel-5.10.5-desktop-2.mga8-6.1.16-37.mga8.x86_64 Sat Jan  9 11:51:12 2021


Assigning to package maintainer.
Comment 1 Aurelien Oudelet 2021-01-18 16:03:21 CET
Really assigning.
CC'd QA and ISO producer.

CC: tmb => davidwhodgins, mageia, wilcal.int
Assignee: thierry.vignaud => tmb

Comment 2 Martin Whitaker 2021-01-18 16:20:08 CET
It was a regression in VBox 6.1.14:

  https://www.virtualbox.org/ticket/19910

I attached a patch that fixes it 3 weeks ago, but there's been no response from the VBox maintainers as yet.
Comment 3 Dave Hodgins 2021-01-18 17:11:25 CET
Due to buggy efi support, for the last 6 years or so, efi testing has only
been done on real hardware. Using efi under vb has not been supported by
Mageia. While it may work, it's unlikely.
Comment 4 Martin Whitaker 2021-01-18 17:22:36 CET
Not so Dave. I test every ISO build with EFI in VirtualBox. Up until this regression, there has been no problem with it (apart from the EFI NVRAM forgetting its contents when you power down the VM, which is easily worked around).

I also used VirtualBox to test and debug EFI boot for the new memory test program that's on the ISOs.
Comment 5 Thomas Backlund 2021-01-18 19:45:40 CET
(In reply to Martin Whitaker from comment #2)
> It was a regression in VBox 6.1.14:
> 
>   https://www.virtualbox.org/ticket/19910
> 
> I attached a patch that fixes it 3 weeks ago, but there's been no response
> from the VBox maintainers as yet.


That's not so surprising as their public source trees have stalled on: 12/18/2020... 

Eithers they are running low on developers as they are hiring more or they are running in release testing mode planning to splash out 6.2...

I guess we could merge that patch if it helps testing.
Comment 6 Martin Whitaker 2021-01-18 20:22:46 CET
It's a bit more complicated than merging the patch. Normally the EFI firmware is a pre-built binary blob, and rebuilding it doesn't work out of the box. I can probably reconstruct what I did to get it to build if you want.

Currently I'm using a local build, so it's not critical for me.
Morgan Leijström 2021-02-11 14:51:16 CET

CC: (none) => fri

Comment 7 papoteur 2021-03-14 15:28:43 CET
Hello,
A user reported me than with virtualbox 6.1.18 r1142142, he can start Kubuntu 20.10, but not Mageia ISO in EFI mode. He uses this method for demonstration purposes before students.
I think there is still two problems:
virtualbox looking only in EFI/boot, thus doesn't find EFI/mageia.
And another one point by Martin.

CC: (none) => yves.brungard_mageia

Comment 8 Martin Whitaker 2021-03-14 17:54:42 CET
(In reply to papoteur from comment #7)
> I think there is still two problems:
> virtualbox looking only in EFI/boot, thus doesn't find EFI/mageia.VirtualBox

6.1.18 saves and restores the contents of the EFI NVRAM when you power down and power up the VM, so you can now install the bootloader in /EFI/mageia instead of /EFI/BOOT. The annoying thing is that having done this, VBox then ignores the boot order specified in the VM settings, so you can no longer easily override it and boot from a CDROM/ISO instead (the workaround is to delete the VM .nvram file).

> And another one point by Martin.

Still no response from the VBox devs on that bug.

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