Friday 14 October 2011

Installing VMWare Tools on Ubuntu 11.10(Oneiric Ocelot)

Ubuntu 11.10(Oneiric Ocelot) released yesterday and I installed 32-bit desktop version on VMware Player. Installation was smooth and everything went great until I realized that VMware Tools was not installed automatically by VMware Easy Install. So I thought of installing it manually from VM > Install VMware Tools.


But this reported an error "VMware Tools installation cannot be started manually while the easy install is in progress". Luckily VMware  provides solution for this [1] :

1. Poweroff virtual machine

2. Go to virtual machine settings

3. Remove Floppy and CD/DVD(ide) from Hardware.

Power on the virtal machine now and insall VMware tools manually ( VM > Install VMware Tools) [2].

1. Extract VMwareTools in a temp directory
   $ cd /tmp
   $ tar zxpf /mnt/cdrom/VMwareTools-<x.x.x-xxxx>.tar.gz

2. Install Vmware Tools
  $ cd vmware-tools-distrib
  $ sudo ./vmware-install.pl

3. Answer few configuration related questions and tools be installed. The questions already have a default answer so you just need  to press Enter key most of the time, until you want to configuew something differently.

The installer was not able to able to find the path to kernel header

Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]

What is the location of the directory of C header files that match your running kernel?

4. Open a new terminal and apply the following fix for kernel headers [3]
  $ cd /lib/modules/$(uname -r)/build/include/linux
  $ ln -s ../generated/utsrelease.h
  $ ln -s ../generated/autoconf.h

5.  Specify the header directory in first terminal:  
  /lib/modules/xxx/build/include/
where xxx is the kernel release version. You can get it from the following command
  $ uname -r


REFERENCES
[1] http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017687

[2] http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html

[3] http://superuser.com/questions/199365/vmware-linux-headers-not-found-for-ubuntu-10-10

3 comments: