Previous page

Next page

Locate page in Contents

Print this page

Listing Virtual Machines

To get an overview of the virtual machines existing on the physical server and to get additional information about them - their IP addresses, hostnames, current resource consumption, and so on - use the pctl list command. In the most general case, you may get a list of all virtual machines by issuing the following command:

# pctl list -a

ID NPROC STATUS IP_ADDR HOSTNAME

{b8cb6d99-1af1-453d-a302-2fddd8f86769} - stopped 10.10.100.1 VM_1

The -a option tells the pctl list command to output both running and stopped virtual machines. By default, only running virtual machines are shown. The default columns inform you of the virtual machines IDs, the number of running processes inside virtual machines, their status, IP addresses, and hostnames. This output may be customized as desired by using pctl list command line options. For example:

# pctl list -a -o name,ctid

NAME ID

My_Vm {b8cb6d99-1af1-453d-a302-2fddd8f86769}

This command displays only the names and IDs of the virtual machines existing on the physical server. The full list of the pctl list command options for virtual machines is available in the Parallels Command Line Reference Guide.