Saturday, September 29, 2018

Install/Uninstall/Validate VMware Tools in CentOS


VMware Tools is a software that enhances the performance of the virtual machine
VMware Tools is a software that enhances the performance of the virtual machine. If it is not installed then virtual machine performance is decreased and managing the virtual machine is little difficult.
It is very easy to install the VMware tools. We are going to take a look of installing it from online and offline mode(CD-Rom).


Install - Online Mode:

Use the below command to install VMware on Centos.
# yum install –y open-vm-tools
Once installed


Install - Offline Mode:
Login in to your virtual machine console with the root account or equivalent.
1. Mount the VMware tools ISO from the VMware Workstation or vSphere Client VM console.
This will connect a virtual CD-Rom device with the VMware tools image to your virtual machine.
# mount /dev/cdrom /media
2. Change directory to your mount folder, in this case its media.
# cd /media
3. Now copy the VMware Tools archive file to temp folder.
# cp VMwareTools-10.0.6-3560309.tar.gz
4. Change directory to the temp folder now.
# cd /tmp
5. Extract the archive copied to temp folder.
This will extract the all files to the temp folder.
# tar –xvzf VMwareTools-10.0.6-3560309.tar.gz 
6. Now switch to the folder which contains the install/uninstall script.
# cd vmware-tools-distrib
7. Now run the script which will install the VMware Tools.
# ./vmware-tools-install.pl –d
The VMware tools will install with default selections and you will see a confirmation message on your screen.
8. Now proceed with the cleanup and reboot the virtual machine.
# cd /tmp
# rm –rf vmware-tools-distrib
# rm –rf VMwareTools-10.0.6-3560309.tar.gz 
9. Reboot your server to finish the installation.


Uninstall the VMware Tools:
Login in to your virtual machine console with the root account or equivalent.
Run the below command to uninstall –

# /usr/bin/vmware-uninstall-tools.pl


Validate the VMware Tools running status:
# ps -ef | grep vmtools
root 2740 1 0 Dec09 ? 00:00:42 /usr/sbin/vmtoolsd
# service vmware-tools status
vmware-guestd is running