VMworld
1 Replies Last post: Sep 19, 2007 10:14 AM by Rob  
Click to view csindelar's profile Candidate 7 posts since
Sep 10, 2007

Sep 19, 2007 9:58 AM

How to manually kill a vm


I have encountered a few times where a vm will simply hang up trying to power down. I am unable to do anything with it, other than vmotion all other machines off this ESX host, reboot the ESX host, then the machine will clear up.

I've tried killing using the Group ID (I.e. /usr/lib/vmware/bin/vmkload_app -k 9 xxxx) and nothing happens.

Any ideas?

Click to view Rob's profile Candidate 1 posts since
Sep 19, 2007
1. Sep 19, 2007 10:14 AM in response to: csindelar
Re: How to manually kill a vm

First try the nice way...

vmware-cmd /vmfs/volumes//.vmx stop

If this does not work, you can try the kill command... be careful to get the correct pid as this will instantaneouly kill whatever process you enter

First lookup the PID for your vm

ps -ef |grep (vmconfig filename.vmx)

In result you should receive the PID

Then you can use:
kill -9 PID

-->