VirtualBox: Guest suddenly boots only into UEFI Interactive Shell
Plausible fix:
In UEFI Interactive Shell, enter the file system:
fs0:
Following up with creating this file:
edit startup.nsh
Enter this or similar line to it:
\EFI\debian\grubx64.efi
Press CTRL+S to save the file.
Press ENTER to confirm the file name.
Press CTRL+Q to exit the editor.
Restart the Guest:
reset
Important notes:
For some reason you have only a few seconds to edit and save the file. If it takes you longer, then the guest may react with a significant delay. Or it may even freeze.
Replace
debian
with your system's id, e.g.ubuntu
. You may verify this by simply going into the\EFI\
directory and runningls
.
Another way:
If you don't succeed, and supposing your guest is Linux type, I myself had to do it:
Boot from live USB with any Linux.
Mount the root file system.
Create this file on the mounted file system, adjust the path to wherever you have mounted it:
/boot/efi/startup.nsh
Enter the above explained line to it.