Updating VMware Tools fails with the error: Update Tools failed. Edit the virtual machine's vmx file
search cancel

Updating VMware Tools fails with the error: Update Tools failed. Edit the virtual machine's vmx file

book

Article ID: 310607

calendar_today

Updated On:

Products

VMware Desktop Hypervisor VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • You are unable to update VMware Tools.
  • Updating VMware Tools fails.
  • You see the error:

    Update Tools failed. Edit the virtual machine's vmx file, add the line below and try again. Please read KB article 1714 on tips for editing a vmx file.

    isolation.tools.guestInitiatedUpgrade.disable = "FALSE"


Environment

VMware Player 3.x (Linux)
VMware vSphere ESXi 5.1
VMware Workstation 8.x (Windows)
VMware Fusion 4.x
VMware Workstation 10.x (Windows)
VMware Player 6.x (Windows)
VMware Player Pro 7.x (Linux)
VMware Workstation Player 14.x (Windows)
VMware Workstation Player 15.x (Linux)
VMware Workstation Player 14.x (Linux)
VMware Workstation Pro 15.x (Windows)
VMware Player 4.x (Linux)
VMware ESXi 4.1.x Installable
VMware Player 7.x (Linux)
VMware Workstation Player 15.x (Windows)
VMware Fusion Pro 8.x
VMware Player Pro 7.x (Windows)
VMware Player 7.x (Windows)
VMware Player 5.x (Windows)
VMware Player 4.x (Windows)
VMware Fusion 3.x
VMware Fusion 5.x
VMware Workstation 11.x (for Linux)
VMware Workstation Pro 14.x (for Windows)
VMware Workstation Player 12.x (Linux)
VMware Workstation Pro 15.x (Linux)
VMware Player 5.x (Linux)
VMware Player 3.x (Windows )
VMware Fusion 10.x
VMware Workstation 9.x (Linux)
VMware Player 6.x (Linux)
VMware Workstation Player 12.x (Windows)
VMware Workstation Pro 14.x (for Linux)
VMware Workstation 8.x (Linux)
VMware Fusion 6.x
VMware Fusion Pro 10.x
VMware vSphere ESXi 5.0
VMware Workstation 11.x (for Windows)
VMware Workstation 7.x (Linux)
VMware Fusion 8.x
VMware Workstation 9.x (Windows)
VMware Fusion 7.x
VMware Workstation 10.x (Linux)
VMware Workstation 7.x (Windows)

Cause

This issue occurs because, for security purposes, updating VMware Tools from within the guest is disabled by default.

Resolution

To resolve this issue, enable VMware Tools updates from within the guest by updating the virtual machine configuration file.

To update the virtual machine configuration file:

In Fusion, Player, or Workstation

  1. Shut down the virtual machine, if it is running.
  2. Open the virtual machine configuration file (.vmx) using a text editor. For more information, see:
     
  3. Add this line to the end of the file:

    isolation.tools.guestInitiatedUpgrade.disable = "FALSE"
     
  4. Save and close the .vmx file.
  5. Power on the virtual machine.
  6. Start the VMware Tools upgrade within the guest operating system.

In ESXi/ESX using the vCenter Server GUI

  1. Shut down the virtual machine, if it is running.
  2. Open the datastore browser and navigate to the virtual machine directory.
  3. Using the GUI option, download the .vmx to your local desktop.
  4. Create a backup of the .vmx on your local workstation.
  5. Open the .vmx file using a text editor and add this line to the end of the file:

    isolation.tools.guestInitiatedUpgrade.disable = "FALSE"

    Note: For more information, see Tips for editing a .vmx file (1714).
     
  6. When saved, upload the file via the datastore browser GUI.
  7. Power on the virtual machine.
  8. Verify functionality before deleting the .vmx backup on your local workstation.
  9. Start the VMware Tools upgrade within the guest operating system.

In ESXI/ESX using the Web and vSphere Client

  1. Login to vCenter Server/Virtual Center using vSphere Client/Web Client.
  2. Right-click on virtual machine and click to shutdown or Power off the virtual machine.
  3. Right-click on virtual machine and click edit settings.
  4. Click the Options tab and select General under Advanced.
  5. Click Configuration Parameters and a new window opens.
  6. Click Add Row and type isolation.tools.guestInitiatedUpgrade.disable and FALSE under Value
  7. Click OK twice to close all the windows.
 

In ESXi/ESX using the command line

  1. Shut down the virtual machine if it is running.
  2. Open an SSH session to a host. For more information, see Using ESXi Shell in ESXi 5.0 and 5.1 (2004746)
  3. Navigate to the virtual machine directory.
  4. Run this command to create a backup of the .vmx file:

    cp .vmx .vmx.backup

     
  5. Open the .vmx file with a text editor and add this line to the end of the file:

    isolation.tools.guestInitiatedUpgrade.disable = "FALSE"

    Note: For more information, see Editing files on an ESX host using vi or nano (1020302).
     
  6. Power on the virtual machine.
  7. Verify the virtual machine is functional before deleting the backup file. To delete the backup file, run the command:

    – rm .vmx.backup
     
  8. Start the VMware Tools upgrade within the guest operating system.


Additional Information