Determine the power status of a virtual machine on an ESX or ESXi host
book
Article ID: 309034
calendar_today
Updated On:
Products
VMwareVMware vCenter ServerVMware vSphere ESXi
Issue/Introduction
This article provides information on how to determine the power status of a virtual machine on an ESX or ESXi host. In some instances, the power status of a virtual machine on an ESX or ESXi host cannot be determined just by looking at the VMware graphical interface. The article also allows you to determine the process ID (PID) of a powered on virtual machine.
In ESXi – # vm-support -x ( Note: For ESXi 5.x - # vm-support -V ) OR # vim-cmd vmsvc/getallvms
From the output, get the ID and then use it to run this command to check the power state:
# vim-cmd vmsvc/power.getstate <Vmid>
For virtual machines on the ESX host, run this command to check if there is a process running for the virtual machine:
ps –auxwww | grep –i VM_NAME
This is a standard Linux command to list processes. If a process other than the grep command that you have just run shows up in this list, note the second value in the column. It is the process ID (PID) and may be required in later troubleshooting steps to resolve your issue.