Installing VMware Tools in CentOS 5

1. Install software needed by VMware Tools

Note: you need to boot the 1-1 kernel from grub for this to work.

  1. Install packages to build the kernel modules
    yum install gcc kernel-devel
  2. Check the running kernel matches the kernel headers
    uname -r             # running kernel
    rpm -q kernel-devel  # installed kernel headers
    
  3. If the two versions do not match, run
    yum -y upgrade kernel kernel-devel
    reboot
  4. Find out where the kernel headers are (you may need this later)
    ls -d /usr/src/kernels/$(uname -r)*/include

2. Prepare and install VMware Tools

Choose one of a), b), c) or d).

a) If you are running the VM inside VMware Workstation 5.5

b) If you have VMware-workstation-5.5.3-34685.tar.gz on disk

c) If you have VMwareTools-5.5.3-34685.tar.gz on disk

d) If you cannot do any of these