Esxcli – Listing running VMs from the ESXi shell

You can check which VM’s are running on an ESXi server by using the esxcli command from the ESXi shell.

esxcli vm process list

This will only show the running VMs. You can get an overview of all registered VMs by using “vim-cmd vmsvc/getallvms” as I explained in an earlier post.

Running the command will output something like this for every VM running:

Desktop
World ID: 63068
Process ID: 0
VMX Cartel ID: 63067
UUID: 56 4d bd 8f 8f 8d d5 18-ac 40 cc f8 95 f6 cc 44
Display Name: Desktop
Config File: /vmfs/volumes/4fd6352c-89033ddd-21cb-001b21c6e4ad/Desktop/Desktop.vmx
Zentyal
World ID: 5778
Process ID: 0
VMX Cartel ID: 5777
UUID: 56 4d bb 22 dc 31 6b d3-95 a5 94 3b 44 e6 1c 9b
Display Name: Zentyal
Config File: /vmfs/volumes/4fd6352c-89033ddd-21cb-001b21c6e4ad/Zentyal/Zentyal.vmx

Quite handy if you want to bring a server down and you need to make sure all VMs have been stopped when you don’t have access to the full vSphere client.

Source

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s