Cancelling stuck VMware Tools install on vSphere 5.5

VMware_vSphere_Logo

(Not so) happy Monday morning!

First request of the day – one of the VM’s was unresponsive and had to be rebooted (RDP was hanging and no incoming connections were allowed). I’m thinking not a big deal so VM was rebooted but I have noticed that VMware Tools were not up to date so thought why not update them at the same time? This is where it all started to go wrong… At this point VM was not responding (which I knew about) AND VMware Tools install was totally stuck on some random percentage in Recent Tasks. Great start.

Few things I have tried before finding the proper solution:

  • Trying to cancel the install by right clicking on Initiated VMware Tools Install or Upgrade in Recent Tasks didn’t yield any results. Option was greyed out.
  • Powering off the VM was unsuccessful as well. Again, options to Power Off, Reset etc. were greyed out.
  • Ejecting the .iso file that’s responsible for VMware Tools install didn’t help since the .iso was not connected.
  • To get me out of this hole (and users screaming that the application was down..) I had to kill the install of VMware Tools. Command to work out the ID_Number of the affected VM is:

    and the expected result with the ID_Number which we’re going to use in the next command:

    Cancelling_stuck_VMware_Tools_install_on_vSphere_5.5_2

    To actually terminate the install:

    and the outcome:

    Cancelling_stuck_VMware_Tools_install_on_vSphere_5.5_1

    That’s it, I’m off the hook.

    3 thoughts on “Cancelling stuck VMware Tools install on vSphere 5.5

    1. Vin Syrek

      Thanks – got me out of a bind! In case someone missed this aspect, you just need to SSH into the ESXi host where the VM is to issue the commands…

    Leave a Reply

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