Skip to content

Instantly share code, notes, and snippets.

@qguv
Last active November 25, 2015 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qguv/605e6ae05229f94a092a to your computer and use it in GitHub Desktop.
Save qguv/605e6ae05229f94a092a to your computer and use it in GitHub Desktop.
Virtual Box EFI persistance workaround

Is Virtual Box's EFI firmware failing to keep data between VM restarts? Have you tried both manual configuration and efibootmgr to no avail?

Make a file called startup.nsh containing your kernel boot line, e.g.

vmlinuz-linux root=/dev/sdXY initrd=/initramfs-linux.img

This will use EFISTUB to boot the kernel directly, see https://wiki.archlinux.org/index.php/EFISTUB#Using_UEFI_Shell. This still isn't really causing persisting changes (e.g. config changes via the NVRAM still don't persist) but at least this lets you boot EFI without fiddling with settings all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment