How to Install VirtualBox Guest Additions in CentOS 6.x

I found installing VirtualBox guest additions to be more of a challenge than with Ubuntu/Debian, mainly due to some extra packages required and some Kernel variables – here is how I do it:

 

  1. Make sure everything is updated
     yum update 
  2. Update the kernel
     yum update kernel* 
  3. Install the some packages required for the guest additions
     yum install gcc kernel-devel kernel-headers 
  4. Configure the KERN_DIR variable. * you may need to reboot, or it might be a good idea if you do just to be sure.
     KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m`
    export KERN_DIR 
  5. Install guest additions from  Devices Menu on Virtual Box: Devices > Install Guest Additions
    __________________________________________________________________
  6.  Click OK to open the Autorun Prompt and click Run then the root password and the guest additions should install successfully. Reboot the system and verify everything is running.
    __________________________________________________________________

References:
http://wiki.centos.org/HowTos/Virtualization/VirtualBox/CentOSguest
http://www.virtualbox.org/manual/ch04.html

 

Bookmark the permalink.