error code:Kernel driver not installed

Discussions related to using VirtualBox on Linux hosts.

error code:Kernel driver not installed

Postby smily » 4. Nov 2017, 13:00

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 :
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

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

Re: error code:Kernel driver not installed

Postby Martin » 4. Nov 2017, 14:17

In many cases such an error appeared when 'secure boot' was enabled in the system BIOS.
Martin
Volunteer
 
Posts: 1823
Joined: 30. May 2007, 18:05
Primary OS: Fedora 18
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: error code:Kernel driver not installed

Postby smily » 4. Nov 2017, 17:15

Thank you for your response. I do not think seucre vboot is the problem, because my computer doesn't have secure boot.
smily
 
Posts: 3
Joined: 4. Nov 2017, 12:53

Re: error code:Kernel driver not installed

Postby Perryg » 4. Nov 2017, 17:29

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 )
Perryg
Site Moderator
 
Posts: 34266
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

Postby smily » 4. Nov 2017, 19:07

Your suggestion worked! Thank you.
smily
 
Posts: 3
Joined: 4. Nov 2017, 12:53


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Exabot [Bot] and 13 guests