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



Posted by: Nathan Simon
Tags:
vmware

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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: