VMware

This Question is Answered

1 "correct" answer available (10 pts)
14 Replies Last post: Dec 5, 2007 2:14 PM by PotiPotato  

Virtual Machine power on stalls and cannot be cancelled posted: May 28, 2007 8:00 AM

Click to view rphilippe's profile Novice 14 posts since
Dec 21, 2005
Hello,
Actually it's all in the topic. Sometimes when I start a VM, a task starts and displays "In Progress". Everything seems good except that the tasks never finishes and cannot be cancelled. The only way I found to cancel it is to reboot the server.

As anyone already have this issue ?
Click to view esiebert7625's profile Guru 6,794 posts since
Oct 23, 2006
You do not have to reboot the server for that, below is a process to kill a stuck VM.

How can I kill a stuck virtual machine?
ESX 3.0 method
o Login to the service console
o You can check the VM state by typing “vmware-cmd /<path to VM directory>/server.vmx getstate”
o Type “ps -ef | grep <virtualmachinename>”
o The second column is your pid of the vmkload_app of the Virtual Machine, you can also type “ps –eaf” to see all running processes
o Type “kill -9 <pid>”
o Check VM state again, it should now be off
o Type “vmware-cmd /<path to VM directory>/server.vmx start” to power on VM

ESX 3.0 Alternate method
o Login to the service console
o Get the vmid of the VM you want to kill by typing “vm-support –x”
o Kill the VM and generate core dumps and logs by typing “vm-support –X <vmid>”
o You will be prompted if you want to include a screenshot of the VM, send an NMI to the VM and send a ABORT to the VM, you must answer Yes to the ABORT question to kill the VM. The entire process will take about 5-10 minutes to run. It will create a tar archive in the directory you run it in.

fyi...if you find this post helpful, please award points using the Helpful/Correct buttons...thanks
Click to view VirtualNoitall's profile Virtuoso 1,853 posts since
Feb 17, 2006
Hello,

you can force a vm to stop by issueing the following command in the Service console :vmware-cmd <vm-cfg-path> stop Hard

Where <vm-cfg-path> is the full path to the virtual machine's config file. Remember, this is like pulling the power cord on the virtual machine but so would rebooting the host. The above should let you stop the vm without having to reboot the host.

Does the vm acutally power up and get on the network? can you ping it?

Have a look through your logs as well to see if anything stands out. Note the time of the power on and see if there are any corresponding log entries of note.
Click to view VirtualNoitall's profile Virtuoso 1,853 posts since
Feb 17, 2006
Hey,

Can you use vmware-cmd to try to start the virtual machine?
Click to view VirtualNoitall's profile Virtuoso 1,853 posts since
Feb 17, 2006
"vmware-cmd GateProtect.vmx start "

Hello,

You need to use the full filesystem path to the virtual machine starting at /

Give it a go and let us know what happens.
Click to view VirtualNoitall's profile Virtuoso 1,853 posts since
Feb 17, 2006
Hello,

It is still not right which is why you get the error message you are.

Issue the following command to get the list of virtual machines and their full path:
vmware-cmd -l

This will list your virtual machines and give you the full path. Then using the full path given to you in the above command try to start the virtual machine with the command mentioned in the earlier posts
Click to view VirtualNoitall's profile Virtuoso 1,853 posts since
Feb 17, 2006
awesome. Did the virtual machine start successfully and the task is just hanging around?
Click to view VirtualNoitall's profile Virtuoso 1,853 posts since
Feb 17, 2006
Hello,

You can force the virtual machine off with the vmware-cmd command doing a "vmware-cmd /path/to/config/file stop hard"

Not sure if that will also clear up the job though. Can't hurt to try.

Do you see anything in the window were you kicked off the virtual machine startup?

Have you had a chance to check the logs?
Click to view PotiPotato's profile Lurker 1 posts since
May 15, 2007
If you are running VirtualCenter, then this problem is a symptom of your VMWare VirtualCenter Server service stopping during the start process. Check to see if this service is still running. If so, then you may need to restart it. In my experience with this issue, this will clear the "in progress" task and will allow you to start the VM again.

As I've noticed that this service stops occasionally, has anyone else had the same problem? Is there a fix for it?

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities