I have installed the kernel 5.0.5-050005-generic because I had boot issues.
Now when I run vagrant up
I get this message:
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.
What I then did:
adam@adam-MS-7A63:~/Programme/homestead$ VBoxManage --version
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (5.0.5-050005-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.
6.0.2r128162
Next I tried to recompile as suggested:
adam@adam-MS-7A63:~/Programme/homestead$ sudo /sbin/vboxconfig
[sudo] password for adam:
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.
I put the content from log file here at Ubuntu Pastebin because if I paste it into a codeblock here I excess the allowed body limit.
I also followed the suggestions from https://askubuntu.com/a/779427/247771 to disable secure boot, but it didn't change anything.
Any suggestions how to fix this?