Page 1 of 1

VirtualBox Guest Addition install failed

Posted: 5. May 2011, 15:05
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

Re: VirtualBox Guest Addition install failed

Posted: 5. May 2011, 15:32
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