Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I am trying to install Guest Additions in my VirtualBox Vm which is running CentOS.

I am getting this error though:

The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.32-279.5.2.el6.x86_64

When I try to run the yum install command mentioned in the error, I get:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ox.ac.uk
 * epel: mirror.nl.leaseweb.net
 * extras: centos.serverspace.co.uk
 * updates: centos.serverspace.co.uk
Setting up Install Process
No package kernel-devel-2.6.32-279.5.2.el6.x86_64 available.
Error: Nothing to do

Any idea how to solve this issue?

share|improve this question
5  
if you just try to do a yum install kernel-devel ? –  NickW Mar 28 '13 at 11:33
add comment

2 Answers

It's not unlikely that centos has published a kernel update. Run yum install kernel-devel and yum update kernel. Then reboot into the newer kernel.

share|improve this answer
add comment

As a privileged user try:

# yum update
# yum install kernel-devel
# yum groupinstall "Development Tools"

Reboot the system, mount the Guest Additions CD and autorun.

I find it helpful to reboot again after the Guest additions has been installed.

You may find my blog post about the detailed process that I use to setup Vagrant boxes helpful. It outlines the Guest Additions issues as part of the Vagrant setup process including screen shots.

share|improve this answer
    
That is a dead link. –  EEAA Mar 18 at 21:39
    
@EEAA - I am updating the article, it will be live shortly as soon as I verify the information is updated and accurate. –  Charleston Software Associates Mar 19 at 0:13
add comment

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.