VMware Cloud Community
ThomasNederman
Enthusiast
Enthusiast

How do i stop my VM?

I tried to reset a VM, however, the VM stopped at 95% in the taskbar. Any option in VC is not working, both when connecting to VC server and using VCC to connect to the host. Tried with vmware-cmd to stop the task, but it did not work as you can see

# vmware-cmd /vmfs/volumes/CX3-20-LUN\ 0-PROD1-ZH-FC/Avamar_benchmark/Avamar_benchmark.vmx stop

VMControl error -999: Unknown error: SoapError: ServerFaultCode(1604) : (Operation failed since another task is in progress.)

# vmware-cmd /vmfs/volumes/CX3-20-LUN\ 0-PROD1-ZH-FC/Avamar_benchmark/Avamar_benchmark.vmx getstate

getstate() = on

# vmware-cmd /vmfs/volumes/CX3-20-LUN\ 0-PROD1-ZH-FC/Avamar_benchmark/Avamar_benchmark.vmx stop

VMControl error -999: Unknown error: SoapError: ServerFaultCode(1604) : (Operation failed since another task is in progress.)

# vmware-cmd /vmfs/volumes/CX3-20-LUN\ 0-PROD1-ZH-FC/Avamar_benchmark/Avamar_benchmark.vmx reset

VMControl error -999: Unknown error: SoapError: ServerFaultCode(1604) : (Operation failed since another task is in progress.)

# vmware-cmd /vmfs/volumes/CX3-20-LUN\ 0-PROD1-ZH-FC/Avamar_benchmark/Avamar_benchmark.vmx start

VMControl error -999: Unknown error: SoapError: ServerFaultCode(1604) : (Operation failed since another task is in progress.)

# vmware-cmd /vmfs/volumes/CX3-20-LUN\ 0-PROD1-ZH-FC/Avamar_benchmark/Avamar_benchmark.vmx stop

VMControl error -999: Unknown error: SoapError: ServerFaultCode(1604) : (Operation failed since another task is in progress.)

#

Anyone knows how i can reset this vm ? Thanks for your help.

Thomas

Thomas Nederman, VCP http://www.thomasnederman.com
Reply
0 Kudos
5 Replies
Chris_S_UK
Expert
Expert

A couple of suggestions:

1. Restart the VC service to see if it clears the 'another task is in progress' error

2. Try the stop hard command

3. If both of these fail use the "kill -9 <pid of vm>" command.

Chris

Reply
0 Kudos
ThomasNederman
Enthusiast
Enthusiast

Sorry, would you please tell me what the ""stop hard command" is ?

Thank you

Thomas Nederman, VCP http://www.thomasnederman.com
Reply
0 Kudos
Chris_S_UK
Expert
Expert

Just add the word 'hard' after the word 'stop'

aldin
Enthusiast
Enthusiast

maybe this can help

Kill a Virtual Machine that is stuck

o Connect to ESX server with Putty

o Check VM state by typing vmware-cmd /<path to VM directory>/server.vmx getstate

o Type ps -ef | grep <virtualmachinename>

o 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

http://communities.vmware.com/thread/75432

ThomasNederman
Enthusiast
Enthusiast

think the VMX file was corrupt of this VM. even after reboot of the esx host, i ended up with the same problem trying to start this VM. Have now recreate the VM from the original files recived by emc and it works now.

Thomas Nederman, VCP http://www.thomasnederman.com
Reply
0 Kudos