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:

  1. yum install kernel-devel gcc
  2. either ln -s /usr/src/kernel/[current version] /usr/src/linux or
  3. export KERN_DIR=/usr/src/kernel/[current version]
  4. 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.

10. August 2010 by Jason
Categories: Virtualization | Tags: , | 1 comment

One Comment

  1. Thanks !!

Leave a Reply

Required fields are marked *

*