I have Ubuntu 20.04 (host), and I've installed Ubuntu 22.04 (guest) in VirtualBox 6.1.34.
Before running the guest installation, in the VirtualBox settings, I turned on Settings > System > Motherboard > Enable UEFI.
But, after having installed Ubuntu 22.04 as the guest, I find that Secure Boot isn't actually turned on. At first, it looks like it, but mokutil says that it isn't.
Code:
$ [[ -e /sys/firmware/efi ]] && echo yes
yes
Code:
$ sudo efibootmgr
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0000,0001,0002,0003
Boot0000* UiApp
Boot0001* UEFI VBOX CD-ROM VB2-01700376
Boot0002* UEFI VBOX HARDDISK VB8573e6c9-0375295f
Boot0003* EFI Internal Shell
Boot0004* ubuntu
Code:
$ mokutil --sb-state
This system doesn't support Secure Boot
What do I need to do to enable Secure Boot on VirtualBox?