Listing Virtual Machines and Containers
To get an overview of the virtual machines and Containers 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 can get a list of all virtual machines and Containers by issuing the following command:
# pctl list -a
STATUS IP_ADDR NAME
started 10.10.1.101 101
stopped 10.10.100.1 MyVM
The
-a
option tells the
pctl list
command to output both running and stopped virtual machines and Containers. By default, only running virtual machines and Containers are shown. The default columns inform you of the Container IDs and virtual machine names, the virtual machine and Container status and IP addresses. This output can be customized as desired by using
pctl list
command line options. For example:
# pctl list -a -o name,ctid -a
NAME ID
- 101
MyVm {b8cb6d99-1af1-453d-a302-2fddd8f86769}
This command displays only the names and IDs of the virtual machines and Containers existing on the physical server. The full list of the
pctl list
command options for virtual machines and Containers is available in the
Parallels Command Line Reference Guide
.
|