Kernel driver not installed (rc=-1908) Solved

Discussions related to using VirtualBox on Linux hosts.

Kernel driver not installed (rc=-1908) Solved

Postby larrym82 » 27. Dec 2011, 14:14

Hello,

I decided to change to the latest Fedora distro (verne). Now, when I try to use VirtualBox (versions 3.2.14 AND 4.1.18) I get the error message shown in the subject line. I know this is a problem with that particular distro because I had VirtualBox running just fine with XP on a VM using Debian v6 squeeze. However, the desktop is not nearly as functional as the Fedora KDE.

Here is the feedback I'm getting when trying to create a new VM:

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

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first.
This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel
module if necessary.

When I installed the DKMS package and reinstalled VirtualBox:

Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/3.2.14/source ->
/usr/src/vboxhost-3.2.14

DKMS: add Completed.
Failed to install using DKMS, attempting to install without
Makefile:160: *** Error: unable to find the sources of your current Linux kernel.
Specify KERN_DIR=<directory> and run Make again. Stop.

Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo

Your kernel headers for kernel 3.1.0-7.fc16.i686 cannot be found at
/lib/modules/3.1.0-7.fc16.i686/build or /lib/modules/3.1.0-7.fc16.i686/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]

Since I'm not all that well versed, I'm wondering what to do about specifying the KERNEL and the missing kernel headers (in red). I assume they are somewhere because the OS is working?

Any advice appreciated.

Larry
Last edited by larrym82 on 27. Dec 2011, 23:21, edited 1 time in total.
larrym82
 
Posts: 6
Joined: 26. Dec 2011, 07:42
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: WindowsXP Pro

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

Postby Perryg » 27. Dec 2011, 15:36

The problem is you have missing packages and the headers and kernel do not match.

As su/sudo in a terminal run one of the following commands.
64-bit host
Code: Select all   Expand viewCollapse view
yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel

Or
32-bit host
Code: Select all   Expand viewCollapse view
yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-pae-devel


And a yum update, reboot when finished and try again.
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Postby larrym82 » 27. Dec 2011, 23:19

@ Perryg

Thank you! The only important feedback I have is that there appears to be a typo or something in the last package - I tried a few combinations -page -pge, but each time the yum installer informed me that 'no such package exists.' I went ahead anyway and everything is up and running.

Best,
Larry
larrym82
 
Posts: 6
Joined: 26. Dec 2011, 07:42
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: WindowsXP Pro


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Google [Bot] and 22 guests