VirtualBox Guest Addition install failed

Discussions about using Linux guests in VirtualBox.
Post Reply
virtualrac
Posts: 4
Joined: 5. May 2011, 15:00
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: OEL 5.5

VirtualBox Guest Addition install failed

Post by virtualrac »

Hello,

I just build a linux-guest virtual box (OEL 5.5) 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 after I run it:

"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.el5
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.
If I run the yum command above it says "no package kernel-devel-2.6.18-194.e15 available.". If I do uname -r, it reports 2.6.18-194.el5.


I've been struggling on this since yesterday. Really appreciate some help here.

Thanks,
Harry
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox Guest Addition install failed

Post by Perryg »

run the yum update first then install the necessary packages to be able to build external kernel modules.
This should help Howto: Install Linux Guest Additions
Post Reply