User`s guide
Operations on Virtual Machines and Containers 37
Copying a Virtual Machine and
Container Within the Server
Parallels Server Bare Metal allows you to create a complete copy of a particular virtual machine
and Container (in respect of all the virtual machine and Container data and resources
parameters), or a clone. This saves your time because you do not have to think of setting up the
virtual machine and Container configuration parameters and the like. Moreover, you can create a
number of virtual machine and Container clones at a sitting.
In Parallels Server Bare Metal-based systems, you can use the following commands to copy a
virtual machine and Container within the given physical server:
vzmlocal to clone a Container. For example, you can create Container 111 and make it be
a complete copy of Container 101 by running this command:
# vzmlocal -C 101:111
Moving/copying Container#101 -> Container#111, [], [] ...
...
Successfully completed
You can clone both running and stopped Containers.
pctl clone to clone a virtual machine. For example, you can create a clone of the MyVM
virtual machine and assign the Cloned_VM name to it as follows:
# pctl clone MyVM --name ClonedVM
Clone the MyVM VM to the VM ClonedVM...
The VM has been successfully cloned.
You can create clones of stopped virtual machines only.
Checking the Cloned Virtual Machine and Container
To check that your virtual machine and Container has been successfully moved, run this
command:
# pctl list -a
STATUS IP_ADDR NAME
stopped 10.0.10.101 101
stopped 10.0.10.101 111
stopped 10.0.10.115 MyVM
stopped 10.0.10.115 ClonedVM
As you can see from the example above, the clones of Container 101 (Container 111) and the
MyVM virtual machine (ClonedVM) have been successfully created. However, before starting to
use the clones, you should assign different IP addresses to them which are currently identical to
those of Container 101 and MyVM. Refer to Performing Initial Configuration (p. 30) to learn how
you can d
o it.
Note: If you are cloning a running Container, the created clone is stopped to prevent an IP
address conflict.
Configuring the Default Directories
When cloning a virtual machine and Container, you can also override the following default
directories:










