Install VirtualBox Guest Additions on CentOS 5.x
This has been documented many times before, but for some reason installing VirtualBox guest additions on CentOS is a pain. To install them:
yum install kernel-devel gcc- either
ln -s /usr/src/kernel/[current version] /usr/src/linuxor export KERN_DIR=/usr/src/kernel/[current version]- Then the usual
./VBoxLinuxAdditions-[arch].run
For whatever reason, the VirtualBox guest additions still expect to find the kernel headers in /usr/src/linux and not the location in which they are really installed to.
Thanks !!