Page 1 of 1

[SOLVED] kernel module does not compile in Ubuntu

Posted: 10. Sep 2008, 00:08
by sbetch
Hey,

After searching the forums a few times, i was unable to find a solution to my problem.

When installing virtual box through synaptic in Ubuntu 8.04, i get the following error:

Code: Select all

 Compilation of the Kernel module FAILED!

VirtualBox will not start until this problem is fixed. Please consult /var/log/vbox-install.log to find out why the kernel module does not compile. Most probably the kernel sources were not found. Install them and execute

  /etc/init.d/vboxdrv setup

as root.

I have tried installing the kernel headers, tried using the correct OSE modules, including the generic modules. I am running the Ubuntu kernel version 2.6.24-21 and have reinstalled this, as well as have installed the corresponding header files.

I have also added myself to vboxusers so thats not an issue either.

Any help would be appreciated. I have been trying to make this work for a few days and dont have much more time to give to it.

Thanks!

Posted: 10. Sep 2008, 00:16
by Sasquatch
If you don't want all the hassle of the OSE version, remove all traces of it and download 1.6.6 from the website. Install that and it will work just fine. Be sure that you have the correct module build packages. See the manual for it (usually, when installing, you see dependencies and if you have them installed or not).

Posted: 10. Sep 2008, 00:31
by sbetch
Sorry, i wasn't clear. The error above happened in OSE, 2.0 and 1.6.6

Posted: 10. Sep 2008, 01:15
by sbetch
I was able to solve the issue after finding something in an old bug that was supposedly fixed.

After reinstalling vbox 2.0, i found the link below.

http://www.virtualbox.org/ticket/1622

After installing dkms as seen in one of the comments, and running

Code: Select all

$ sudo /etc/init.d/vboxdrv setup
everything worked again! wooooo!