I installed VirtualBox on my Kali 4.6.0-kali1-amd64. VB launches but when I start a VM it gives me the following error:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/sbin/vboxconfig'
as root.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
I have attempted to fix this through multiple ways but I still cant get it to run. How can I fix this error so the I can run my VM?
////////
Removed VB.Downloaded the deb from the VB website. Using apt-get install dkms build-essential linux-headers-$(uname -r)
returns the following error:
E: Unable to locate package linux-headers-4.6.0-kali1-amd64 E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64' E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'
How can I fix this?
////////////////// Update:
Fixed the headers issue by adding deb http://mirror.nus.edu.sg/kali/kali kali-rolling main non-free contrib
to my sources list. Reinstalled VB. Now I get:
RTR3InitEx failed with rc=-1912 (rc=-1912)
The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing
'/sbin/vboxconfig'
may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.
where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.