VMware

Upgrade VMware Tools to Latest Version

Taking a look at how to Upgrade VMware Tools to Latest Version using both the GUI and PowerCLI and why keeping them updated is important

Installing VMware Tools on running virtual machines in a VMware vSphere environment is best practice and a great way to make sure the running virtual machines perform at their best. Having VMware Tools running as well is a necessary requirement for most modern data protection solutions that utilize VMware Tools as a means to perform “application aware” backups that allow applications such as Microsoft SQL Server to be backed up in an application consistent state. Generally speaking when you update your VMware ESXi host versions either via patches or upgrade media (i.e. going from 6.0 to 6.5), there are VMware Tools upgrades available. Let’s take a quick look at how toย Upgrade VMware Tools to Latest Version via GUI and PowerShell.ย  Also, we will look at how VMware has decoupled the VMware Tools version from the version of ESXi.

Upgrade VMware Tools to Latest Version GUI

Perhaps the easiest and most intuitive way to upgrade the VMware Tools version is simply using the GUI.ย  For the most part here, I will be showing the Flash client instead of HTML5.ย  The functionality is there with HTML5 however, there are still a few views that don’t appear with HTML5.ย  The first helpful bit with the web client is to show theย “VMware Tools Version Status” column.ย  To do this, right click in the default columns area, and you should see theย Show/Hide Columns option.

Choosing-VMware-Tools-version-status-column-to-display
Choosing VMware Tools version status column to display

After clicking the Show/Hide Columns option, choose theย VMware Tools Version Status checkbox.

Select-the-VMware-Tools-Version-status-checkbox
Select the VMware Tools Version status checkbox

Now your VMs listing should have the column available and show the tools version and an indication of whether there is an upgrade available.

Showing-which-virtual-machines-have-VMware-Tools-upgrade-available
Showing which virtual machines have VMware Tools upgrade available

To upgrade any virtual machine VMware Tools version, simply right-click on the VM, selectย Guest OS >> Upgrade VMware Tools option.

Upgrading-VMware-Tools-with-the-Web-Client
Upgrading VMware Tools with the Web Client

This displays theย Upgrade VMware Tools dialog box.ย  There are a couple of options available here:

  • Interactive Upgrade – The interactive upgrade mounts the VMware Tools ISO and allows the upgrade process to be run interactively within the Windows guest operating system.
  • Automatic Upgrade – The automatic upgrade process is preferable since you can run the upgrade without logging into each virtual machine.ย  Additionally, by using theย Advanced Options switches, you can specify no reboot options such as the string below:
/s /v /qn ADDLOCAL=ALL REBOOT=ReallySuppress
Choosing-the-VMware-Tools-Upgrade-option
Choosing the VMware Tools Upgrade option

Once we kick off the VMware Tools upgrade option, we can see the progress in theย Recent Tasks window of the web client.

VMware-Tools-Upgrade-status
VMware Tools Upgrade status

Upgrade VMware Tools to Latest Version PowerCLI

We can use the power of PowerCLI to see tools that need to be upgraded as well as to actually perform the upgrade.ย  Use the command below to see the virtual machines that have the VMware Tools status of guestToolsNeedUpgrade:

Get-VM|?{$_.Extensiondata.Summary.Guest.ToolsVersionStatus -like 'guestToolsNeedUpgrade'} | select name,folder,@{N='tools vers';E={$_.ExtensionData.Config.Tools.ToolsVersion}},@{N='Tools Status';E={$_.Extensiondata.Summary.Guest.ToolsVersionStatus}}

We can also initiate a mass upgrade of all VMs that need the tools upgrade by the following command:

$vms = Get-VM|?{$_.Extensiondata.Summary.Guest.ToolsVersionStatus -like 'guestToolsNeedUpgrade'} | select name,@{N='tools vers';E={$_.ExtensionData.Config.Tools.ToolsVersion}},@{N='Tools Status';E={$_.Extensiondata.Summary.Guest.ToolsVersionStatus}} | select -expandproperty Name

foreach ($vm in $vms) {
    update-tools $vm -noreboot -RunAsync
}

Above, we are passing the found VMs that need an upgrade to VMware Tools to the For loop and specifying theย noreboot parameter and theย runasync parameter which kicks all that need the upgrade off at once instead of serially working through each one.

VMware Tools version no longer tied to the ESXi version

Starting with VMware Tools version 10, VMware has decoupled the VMware Tools version from the ESXi version. So in other words, you don’t have to wait for the latest VMware ESXi version to have the latest VMware Tools version and also virtual machines are not necessarily tied to the host for the VMware tools version.

You can now download the latest and greatest VMware tools version directly from VMware and they are released asynchronously from the ESXi version.

Download-latest-VMware-Tools-version-from-VMware
Download latest VMware Tools version from VMware

There is a great post from Brian Graf about setting up the Product Locker to serve as a centralized location to upgrade VMware Tools.ย  This procedure shows how to setup the Product Locker method to provide the centralized repository for ESXi hosts which centralizes the VMware Tools upgrades, versioning, etc.ย  Be sure to check that out as this is a much better way of controlling VMware Tools moving forward.

See Current VMware Tools Version and Upgrade Resources

There are many good tools at our disposal to see the current VMware Tools version.ย  One of those resources is theย vmwaretoolboxcmd.exe utility that is found in the VMware Tools directory of a virtual machine that already has VMware Tools installed.ย  Using this utility along with the “-v” switch, we can see the current version specifically.

See-Current-VMware-Tools-Version-with-Commandline
See Current VMware Tools Version with Commandline

As shown above, we can see the Tools version as well as theย build version.ย  VMware has a very helpful VMware Tools Version Mapping file link that is publicly available to check VMware Tools version.ย  Interestingly, you can see at the top theย esx/0.0 listing next to the currentย 10.1.15 VMware Tools version showing the departure from the most current and a specific ESXi version.

VMware-Tools-Version-Mapping-File
VMware Tools Version Mapping File

Upgrade VMware Tools to Latest Version Thoughts

The process toย Upgrade VMware Tools to Latest Version is easily done from both the GUI as well as using PowerCLI.ย  It is extremely important to keep VMware Tools updated and current as this ensures the virtual machine will run with best performance and stability during application aware backups especially.ย  Using the new method for creating and maintaining a centralized ProductLocker location can help to keep all hosts no matter what version pulling the latest VMware Tools version for running virtual machines.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.