Install VMware Tools on Linux

Installing a virtual machine under VMware vSphere, VMware Workstation, VMware Fusion or VMware Player involves installing the virtual hardware drivers. These VMware Tools must be installed on all systems (Windows, Linux, etc.). If the installation on Windows is done in a few clicks, a Linux server in console mode is not configured in the same way.

This tutorial explains how install VMTools drivers on Linux distributions : Ubuntu, Debian, Red Hat, Fedora, CentOS and other associated OS.

Install VMware Tools on Ubuntu / Debian

1. With the vSphere Client, since the Console of the VM, go to the menu VM, Guest, Install / Upgrade VMware Tools. The ISO of the Tools will be loaded into the virtual machine.

tutorial install VMware Tools Linux Ubuntu Fedora VMTools

2. Open a local or remote console to create a mount folder: sudo mkdir / mnt / cdrom
Confirm the command by entering the root or authorized user password.

3. Mount the disc: sudo mount / dev / cdrom / mnt / cdrom
The command may return a message indicating that the media is write protected and will be mounted read-only, this is enough to read the files from the ISO.

4. List the files to identify the exact version of VM Tools: ls / mnt / cdrom
In this example: VMwareTools-9.4.12-2627939.tar.gz (ESXi 5.5u2 updated)

tutorial install VMware Tools Linux Ubuntu Fedora VMTools

5. Extract the files from the archive into a folder:
tar xzvf / mnt / cdrom / VMwareTools-xxx-xxxx.tar.gz -C / tmp /
In our example, that would give: tar xzvf /mnt/cdrom/VMwareTools-9.4.12-2627939.tar.gz -C / tmp /
The files are checked out and listed in the console.

6. Go to the VMware Tools decompression folder: cd / tmp / vmware-tools-distrib /

7. Install the VMTools: sudo ./vmware-install.pl -d
“-D” validates each step with the default parameters.

If the following message appears: “open-vm-tools are available from the OS vendor and VMware recommends using open-vm-tools.” See http://kb.vmware.com/kb/2073803 for more information. », The Open VMTools should be installed as follows: sudo apt-get install open-vm-tools
Note: a sudo apt-get update may be required to install this package.

Install VMware Tools on Fedora / Red Hat / CentOS

1. With the vSphere Client, since the Console of the virtual machine, go to the menu VM, Guest, Install / Upgrade VMware Tools. This will load the VMTools ISO into the VM’s CD drive.

tutorial install VMware Tools Linux Ubuntu Fedora VMTools

2. Open a console to create a mount folder: mkdir / mnt / cdrom
You must confirm the command by entering the user password.

3. Mount the disc: mount / dev / cdrom / mnt / cdrom
The command may indicate that the disk will be mounted read-only.

4. List the ISO files to identify the exact version of VM Tools: ls / mnt / cdrom
Identify for example: VMwareTools-9.4.12-2627939.tar.gz

tutorial install VMware Tools Linux Ubuntu Fedora VMTools

5. Extract the files from the tar.gz archive into a temporary folder: tar xzvf / mnt / cdrom / VMwareTools-xxx-xxxx.tar.gz -C / tmp /
In our example, that would give: tar xzvf /mnt/cdrom/VMwareTools-9.4.12-2627939.tar.gz -C / tmp /

6. Go to the VMware Tools decompression folder: cd / tmp / vmware-tools-distrib /

7. Install the VMTools: ./vmware-install.pl -d
“-D” avoids having to validate each step by taking the default parameters.

In some cases, the setup of the official VMTools recommends installing the Open VM Tools. These drivers are therefore linked to the system and not to the ESXi hypervisor. These OpenVMTools update with the OS packages.
Install the Open-VM-Tools: yum install open-vm-tools