Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:
 * epel:
 * extras:
 * updates:
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
if you just try to do a yum install kernel-devel ? – NickW Mar 28 '13 at 11:33

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

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 '14 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 '14 at 0:13

Your Answer


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.