Kernel driver not installed (rc=-1908) - Unable to install Kernel Dev

Discussions related to using VirtualBox on Linux hosts.
Post Reply
chowden
Posts: 3
Joined: 15. May 2022, 18:00

Kernel driver not installed (rc=-1908) - Unable to install Kernel Dev

Post by chowden »

Hello
Maybe someone can help me as I am going round in circles.
I am running Rock 8.5 with kernel 5.17.7-1.el8.elrepo.x86_64. When I launch a VB I get the error below as soon as I start a VB.
Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is probably not loaded.You may not have kernel driver installed for kernel that is runnig, if so you may do as root: dnf install akmod-VirtualBox kernel-devel-$(uname -r)If you installed VirtualBox packages and don't want reboot the system, you may need load the kernel driver, doing as root: akmods; systemctl restart vboxdrv.service

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.
My terminal returns :

Code: Select all

$ sudo dnf install akmod-VirtualBox kernel-devel-$(uname -r)
Last metadata expiration check: 4:43:51 ago on Sun 15 May 2022 12:14:36 PM CEST.
No match for argument: kernel-devel-5.17.7-1.el8.elrepo.x86_64
Error: Unable to find a match: kernel-devel-5.17.7-1.el8.elrepo.x86_64
I install kernel-devel-5.17.7-1.el8.elrepo.x86_64

Code: Select all

sudo dnf --enablerepo=elrepo-kernel install kernel-ml-tools-libs-devel
Last metadata expiration check: 4:45:51 ago on Sun 15 May 2022 12:14:36 PM CEST.
Package kernel-ml-tools-libs-devel-5.17.7-1.el8.elrepo.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
I found a command to change the headers but ...

Code: Select all

sudo yum install -y kernel*devel kernel*headers --allowerasing
Last metadata expiration check: 0:48:32 ago on Sun 15 May 2022 05:22:58 PM CEST.
Package kernel-ml-devel-5.17.7-1.el8.elrepo.x86_64 is already installed.
Package kernel-ml-tools-libs-devel-5.17.7-1.el8.elrepo.x86_64 is already installed.
Package kernel-ml-headers-5.17.7-1.el8.elrepo.x86_64 is already installed.
Error: 
 Problem 1: package kernel-ml-tools-libs-devel-5.17.7-1.el8.elrepo.x86_64 conflicts with kernel-tools-libs-devel < 5.17.7-1.el8.elrepo provided by kernel-lt-tools-libs-devel-5.4.193-1.el8.elrepo.x86_64
  - cannot install the best candidate for the job
 Problem 2: package kernel-lt-headers-5.4.193-1.el8.elrepo.x86_64 conflicts with kernel-headers < 5.4.193-1.el8.elrepo provided by kernel-headers-4.18.0-348.23.1.el8_5.x86_64
  - cannot install the best candidate for the job
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
But this does seem to rectify the issue ... if my issue comes from this problem in the first place.

Would anyone have an idea how I can move forward on this?
Many thanks
chowden
Posts: 3
Joined: 15. May 2022, 18:00

Re: Kernel driver not installed (rc=-1908) - Unable to install Kernel Dev

Post by chowden »

I launched Virtualbox in the terminal & got this

Code: Select all

virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.17.7-1.el8.elrepo.x86_64) or it failed to
         load. Please try load the kernel module by executing as root

           dnf install akmod-VirtualBox kernel-devel-5.17.7-1.el8.elrepo.x86_64
           akmods --kernels 5.17.7-1.el8.elrepo.x86_64 && systemctl restart vboxdrv.service

         You will not be able to start VMs until this problem is fixed.

Code: Select all

sudo dnf install akmod-VirtualBox kernel-devel-5.17.7-1.el8.elrepo.x86_64
RPM Fusion for EL 8 - Free tainted                                                                   86 kB/s | 6.8 kB     00:00    
RPM Fusion for EL 8 - Nonfree tainted                                                               114 kB/s | 6.9 kB     00:00    
No match for argument: kernel-devel-5.17.7-1.el8.elrepo.x86_64
chowden
Posts: 3
Joined: 15. May 2022, 18:00

Re: Kernel driver not installed (rc=-1908) - Unable to install Kernel Dev

Post by chowden »

It seems that I had a bit of a kernel mess. I resolved the issue by
1. setting a new default boot kernel
https://www.thegeekdiary.com/centos-rhe ... ld-kernel/

2. Getting rid as many of the old kernels as i could.
https://www.centlinux.com/2021/08/remov ... hel-8.html

On reboot, the Virtualbox had disappeared, so I reinstalled a new version and works fine.
Post Reply