Page 1 of 1

error code:Kernel driver not installed

Posted: 4. Nov 2017, 13:00
by smily
Hello,

I've got a question. I use Debian 9.0 Stretch on a desktop computer. Before I used Ubuntu 16.04. Since I installed Virtalbox 5.2.0 I can't use Virtalbox. I get the error code :

Code: Select all

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. 
When I use /sbin/vboxconfig to install the Virtual boxkernel again I get the following message

Code: Select all

root@s:/home/dave# /sbin/vboxconfig
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-4.9.0-4-amd64
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-4.9.0-4-amd64

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
It doesn't help. Can you help me with my problem?

Re: error code:Kernel driver not installed

Posted: 4. Nov 2017, 14:17
by Martin
In many cases such an error appeared when 'secure boot' was enabled in the system BIOS.

Re: error code:Kernel driver not installed

Posted: 4. Nov 2017, 17:15
by smily
Thank you for your response. I do not think seucre vboot is the problem, because my computer doesn't have secure boot.

Re: error code:Kernel driver not installed

Posted: 4. Nov 2017, 17:29
by Perryg
Did you try installing the missing packages like the error message you posted suggested would fix this issue?

Usually need build-essential and linux-headers ( that match your running kernel )

Re: error code:Kernel driver not installed

Posted: 4. Nov 2017, 19:07
by smily
Your suggestion worked! Thank you.

Re: error code:Kernel driver not installed

Posted: 13. Oct 2019, 01:53
by tobimedias
My linux distribution is Open Suse Leap 15.1.

I got the following message:

Code: Select all

Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /usr/lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /usr/lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /usr/lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /usr/lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    kernel-default-devel kernel-default-devel-4.12.14-lp151.28.20
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    kernel-default-devel kernel-default-devel-4.12.14-lp151.28.20

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may 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.
I ran the following command as root user:

Code: Select all

         zypper install -y kernel-default-devel
After installation I ran the following command as root user:

Code: Select all

         /sbin/vboxconfig
And finally a ran VirtualBox and it works fine now.