VMware ESX, killing a virtual machine that won’t die.

Sometimes the Virtual Center won’t do the job. You virtual machine has hung and you need to kill it. Here are 2 examples of how you can kill the vm from within the service console:


1. The ‘VMWARE-CMD’ command


Log on to the service console and issue the following command ‘vmware-cmd /vmfs/volumes///.vmx stop’ you must not use the friendly datastore name. If you need to know the location of all vm’s type ‘VMWARE-CMD -l’ that will list on vm’s and the location for the corresponding vmx file.


If that fails, then try it with the hard option, ‘vmware-cmd /vmfs/volumes///.vmx stop hard’ this command will just try and kill it without shutting it down.


2. Kill it using the PID command


Run the following command: ps auxfww | grep to locate the correct PID of the virtual machine, the first number to appear in the output is your vm’s PID. Use the PID number to terminate the process by issuing kill -9


留言

這個網誌中的熱門文章

Network Card Bonding On CentOS

Install vSphere 4.1 Update Management display "ODBC 32bit"

How to build PrivacyIdea HA with MySQL with master and master replication