VMWare / ESXi / KVM

KVM

Virsh list --all >>> Show list
watch -n5 ‘virsh list --all’ >>> refresh list each 5sec

VMWARE

vim-cmd vmsvc/getallvms >>> Show all virtual machines
vim-cmd vmsvc/power.getstate VIMID >>> Show the status
vim-cmd vmsvc/power.on VIMID >>> Start
vim-cmd vmsvc/power.off VIMID >>> Stop