| Subcribe via RSS

How to kill a VM (VMware ESX 4.0)

July 6th, 2010 | No Comments | Posted in vmware

Alright, it happens from time to time. Virtual Machines get stuck.
Sometimes during boot, sometimes during shutdown and sometimes during a restore operation.

So how do I kill a Virtual Machine?

I wrote this post, back in 2009, for ESX 3.5:

Both the “vmware-cmd /.vmx stop hard” method, and the following methods work, sometimes.. :

1. sudo vm-support -x
2. sudo less -S /proc/vmware/vm//cpu/status
3. sudo /usr/lib/vmware/bin/vmkload_app -k 9

But, when both of those fail? Then what?
How to kill a stuck VM when everything else fails?

It’s a bit brutal, but it works, but be warned, you might corrupt your VM.

1. sudo bash (for simplicity)
2. ps -ax | grep 3. Find the first number to the left, in the string with the right VM. This is the PID.
4. kill -9

Brutal? Yes. Efficient? Yes.

Tags: , , , , , , , , , , , ,

How to restart the management service in VMware ESX 3.5

April 2nd, 2009 | No Comments | Posted in Software

How to restart the management on a VMware ESX 3.5:
SSH to the vmware-esx box and do a:
sudo service mgmt-vmware stop
sudo service mgmt-vmware start
or a:
service mgmt-vmware restart

or as root just:
service mgmt-vmware stop
service mgmt-vmware start
service mgmt-vmware restart

This would be the solution if you can’t connect to the box using VMware Infrastructure Client, like if you get an error saying:
Error Connecting
VMware Infrastructure Client could not establish the initial connection with the server ““.
Details: The server took too long to respond.

Tags: , , , , , ,

How to kill a stuck or hung VM (VMware ESX 3.5)

January 6th, 2009 | 3 Comments | Posted in Software

There are many different ways to kill a stuck or hung VM, but for now, I will present two alternatives.
More »

Tags: , , , , , ,