- Update the package index and installed packages:
Code: Select all
yum update -y
- Install pre-requisite packages:
Code: Select all
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel-`uname -r` -y
- Select the "Install Guest Additions" option from the Devices menu, then mount the image and install the guest additions package:
Code: Select all
export KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m` mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom cd /mnt/cdrom ./VBoxLinuxAdditions.run
- Ignore the failure message about the Windows System drivers as this is a server VM without the GUI installed
I reviewed the vboxadd-install.log which identifies the KERN_DIR environment variable as missing. I set it again using the export command above and re-run to get the same error. What am I missing here? Everything I am finding refers to older Fedora/CentOS or VirtualBox releases.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.18-194.el5