Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I did upgrade virtualbox from 4.1 to 4.2

wheneverver I want to load my win xp vdi, it gives me the following error:

"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. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary."

I ran the suggested step to reinstall the kernel module, and the log file is as follow:

Makefile:181: * Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop. Makefile:181: * Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop. Makefile:181: * Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

I still unable to re-run my win virtual XP vdi file.

anyone have a clue?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

Looks like you don't have the kernel headers installed, dkms needs then to install the Virtual Box kernel drive, to install then run:

sudo apt-get install linux-headers-`uname -r`

Afterwards,

/etc/init.d/vboxdrv setup

should work.

share|improve this answer
    
Hey it works man! I did exactly according your suggestion. why the error doesn't say anything about kernel header? just curious. –  Husni Nov 17 '12 at 17:20
    
It does. You have highlighted it in bolt in your question ;). –  Javier Rivera Nov 19 '12 at 10:22
    
I see what it did there... many thanks! –  Husni Nov 19 '12 at 12:03
    
Came here with the same issues as the OP. It was the 'uname -r' advice that you left that made me check the version of the Kernel headers I had installed. They were not the same version as the Kernel I'm running. Thanks. –  csilk Dec 7 '12 at 18:59
    
This allows /etc/init.d/vboxdrv setup to run; however, it fails with the error Failed to install using DKMS, attempting to install without Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop. This can hardly be considered successful... –  weberc2 Feb 2 '13 at 21:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.