In this post I explain how to Install VMware Tools in Linux virtual machine. These VMware Tools may be required installed on all systems (Windows, Linux, etc). If the installation in Windows is done in a few clicks, a Linux server in console mode does not configure in the same way.
Install VMware Tools in Linux
1. In the vSphere Client, from the VM Console, go to the VM, Guest, Install / Upgrade VMware Tools menu. The ISO of the Tools will be loaded into the virtual machine.
2. Open a local or remote console to create a mount folder:
1 |
sudo mkdir /mnt/cdrom |
3. Mount the disk:
1 |
sudo mount /dev/cdrom /mnt/cdrom |
The command may return a message that indicates that the media is write-protected and will be read-only, enough to read the ISO files.
4. List the files to identify the exact version of the VM Tools:
1 |
ls /mnt/cdrom |
5. Extract the files from the archive to a folder:
1 |
Tar xzvf /mnt/cdrom/VMwareTools-x.x.x-xxxx.tar.gz -C /tmp/ |
The files are extracted and listed in the console.
6. Go to the VMware Tools decompression folder:
1 |
cd /tmp/vmware-tools-distrib/ |
7. Install the VMTools:
1 |
sudo ./vmware-install.pl -d |
“-d” validates each step with the default settings.
NB : 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. Open VMTools should be installed in this way:
Open VMTools should be installed in this way:
1 |
sudo apt-get install open-vm-tools |
In some cases, the official VMTools setup recommends installing Open VM Tools. These drivers are therefore linked to the system and not to the ESXi hypervisor. These OpenVMTools update with the OS packages.
Thanks for reading. If you have any question don’t hesitate to post a comment or to send me an e-mail !
Hi ! I’m Maxime. Founder and independant author of vDays.net. I have worked in service IT since 6 years ago, after a 5 years’ internship. Via this blog, I would like share and discuss with you on new technologies, especially on virtualization and VMware. If you want to know more about me, check out my “about me” page or follow me on Twitter and LinkedIn