How to Install VMWare Tools on CentOS 6.5 VM

If you are managing VMs with VMWare Workstation or VMWare ESXi, you will be familiar with VMWare Tools which is recommended to be installed after setting up a new VM due to the Drivers they provide which can help speed up the VM and you can easily Restart or Shutdown VMs from the VMWare Workstation or VSphere Client console. For Windows this is easy to do with a couple button clicks but what if you have to install VMWare Tools on a Linux VM that only has Shell Access with no GUI? I will show you the following steps using CentOS 6.5 Installation.
VMWare Tools PopUp

1) After finishing your CentOS OS installation, you will see a Pop Up in the VM console below. Click on Install Tools.
VMWare Tools Install

2) You will see that the VMWare Tools has been mounted to the Virtual CD Drive.
VMWare Tools Mounted

3) Create a place where you can Mount and Access the Virtual CD Drive by typing in the following commands.
mkdir /mnt/cdrom
Make a Directory to Mount the Virtual CD Drive in Linux

4) Now Mount the Virtual CD Drive to the Folder you created specifically for this.
mount /dev/cdrom /mnt/cdrom
Mount the Virtual CD Drive to the Folder you just created.

5) Copy the VMwareTools-(version_number).tar.gz to the folder local to the OS. (/usr/src is used in this example as the destination folder)
cp /mnt/cdrom/VMwareTools-(version_number).tar.gz /usr/src
Copy the VMWare Tools to the Local OS Disk.

6) Un-mount the Virtual CD Drive. (This is optional)
umount /mnt/cdrom
Unmount the Virtual CD Drive.

7) Go to the folder where you copied the VMWare Tools and extract the Tar file.
tar -zxf VMwareTools-(version_number).tar.gz
Extract VMWare Tools Tar File.

8) Check that the folder was extracted successfully by using the “ls” command. The folder should be “vmware-tools-distrib”.
ls
Check that VMWare Folder extracted Successfully.

9) Enter the “vmware-tools-distrib” folder and run the following command to start the VMWare Tools Installation.
./vmware-install.pl
Start VMWare Tools Installation.

10) The installation will ask where you want to install the binary files. Just press Enter if you want to accept the default location.
Location of Binary Files.

11) The installation will ask where your init directories is. Just press Enter if the default directory is correct.
Init Directories Location.

12) The installation will ask where your init scripts directory is. Just press Enter if the default directory is correct.
Init Scripts Directory Location.

13) The installation will ask where you want to install the daemon files. Just press Enter if you want to accept the default location.
Daemon Files Location

14) The installation will ask where you want to install the library files. Just press Enter if you want to accept the default location.
Library Files Location.

15) Press Enter at this stage as it will create that folder.
Create VMware Tools Folder.

16) The installation will ask where you want to install the documentation files. Just press Enter if you want to accept the default location.
Documentation Files Location

17) Press Enter at this state as it will create that folder.
Create Documentation Files Folder

18) Press Enter at this state so that it will configure your VMWare Tools Installation.
Configure VMWare Tools.

19) At this state, it will be up to you if you want to Share Folders between the Host OS and the Guest OS. I usually select no for this.
Shared Folders Setup.

20) At this state, it will be up to you if you want to allow dragging or copying files between the Host OS and the Guest OS. Because I don’t have a GUI running, I usually go with no for this.
File Copying.

21) Press Enter at this state.
VMWare Automatic Kernel Modules Setup.

22) At this state, it will be up to you if you want to share the printer from the Host OS to the Guest OS. I usually select no for this.
ThinPrint Setup.

The installation should now be complete and that is all! 🙂