Ubuntu won’t boot in efi virtualbox

Ubuntu won’t boot in efi virtualbox.

From the VirtualBox EFI shell:

  1. Wait for the EFI shell to leave you at the terminal.
  2. Type: edit startup.nsh
  3. Type the path to your desired .efi file. Typically: fs0:\EFI\ubuntu\grubx64.efi
  4. Ctrl+S to save.
  5. Enter to confirm.
  6. Ctrl+Q to exit back to shell.
  7. Reboot the VM. It will still display the EFI shell but will load Grub automatically.