This article provides steps to power on virtual machines from the command line (either through the ESX host console or through the RCLI/vSphere CLI) if the host cannot be managed from VMware vCenter Server or from the VMware vSphere Client.
Note: The steps in this article require root access to the host, either at the physical console or using SSH. For more information on enabling root access, see Using ESXi Shell in ESXi.
vim-cmd vmsvc/getallvms |grep <vm name>
vmid
.vim-cmd vmsvc/power.getstate <vmid>
vim-cmd vmsvc/power.on <vmid>
Note: vim-cmd depends on hostd working properly. If hostd is stopped, you might see the following error after executing vim-cmd:
Failed to login: Connection refused: The remote service is not running, OR is overloaded, OR a firewall is rejecting connections.