VirtualBox – vboxdrv kernel module is not loaded

  • Post author:
  • Post last modified:May 21, 2023
  • Reading time:1 mins read

1.0 Error

After starting VirtualBox the first time after installation, the following error was observed.

The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel or it failed to load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig

If a VM is started, the following error is given.

Kernel driver not installed (rc = -1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
/sbin/vboxconfig

2.0 Solution

The system is using UEFI secure boot and the modules vboxdrv, vboxnetflt and vboxnetadp need to be signed before using VirtualBox. A machine owner key (MOK) is generated and needs to be enrolled in the system’s firmware. The user is prompted for a password. The same password needs to be entered to enroll the MOK during the next system boot.

Reset the system.

At the system boot, the “Enroll MOK” screen is displayed. Click “View Key” and provide the password.

Share

Karunesh Johri

Software developer, working with C and Linux.
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments