ESXi : restart a VM from the command line

ESXi : restart a VM from the command line

Posted By: pmietlicki

Published to Work on May 25, 2017

You just have to connect as root on your esxi server then :

Retrieve your VM id with :
vim-cmd vmsvc/getallvms
Stop it :
vim-cmd vmsvc/power.off 
Restart it :
vim-cmd vmsvc/power.on 

Tags: ESXi

Archive