VMWare tools error with CentOS 5

  1. Trying to install VMWare tools on CentOS 5, we kept getting errors.
    What is the location of the directory of C header files that match your running kernel ? [/usr/src/linux/include]
  2. The default didn’t work so we installed kernel-devel using yum:
    yum install kernel-devel

    This installed the latest version: 2.6.18-53.1.14.el5-i686

  3. We thought the new location for the kernel header files was:
    /usr/src/kernels/2.6.18-53.1.14.el5-i686/include

    When we re-ran the VMware tools installation a new error appeared:

    The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18-53.1.14.el5).  Even if the module were to compile successfully, it would not load into the running kernel.
  4. Installed packages to build the kernel modules again, but used gcc this time
    yum install gcc kernel-devel
  5. Check the running kernel matches the kernel headers
    uname -r             # running kernel
    rpm -q kernel-devel  # installed kernel headers
  6. Because the two versions did not match, we ran
    yum -y upgrade kernel kernel-devel
  7. Rebooted CentOS 5
  8. The kernel headers are at the following location
    ls -d /usr/src/kernels/$(uname -r)*/include
  9. Headers seem to have been found at the following location by the installation software:
    /lib/modules/2.6.18-53.1.14.el5/build/include
Advertisements

2 thoughts on “VMWare tools error with CentOS 5

  1. Thank you guys!!! It’ didn’t work on a upgraded instalation of CentOS 4.6 to 5.0 I think because kernel-PAE so I had to reinstall it and works perfect.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s