Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

VirtualBox Guest Addition install failed

User11957149-OracleMay 4 2011 — edited May 5 2011
Hello,

I just build a linux-guest virtual box and I am trying to install the guest addition and the first step is to run "/etc/init.d/vboxadd setup". I got the following error:

+"The heaers 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.18-194.e15+

+You system does not seem to be set up to build kernel modules. Look at /var/log/vboxadd-install.log to find out what went wrong. Once you have corrected it, you can run /etc/init.d/vboxadd setup to build them."+


And the log file reads:
+"*** Error: unable to find the sources of your current linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop"+


I then tried "yum install dkms". This time no error but it says +"No package dkms available . Nothing to do".+ Also, my /usr/src/kernels directory is empty. I dont know if this is part of the reason.

Thanks for the help.
Harry
This post has been answered by Jared Greenwald-Oracle on May 5 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2011
Added on May 4 2011
8 comments
864 views