The Real (and Virtual) Adventures of Nathan the IT Guy

Jun 19 2013   1:39PM GMT

Quick and Dirty on how to kill a VM in ESXi 5.x

Nathan Simon Nathan Simon Profile: Nathan Simon

The scenario, you have a VM that is stuck running because it cannot find its VMX file. Don’t ask me Site Recovery Manager messed that one up! 😉

I need that VM off and unregistered.

So here is how you do it!

Use putty or got to the physical console command line.

Login with root or another SU

Type “esxcli vm process list” like below.

esxcli vm process list

Take note of the World ID(red arrow)of the VM that you would like to “kill”

Type the following (Since I want to force the machine to be off, you need to use the force “type” other types are soft and hard; no point in using them)

esxcli vm process kill –type=force –world-id=2779100

You will not get a confirmation at the command prompt, but your VM should now be off… I was thgen able to unregister the VM and continue on with my tests.

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: