Programming Tutorials

Power On a VM from ESXI command line

By: Kelly G in Cloud Tutorials on 2022-05-16  

To power on a VM from ESXI command line, follow the below steps:

Step 1: List down all VMs

vim-cmd vmsvc/getallvms 

or if you know the name of the VM then filter the list using grep like below

vim-cmd vmsvc/getallvms | grep vm name 

Note: The first (leftmost) column of the output shows the vmid.

Step 2:Check the power state of the virtual machine with the command:

vim-cmd vmsvc/power.getstate vmid

Step 3:Power-on the virtual machine with the command:

vim-cmd vmsvc/power.on vmid 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Cloud )

Latest Articles (in Cloud)