You can create a copy (clone) of a particular virtual machine or container that will have identical data and resource parameters. Cloning may save time as clones require little reconfiguration compared to setting up new virtual machines or containers.
You can clone both stopped and running virtual machines and containers. For example:
# prlctl clone MyCT --name MyCT_clone # prlctl clone MyVM --name MyVM_clone
The --name
option specifies a name for the clone.
When cloning Windows virtual machines, consider changing their security identifiers (SIDs) with the --changesid
option.
Successfully cloned virtual machines and containers will be shown in the list of virtual environments on the host. For example:
# prlctl list -a
UUID STATUS IP_ADDR T NAME
{62951c2a-...} stopped 10.30.10.101 CT MyCT
{49b66605-...} stopped 10.30.10.101 CT MyCT_clone
{7f4904ad-...} stopped 10.30.128.115 VM MyVM
{2afb2aa2-...} stopped 10.30.128.134 VM MyVM_clone
The example above shows that the cloned container has the same IP address as the original container. Before starting to use the clones, make sure their IP addresses are unique (for instructions on how to assign IP addresses to VMs and containers, see Section 2.2.3, “Configuring Network Settings”).