LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2013, 03:09 AM   #1
kirthan
LQ Newbie
 
Registered: Feb 2013
Location: India
Posts: 3

Rep: Reputation: Disabled
Virtul-box error on cent os


Hi please help me i'm getting error as below because of this i'm not able run virtual box on centos .

[root@localhost ~]# service vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 2.6.32-279.2.1.el6.i686 cannot be found at
/lib/modules/2.6.32-279.2.1.el6.i686/build or /lib/modules/2.6.32-279.2.1.el6.i686/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)

[root@localhost ~]# cat /var/log/vbox-install.log
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.24

------------------------------
Deleting module version: 4.1.24
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

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

DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
 
Old 02-07-2013, 03:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Install the kernel source package, as that's clearly what it's looking for.
 
Old 02-07-2013, 04:38 AM   #3
kirthan
LQ Newbie
 
Registered: Feb 2013
Location: India
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi Chris
Thank you for your reply , but i'm still getting the same problem ,
I have installed three kernel source packages as mentioned below

1) kernel-devel
2) kernel-xen-devel
3) kernel-PAE-devel


Can you please help me out .
 
Old 02-07-2013, 04:54 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
there's usually a specific headers package available as well as the dev (but the usage of dev / headers / source package names changes a lot over time and between distros). What version have you installed? Note it wants that specific version.

rpm -ql kernel-devel

will tell you what has been installed where.
 
  


Reply


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] Cent OS 5.3 won't install in Virtual Box 4.0.4.0.8 gelam Linux - Virtualization and Cloud 9 05-25-2011 09:28 AM
Cent Os 5.1 Qmail error amary_09 Linux - Enterprise 4 06-21-2010 08:47 AM
i use the following way to install vlc in cent os but i got the following error praveenkalam Linux - Software 6 12-21-2009 04:49 AM
Can't ping virtul IP address from outside when I set up heartbeat paulzhoucn Linux - Software 1 02-03-2009 07:08 PM
IP Based Virtul Hosts kihtap Linux - Software 4 01-28-2005 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

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