sasha2002 Blog's

Just another blog from admin's

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.