I follow this guide to setup virtualbox with secure boot: https://stegard.net/2016/10/virtualbox-secure-boot-ubuntu-fail/
I follow all steps, and when try to run /sbin/vboxconfig I get the following error:
sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
Command modprobe vboxdrv
return:
sudo modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Required key not available
UPDATE
After following the solution in my answer I get this error when try to install a virtual machine:
Failed to open a session for the virtual machine Ubuntu.
VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: IConsole {xxx-yyy-xxx-yyy-xxx}
UPDATE 2:
hmmm... seem that issue is caused by this: https://stackoverflow.com/questions/33304393/vt-x-is-disabled-in-the-bios-for-both-all-cpu-modes-verr-vmx-msr-all-vmx-disabl
So I can't allocate more than 3GB?`
UPDATE Important step that I missed:
Enable Virtualization in BIOS!