Ubuntu17.10 modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.10.0-35-generic

modprobeUbuntuvirtualbox

sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.10.0-35-generic

Reinstalled dkms but I still get

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 virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

Ran find /lib/modules/$(uname -r) -name vboxdrv.ko

Output:

beastly@Beastly:~$ find /lib/modules/$(uname -r) -name vboxdrv.ko
beastly@Beastly:~$ 

Ran

beastly@Beastly:~$ sudo apt-cache policy virtualbox

Output:

virtualbox:
  Installed: 5.1.30-dfsg-1
  Candidate: 5.1.30-dfsg-1
  Version table:
 *** 5.1.30-dfsg-1 500
        500 http://us.archive.ubuntu.com/ubuntu artful/multiverse amd64 Packages
        100 /var/lib/dpkg/status

Ran

beastly@Beastly:~$ dkms status

Output:

virtualbox, 5.1.30, 4.13.0-16-generic, x86_64: installed

Ran

beastly@Beastly:~$ (uname -r)

Output:

4.10.0-35-generic

Best Answer

@ Bahamut. Thank you.

After upgrade from Zesty to Artful, my machine was booting from and older kernel, hence the incompatibility.

sudo reboot

Hit escape and select advance options.

Selected the newest kernel Installed compatible ext pack

 sudo apt-get install virtualbox-ext-pack

VirtualBox runs pristine.

Related Question