Start/Stop/Reboot VMs on ESXi Host through SSH —
Check the current state of the VM:
vim-cmd vmsvc/getallvms
vim-cmd vmsvc/power.getstate
Turn it off and on, restart it etc:
vim-cmd vmsvc/power.on
vim-cmd vmsvc/power.off
vim-cmd vmsvc/power.restart
vim-cmd vmsvc/power.reboot
vim-cmd vmsvc/power.shutdown
Categorised as: Linux
Leave a Reply
You must be logged in to post a comment.