VMware Cloud Community
Edouard_GAULUE
Contributor
Contributor

How to stop a stuck VM ?

With vmware embedded there is no console. Is there a way with remote-cli or other to force a VM to stop ?

VM Infrastructure client show the VM as suspended and give no way to power it off. Power it on give a time out.

0 Kudos
8 Replies
Dave_Mishchenko
Immortal
Immortal

It may help to restart the management agents on the host - at the console press F2 (Customize) and then select the menu option to restart the management agents.

ESXi does have a very limited console that is described here http://kb.vmware.com/kb/1003677. You can access it from the console and you'll find that some of the regular ESX commands do exist on the system. For VMs you could use ps / kill to take care of a VM. In this case you might consider using

/bin/vim-cmd vmsvc/getallvms -- one of the colums will the Vmid which you'll use in the next command

/bin/vim-cmd vmsvc/power.on -- or you could use power.off / power.reset / power.getstat

As stated is the KB article these commands are run at your own risk if it's not VMware support that is telling you to run them.

williamarrata
Expert
Expert

The way I do it is, I path myself all the way to the VM folder and then type "vmware-cmd (vm name.vmx stop hard) you can also type start hard or reset at the end.

Hope that helped. Smiley Happy

Hope that helped. 🙂
0 Kudos
williamarrata
Expert
Expert

Just for example purposes, let make up a vm name called vmmachine. It would look like this

vmware-cmd vmmachine.vmx reset or

vmware-cmd vmmachine.vmx start hard or

vmware-cmd vmmachine.vmx stop hard

Hope that helped. Smiley Happy

Hope that helped. 🙂
0 Kudos
Dave_Mishchenko
Immortal
Immortal

vmware-cmd is not included with ESXi nor does it seem to be included in the RCLI.

0 Kudos
Dave_Mishchenko
Immortal
Immortal

If you have the RCLI installed, you might want to try vmcontrol.pl.

0 Kudos
Edouard_GAULUE
Contributor
Contributor

I confirm I have no vmware-cmd.

vim-cmd vmsvc/getallvms list my stuck vm but I can't power it off because it's in suspend mode. Same thing with vmcontrol.pl in rcli.

I can't find it with ps so I can't kill it. Does it mean I have no way than restart my ESX server ?

Any ideas ?

0 Kudos
williamarrata
Expert
Expert

OPPS, sorry, didn't know we were talking about ESXi.

Hope that helped. 🙂
0 Kudos
Lehani
Enthusiast
Enthusiast

cannot delete or reset VM machine - need serious help

i have same issues, so any help is appreciated

0 Kudos