Welcome to Halil Demirezen's Tips and Tutorials Page
Personal
Home
Contact
Biography
Research

Projects
Tutorials
Celsus Library (TR)

Categories

LinuxNetworkComputer VisionDatabasesProgramming
vmware


ESXCLI: Show all VMs and restarting them 2021-06-01 23:27:02

If you want to list all VMs and stop & start them:

To list all running VMS

[root@esx1:~] vim-cmd vmsvc/getallvms


To stop a VM

[root@esx1:~] vim-cmd vmsvc/power.off vmid


To start a VM
[root@esx1:~] vim-cmd vmsvc/power.on vmid


vmid is the VM id that you will see when listing all VMs