How to kill stuck VMware Tools install from the command line ESXi 5.x

Trying to put a host into maintenance mode in vCenter and one machine wouldn't VMotion because it said VMware Tools were being installed or upgraded.

Searching Google came up with this article which applies to ESX 4.x:

http://lonesysadmin.net/2009/12/11/how-to-cancel-a-stuck-vmware-tools-in...

Well vmware-cmd is gone in ESXi 5.x. Here's how you do it in ESXi 5.x:


cd /vmfs/volumes/[datastore]/[vmname]
vim-cmd vmsvc/getallvms

Note the VmId of the machine having the issue. Then run:


vim-cmd vmsvc/tools.cancelinstall VmId

That should cancel your tools installation.

Enjoy,
Flux.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.