Ubuntu – The vboxdrv kernel module is not loaded


I am using Vagrant. When I try to start it, I get this issue (it was working the past year, no idea why it suddenly fails – I haven't updated anything):

The provider 'virtualbox' that was requested to back the machine
'homestead' is reporting that it isn't usable on this system. The
reason is shown below:

VirtualBox is complaining that the kernel module is not loaded. Please
run VBoxManage --version or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.

Running VBoxManage --version returns this:

WARNING: The vboxdrv kernel module is not loaded. Either there is no
available for the current kernel (5.3.0-26-generic) or it failed to
load. Please recompile the kernel module and install it by

       sudo /sbin/vboxconfig

     You will not be able to start VMs until this problem is fixed.


Running sudo /sbin/vboxconfig returns this:

vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting
VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what
went wrong.

There were problems setting up VirtualBox. To re-start the set-up
process, run /sbin/vboxconfig as root. If your system is using EFI
Secure Boot you may need to sign the kernel modules (vboxdrv,
vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see
your Linux system's documentation for more information.

The log file is very large. I pasted it here.

Any recommendations what I need to do to fix this?

Best Answer

Solved it by upgrading vagrant from 2.2.5 to 2.2.6 and virtualbox to 6.0.16