VMware Tools on Ubuntu 11.10

While attempting to install the VMware Tools on an Ubuntu 11.10 guest, I ran into the error

None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmmemctl module
for your system


The setup script then gives the opportunity to build the correct module but on my system it could not find the required header files to do the build.  I used the following steps to install the missing header files and then re-ran the VMware tools setup script /usr/bin/vmware-config-tools.pl.

Here are the steps I took build the missing vmmemctl module:

$ uname -r

Make note of the version number and use it in the next two commands

$ apt-cache search <kernel version>

$ apt-get install linux-headers-<kernel version>

$ sudo aptitude install build-essential linux-headers-$(uname -r)

Re-run the setup script:

$ sudo /usr/bin/vmware-config-tools.pl

Take the defaults until you get to the following prompt:

What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

Enter the path to the just installed header files.  For my system the path was:

/usr/src/linux-headers-3.0.0-12-generic/include

Unfortunately, I now receive the error

The path “/usr/src/linux-headers-2.6.24-19[or 2.6.24-19generic]/include” is a kernel header file directory, but it does not contain the file “linux/version.h” as expected

There are many other references to this issue but I have not found a solution.

VMware KB

The instructions in VMware KB 1008973 provided the primary steps used here.

 

5 thoughts on “VMware Tools on Ubuntu 11.10

    • Thanks, Mike. That got me past the include file and now the compilation starts. I’m now running into a different problem..

      Building the vmmemctl module.

      Using 2.6.x kernel build system.
      make: Entering directory `/tmp/vmware-config0/vmmemctl-only’
      make -C /lib/modules/3.0.0-12-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
      MODULEBUILDDIR= modules
      make[1]: Entering directory `/usr/src/linux-headers-3.0.0-12-generic’
      CC [M] /tmp/vmware-config0/vmmemctl-only/backdoorGcc32.o
      In file included from /tmp/vmware-config0/vmmemctl-only/backdoor.h:29:0,
      from /tmp/vmware-config0/vmmemctl-only/backdoorGcc32.c:45:
      /tmp/vmware-config0/vmmemctl-only/vm_basic_types.h:108:7: warning: “__FreeBSD__” is not defined [-Wundef]
      CC [M] /tmp/vmware-config0/vmmemctl-only/os.o
      /tmp/vmware-config0/vmmemctl-only/os.c:68:28: fatal error: linux/smp_lock.h: No such file or directory
      compilation terminated.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>