Ubuntu and VirtualBox EFI

Quick post on fixing the EFI shell issue for booting Ubuntu on VirtualBox with the "Enable EFI" option selected.

Credits to Mostafa Ahangarha over on https://askubuntu.com/questions/566315/virtualbox-boots-only-in-uefi-interactive-shell for the original answer.

From the EFI shell after installing Ubuntu, type the following to boot:
Shell> FS0:\EFI\ubuntu\grubx64.efi

After booting into Ubuntu, create or modify file /boot/efi/startup.nsh and add the following line:
FS0:\EFI\ubuntu\grubx64.efi


Save and close the file. Tested to work on Ubuntu 16.04.3 LTS.

Comments

Popular posts from this blog

Exclude directories from chown

Flash game: Cargo Bridge

Copying Sony recovery partition to new harddisk