error code:Kernel driver not installed

Discussions related to using VirtualBox on Linux hosts.
Post Reply
smily
Posts: 3
Joined: 4. Nov 2017, 12:53

error code:Kernel driver not installed

Post 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?
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: error code:Kernel driver not installed

Post by Martin »

In many cases such an error appeared when 'secure boot' was enabled in the system BIOS.
smily
Posts: 3
Joined: 4. Nov 2017, 12:53

Re: error code:Kernel driver not installed

Post by smily »

Thank you for your response. I do not think seucre vboot is the problem, because my computer doesn't have secure boot.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: error code:Kernel driver not installed

Post 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 )
smily
Posts: 3
Joined: 4. Nov 2017, 12:53

Re: error code:Kernel driver not installed

Post by smily »

Your suggestion worked! Thank you.
tobimedias
Posts: 1
Joined: 13. Oct 2019, 00:07

Re: error code:Kernel driver not installed

Post 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.
Post Reply