Monday, February 4, 2013

Manual Installation of VMware Tools in linux

If you have installed VMWare before, then you should know about VMWare Tool's importance. According to VMWare's Knowledge Base:
VMware Tools is a suite of utilities that enhances the performance of the virtual machine's guest operating system and improves management of the virtual machine. Without VMware Tools installed in your guest operating system, guest performance lacks important functionality. Installing VMware Tools eliminates or improves the following issues:

  • Low video resolution
  • Inadequate color depth
  • Incorrect display of network speed
  • Restricted movement of the mouse
  • Inability to copy and paste and drag-and-drop files
  • Missing sound
VMWare Tool can be installed after you have finished installing your Guest OS and clicking on VM > Install VM Tools. It should mount an ISO files matching the operating system that you installed as your guest.

Unfortunately, sometimes, you will need to perform a manual installation of VMWare Tools due to some reason. You can click on VM > Install VM Tools or VM > Upgrade VM Tools if you have installed your OS before and it will download the latest VMWare Tools from the Internet.

Luckily, you don't have to download anything at all because you can skip the download process and use the ISOs that are included when your VMWare being installed. The ISOs are located in /usr/lib/vmware/isoimages/. What you need to do is copy the ISO matching your guest OS into your guest OS environment either by using HTTP or SCP or any other method and mount it using loop option. For example, if your guest OS is Linux, you can perform this operation:
mount linux.iso /media/cdrom/ -t iso9660 -o loop

This command will mount the ISO into /media/cdrom and you will see the VMWare Tool there. Extract them by using:
tar -xzvf /media/cdrom/VMwareTools-9.2.2-893683.tar.gz
and change to vmware-tool-distrib directory and start the installation by running:
./vmware-install.pl

The installation will begin as it supposed to be. After completing the installation, you can now the benefits mentioned above.

Enjoy using VMWare :)