ESXi

Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:

 esxcli vms vm list

or

 vim-cmd vmsvc/getallvms