Subscribe to Windows IT Pro
October 11, 2009 12:00 AM

Q. How can I stop a VMware virtual machine (VM) from the ESX Service Console?

Windows IT Pro
InstantDoc ID #102933
Rating: (0)

A. A vmware-cmd is provided that can be used to stop a VM. You need to know the location of the vmx file that defines the VM and pass the path of the VM to the command with the stop parameter. For example:

[root@savdalesx01 Win2k82]# vmware-cmd /vmfs/volumes
/iscsi-vmfs1/Win2k82/Win2k82.vmx stop

If the VM won't stop, you can use "stop hard" instead of "stop."

As a final step, you can kill the VM process by getting the process ID of the VM then killing it, but this isn't recommended. To get the process ID, use the comand

ps auxfww | grep <VM>

Kill it with the command

kill -9 <process ID>

Related Reading:

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.