Tuesday, July 19, 2011

Canceling Hung VMware Tools Install

For ESXi hosts :

/usr/bin/vim-cmd vmsvc/getallvms

That will return a list of all vms running on the host in the format:

VMID   VM Name     Datastore            Folder/VMX     VM "type"               
2256     VM             [datastore name]   VM/VM.vmx   winNetStandard64Guest  vmx-04


Note the Vmid of the VM with the stuck install and then use the second command as indicated:

/usr/bin/vim-cmd vmsvc/tools.cancelinstall VMID (in this example 2256)


For ESXfatclassy hosts:

/usr/bin/vmware-cmd /vmfs/volumes/whatever-datastore-name/vm-folder/vmx-file.vmx getid

/usr/bin/vmware-vim-cmd vmsvc/tools.cancelinstall vmidnumber

No comments:

Post a Comment