VirtualBox error: Kernel driver not installed (rc=-1908) (running ubuntu 20.04 on my chromebook)
When I try to start a virtual machine in VirtualBox, I get the error above. I tried what it asked me to do, but it didn't work. My kernel version is 4.4.232. Also, here is the error message:
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please reinstall virtualbox-dkms package and load the kernel module by executing
'modprobe vboxdrv'
as root.
If your system has EFI Secure Boot enabled you may also 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.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
Also, it gave me a second error message:
The virtual machine 'linux 2' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
MachineWrap
Interface:
IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
And yes, I am trying to run Linux within Linux, but I know it's not that because I have tried multiple different virtual machines. Also, I am running this ubuntu 20.04 on my chromebook, so if that's the problem, I'd like a workaround for that. I set it up using crouton on howtogeek.com, if that helps.
(edit) I have had the same error messages on ubuntu 16.04 and ubuntu 18.04, so the version is not the problem. also, I noticed while reinstalling virtualbox the terminal mention that my kernel version likley belongs to a chroot's host, so that might be a problem too. If I need a different version of linux kernel, I'd like directions to do that because it's probably different for me since i'm using my chromebook.
I got the same problem after some updates on Ubuntu 20.04. I solve this problem by manual installation of a recent version of VirtualBox 6.1.16. By default Ubuntu 20.04 installing 6.1.10.
Go there https://www.virtualbox.org/wiki/Linux_Downloads and read chapter "Debian-based Linux distributions". In brief, you should:
Add new line to the file /etc/apt/sources.list
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian focal contrib
Then type next commands
sudo wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-6.1
Probably you need to disabe "Secure Boot" in the BIOS as well.
P.S.: I was in a panic when my VirtualBox stops working. This is a very important software for me.
I faced this problem in Ubuntu 20.04. My secure boot was already off and neither I updated my system or the Virtual Box and this issue came out of blue.
I fixed this issue by simply updating and upgrading my host machine -
sudo apt update
sudo apt upgrade
I had the exact issue. Fixed it with the following simple commands
sudo apt update
sudo apt install virtualbox
The good thing was that my existing machines were never affected; they still worked very fine.