Virtualbox Kernel driver not installed (rc=-1908)

Questions about virtualization software
Forum rules
Before you post please read how to get help
Post Reply
nickg001
Level 1
Level 1
Posts: 4
Joined: Thu Jun 04, 2020 12:05 pm

Virtualbox Kernel driver not installed (rc=-1908)

Post by nickg001 »

Hello
I am on mint 19.3 I installed virtualbox to run an old win7 . When i run virtual machine win7 i get an error :Kernel driver not installed (rc=-1908)
I reinstalled virtualbox : always this error.
On terminal :
root@nick-OCTO:~# modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.4.0-39-generic
root@nick-OCTO:~#
I looked on internet ....no solution for me
thank you for help

User avatar
Flemur
Level 18
Level 18
Posts: 8458
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Virtualbox Kernel driver not installed (rc=-1908)

Post by Flemur »

nickg001 wrote:
Fri Jun 26, 2020 12:15 pm
Hello
I am on mint 19.3 I installed virtualbox to run an old win7 . When i run virtual machine win7 i get an error :Kernel driver not installed (rc=-1908)
...
root@nick-OCTO:~# modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.4.0-39-generic
Try (re)installing virtualbox-dkms

Code: Select all

sudo apt install virtualbox-dkms
https://www.ostechnix.com/how-to-fix-ke ... in-ubuntu/
If that doesn't work

Code: Select all

sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
https://askubuntu.com/questions/1008150 ... ed-rc-1908
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

nickg001
Level 1
Level 1
Posts: 4
Joined: Thu Jun 04, 2020 12:05 pm

Re: Virtualbox Kernel driver not installed (rc=-1908)

Post by nickg001 »

thanks but....that doesn't work

root@nick-OCTO:/home/nick# sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkm
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 3 réinstallés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 68,1 ko/2 081 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Réception de :1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 dkms all 2.3-3ubuntu9.7 [68,1 kB]
68,1 ko réceptionnés en 0s (178 ko/s)
(Lecture de la base de données... 339252 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../dkms_2.3-3ubuntu9.7_all.deb ...
Dépaquetage de dkms (2.3-3ubuntu9.7) sur (2.3-3ubuntu9.7) ...
Préparation du dépaquetage de .../linux-headers-5.4.0-39-generic_5.4.0-39.43~18.04.1_amd64.deb ...
Dépaquetage de linux-headers-5.4.0-39-generic (5.4.0-39.43~18.04.1) sur (5.4.0-39.43~18.04.1) ...
Préparation du dépaquetage de .../virtualbox-dkms_5.2.34-dfsg-0~ubuntu18.04.1_all.deb ...

------------------------------
Deleting module version: 5.2.34
completely from the DKMS tree.
------------------------------
Done.
Dépaquetage de virtualbox-dkms (5.2.34-dfsg-0~ubuntu18.04.1) sur (5.2.34-dfsg-0~ubuntu18.04.1) ...
Paramétrage de linux-headers-5.4.0-39-generic (5.4.0-39.43~18.04.1) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 5.4.0-39-generic
...done.
Paramétrage de dkms (2.3-3ubuntu9.7) ...
Paramétrage de virtualbox-dkms (5.2.34-dfsg-0~ubuntu18.04.1) ...
Loading new virtualbox-5.2.34 DKMS files...
Building for 5.4.0-39-generic
Building initial module for 5.4.0-39-generic
Error! Bad return status for module build on kernel: 5.4.0-39-generic (x86_64)
Consult /var/lib/dkms/virtualbox/5.2.34/build/make.log for more information.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated)
Active: failed (Result: exit-code) since Fri 2020-06-26 22:10:07 CEST; 4ms ago
Docs: man:systemd-sysv-generator(8)
Process: 3227 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

juin 26 22:10:07 nick-KUBB-OCTO systemd[1]: Starting LSB: VirtualBox Linux kernel module...
juin 26 22:10:07 nick-KUBB-OCTO virtualbox[3227]: * Loading VirtualBox kernel modules...
juin 26 22:10:07 nick-KUBB-OCTO virtualbox[3227]: * No suitable module for running kernel found
juin 26 22:10:07 nick-KUBB-OCTO virtualbox[3227]: ...fail!
juin 26 22:10:07 nick-KUBB-OCTO systemd[1]: virtualbox.service: Control process exited, code=exited status=1
juin 26 22:10:07 nick-KUBB-OCTO systemd[1]: virtualbox.service: Failed with result 'exit-code'.
juin 26 22:10:07 nick-KUBB-OCTO systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Traitement des actions différées (« triggers ») pour man-db (2.8.3-2ubuntu0.1) ...
root@nick-KUBB-OCTO:/home/nick#

mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: Virtualbox Kernel driver not installed (rc=-1908)

Post by mr_raider »

Mint 19.x uses a very old version of virtualbox that is no longer supported. I suggest you remove the version you installed completely from the repos and install the version from Oracles website. It no longer uses dkms.

to remove it use

Code: Select all

sudo apt purge virtualbox*
The new download is here:

https://www.virtualbox.org/wiki/Linux_Downloads

You can optionally follow the instructions for Debian based distros and add the repo.
Image

nickg001
Level 1
Level 1
Posts: 4
Joined: Thu Jun 04, 2020 12:05 pm

Re: Virtualbox Kernel driver not installed (rc=-1908)

Post by nickg001 »

thanks a lot it's works ! :D

Post Reply

Return to “Virtualization”