Monday, September 13, 2010

Kill a hung or stuck VM

5 methods to kill a hung or stuck VM:
1. vmware-cmd -l
vmware-cmd [.vmx config filename] stop trysoft
2. vm-support -x or cat /proc/vmware/vm/*/names
vm-support -X [vmid]
3. vmware-vim-cmd vmsvc/getallvms
vmware-vim-cmd vmsvc/poweroff [vm id]
4. ps -auxwww | grep [vm name]
kill [process id]
5. ps -auxwww | grep [vm name]
kill -9 [process id]
ESX: http://kb.vmware.com/kb/1004340
ESXi: http://kb.vmware.com/kb/1014165
More vQuotes

No comments:

Post a Comment