Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 08-26-2010, 09:19 AM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Failed Install For VirtualBox

I installed CentOS however during package selection, I deselected every option because I don't need or want the bloated dependencies however now when I try and install a 3rd party RPM from Oracle (VirtualBox), it fails:

[root@vbox ~]# cat /var/log/vbox-install.log 
** Compiling vboxdrv
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
I did make sure I have the 'kernel-headers' package installed as show below but I don't know if that is the exact package VirtualBox is complaining about.

[root@vbox ~]# rpm -qa kernel-headers
Anyone know how I can resolve this issue and correctly install VirtualBox on CentOS 5.5 64-bit?

Below is the exact error I got when installing the VirtualBox RPM:

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

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 are not found.
Install them and execute as root.

  /etc/init.d/vboxdrv setup

*****I installed kernel-devel package and that fixed it.*****

Last edited by carlosinfl; 08-26-2010 at 09:44 AM. Reason: Self Resolved
Old 08-26-2010, 09:45 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,797

Rep: Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602
Off ZRT. Please mark your thread solved by using Thread Tools.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] VirtualBox Install Error MTK358 Linux - Software 3 03-08-2010 02:49 PM
[SOLVED] I got a problem "Starting VirtualBox kernel module ...failed!" wubai Slackware 29 01-04-2010 08:31 AM
I can't get slackware to install to a virtualbox vm dustin2128 Slackware 6 06-30-2009 11:14 AM
Failed to install video drivers... Extraction failed! QueenZ Linux - Newbie 2 03-13-2009 08:55 AM
virtualbox failed to open my vm alf_frommars Ubuntu 0 07-19-2007 06:20 AM

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration