[SOLVED] kernel module does not compile in Ubuntu

Discussions related to using VirtualBox on Linux hosts.
Post Reply
sbetch
Posts: 3
Joined: 9. Sep 2008, 23:48

[SOLVED] kernel module does not compile in Ubuntu

Post 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!
Last edited by sbetch on 10. Sep 2008, 01:13, edited 1 time in total.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
sbetch
Posts: 3
Joined: 9. Sep 2008, 23:48

Post by sbetch »

Sorry, i wasn't clear. The error above happened in OSE, 2.0 and 1.6.6
sbetch
Posts: 3
Joined: 9. Sep 2008, 23:48

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