Virtualbox Kernel driver not installed (rc=-1908)

Error

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Check the file /var/lib/dkms/virtualbox/5.2.4/build/make.log

[email protected]:~$ sudo cat /var/lib/dkms/virtualbox/5.2.4/build/make.log

DKMS make.log for virtualbox-5.2.4 for kernel 4.14.0-kali3-amd64 (x86_64)
make: Entering directory '/usr/src/linux-headers-4.14.0-kali3-amd64'
/usr/src/linux-headers-4.14.0-kali3-common/Makefile:947: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". 
 Stop.

Solution

[email protected]:~$ sudo apt install --reinstall virtualbox-dkms && sudo apt install libelf-dev

Author: alexos