Is there a way to power down a VM by command line? I need to reboot one of my servers as it has stopped responding to any commands (Just says In Progress then times out).
I've tried restarting the mgmt-vmware service and its no luck.
Message was edited by:
jjohnston1127
Hello,
You can try using vmware-cmd:
vmware-cmd /
Good answer.
Is there a way to force a reboot of the ESX SERVER via command line? It's unresponsive in virtual center and wont refresh that all VMs are off so I can enter maintanence mode.
If you want to force it to reboot check out:
reboot -?
shutdown -?
Can you access the web console directly and see if that is updated? You may need to restart just some services rather than completely rebooting...
Message was edited by:
chandlm
Here's some doc's I wrote on this...
How can I kill a stuck virtual machine?
ESX 3.0 method
o Login to the service console
o Type vmware-cmd l to get a list of all VMs and there paths
o You can check the VM state by typing vmware-cmd //server.vmx start to power on VM
Hey,
Thanks!
I use the following:
shutdown -r now
Hope that helps!
for shutdown and reboot VMware has done a good job with the service console maintaining integrity with the built-in Linux run levels.
I use init 0 to shutdown or init 6 to reboot. Just type that at the command line and down it goes. init 0 will halt the system and tell you when to power down. init 6 will do a normal shutdown and warm boot.
Silly me.
I knew about the reboot and shutdown commands; however it wouldn't let me perform them logged in as another user, even if I was super-usered into root.
fadsfa
I knew about the reboot and shutdown commands;
however it wouldn't let me perform them logged in as
another user, even if I was super-usered into root.
You probably used "su" instead of "su -", which will give you the full root environment.
HTH
Dan
This don´t work for me.
If i try the stop co vmware-cmd stop command I get:
VMControl error -999: Unknown error: SoapError: ServerFaultCode(0) : (The attempted operation cannot be performed in the current state (Powered On).)
and if I try the stop hard I get:
VMControl error -999: Unknown error: SoapError: ServerFaultCode(0) : (The attempted operation cannot be performed in the current state (Powered On).)
Why?
when I list the ps-ef the state is D< of the VM I want to stop.
I have exactly the same issue, When tyring to shutdown a virtual machine.
"If i try the stop co vmware-cmd stop command I get:
VMControl error -999: Unknown error: SoapError: ServerFaultCode(0) : (The attempted operation cannot be performed in the current state (Powered On).)
and if I try the stop hard I get:
VMControl error -999: Unknown error: SoapError: ServerFaultCode(0) : (The attempted operation cannot be performed in the current state (Powered On).)"
Does anyone know how to resolve the issue.
Hi,
I can't bring down one of the vm neither from VI client nor through vmware-cmd.
I am trying to use the kill command for VM PID. However the PID is changing frequently for all vm's. PID is getting incremented by digit two. If i fire the kill command it never founds the old PID and throughs PID is not found.
Even I can't restart mgmt-vmware service. after sometime host gets disconnected from Virtual Center.
Then I have killed the vmware-hostd agent service, now things came to good shape.
But I didn't understand why VM PID is changing regularly and how to kill that ??
Any suggestion!!