Those who have just started using VMware vSphere EXSI might be thinking how they can power on the virtual instances from CLI of the vmware server. It is needed when you are not able to access the management console and there is some issues with virtual instances which is not powering on.
So, Here are the steps to achieve it:
1. List the inventory ID of the virtual machine with the command:
vim-cmd vmsvc/getallvms |grep <vm name
Note: The first column of the output shows the vmid.
2. Check the power state of the virtual machine with the command:
vim-cmd vmsvc/power.getstate <vmid>
3. Power-on the virtual machine with the command:
vim-cmd vmsvc/power.on <vmid>
Now you can check pinging the IP of virtual instances.