VirtualBOX error /tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=   6 comments

During the installation of “Insert Guest Additions CD Image” everytime it was failing.  The purpose of installing is will help us in free movement of cursor(mouse pointer) from host to guest and vice versa without using right CTRL key. Everytime if we want to move our cursor from guest to host or host to guest we need to press right CTRL key.

I am running my host on Windows7

and Guest running on OEL6.4

When i was installing i see below error:

vbox

When i checked the log file mention in the above screen, i see below error.

Creating udev rule for the Guest Additions kernel module.
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Creating user for the Guest Additions.

To overcome this error update gcc using

1.yum update gcc

2. yum update

3. yum install kernel-uek-devel

*Please note that to execute “yum” your guest vmbox should have internet connection

now after doing all the above I again executed ./VMBoxLinuxAdditions.run

successYes I am able to successfully finish the Insert VMBox Guest Addition CD Image on Virtual Guest

Advertisements

Posted November 10, 2013 by balaoracledba.com in VirtualBOX

6 responses to “VirtualBOX error /tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=

Subscribe to comments with RSS.

  1. Just for an update this is same when you are using OEL 5.10 as well

  2. It worked on Centos 5.9, thanks a lot!

  3. many thanks, it works !!

  4. Thanks! it worked on OEL 6.6

  5. I ran these two commands and it helped:
    yum install kernel-uek-devel and yum install kernel-uek-headers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: