Installing VMware Tools in CentOS

After installing a test CentOS webserver i’ve encountered many different ways to install VMware Tools in CentOS. This blog explains the easiest way to install VMware Tools in a CentOS virtual machine.

  1. Initiate the install process from the host, click “Install VMware Tools”
  2.  Open a terminal and log in as superuser (su).
  3.  Create a mount point for the VMware Tools virtual disc, and mount it:
    $ mkdir /mnt/cdrom
    $ mount /dev/cdrom /mnt/cdrom
  4. Extract the VMware Tools archive to /tmp:
    $ tar -C /tmp -zxvf /mnt/cdrom/VMwareTools-7.6.2-71224.tar.gz
  5. Unmount the disc:  $ umount /dev/cdrom
  6. Launch the installer and answer the interactive questions (NO to experimental):
    $ /tmp/vmware-tools-distrib/vmware-install.pl

Retrieve WMI computer model name

At deployment phase MDT uses WMI to query the proper computer model and only the current model drivers will be injected. In order to get this working properly, you have to use the exact model name in your Out-of-Box Driver treeTo build up an MDT deployment based on the the model name of your hardware you need to now the name of the hardware. To retrieve the proper computer name execute at command prompt:

  • wmic csproduct get name

Use this command to get the exact WMI name to determine the computer model. In my case the computer name is “HP EliteBook 8460p”.

WMI computer name command

Now that we have the computer name in MDT, the correct folder can be created and the drivers can be imported.