Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualBox UEFI starts Shell> after OVF import #4

Open
Erriez opened this issue Aug 31, 2021 · 6 comments
Open

VirtualBox UEFI starts Shell> after OVF import #4

Erriez opened this issue Aug 31, 2021 · 6 comments

Comments

@Erriez
Copy link
Contributor

Erriez commented Aug 31, 2021

@eaksel Thanks for creating this project. I've successfully built a Debian 10.10.0-amd64 VirtualBox VM, but after importing the OVF it starts the UEFI shell:

Screenshot from 2021-08-31 10-52-06

Latest VirtualBox version on Ubuntu 21.04: 6.1.26 r145957.

Shell> fs0:
FS0:\> dir
ls: File Not Found - 'FS0:\'

Do you have a suggestion how to automatically start the OS after power-on? Thanks!

@eaksel
Copy link
Owner

eaksel commented Sep 1, 2021

I'll try looking into it in the next few days.
Thanks for reporting the issue.

@Erriez
Copy link
Contributor Author

Erriez commented Sep 1, 2021

@eaksel. I could not find a solution in the meantime. Thanks!

@eaksel
Copy link
Owner

eaksel commented Sep 7, 2021

@Erriez,
Found multiple ways of fixing this issue, but the only one that I've been able to make work during the build sequence is copying "/boot/efi/EFI/debian/grubx64.efi" to "/boot/efi/EFI/boot/bootx64.efi" (ref: https://blog.wbcchsyn.net/1574439775.html).

The other solutions are to boot into Debian using this command in the uefi shell:
FS0:\EFI\debian\shimx64.efi

And once in Debian run one of these two commands:

@Erriez
Copy link
Contributor Author

Erriez commented Sep 8, 2021

@eaksel Thanks for your investigation! I'll test it.

@Erriez
Copy link
Contributor Author

Erriez commented Sep 8, 2021

Good news it that it works for UEFI builds. However, the change in setup.yml breaks build of debian10.json:
13cc32e#r56149114

A suggestion is to set an environment variable in debian10_uefi.json to ignore steps Configure automatic UEFI Boot for VirtualBox x in setup.yml.

@eaksel
Copy link
Owner

eaksel commented Sep 11, 2021

Thanks for the feedback, I hadn't checked the bios build.

Added a check to only apply this to UEFI builds.

Based on lines 34-36 of this: https://github.com/openstack/ansible-hardening/blob/master/tasks/main.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants