4.1.2. prlctl clone

Creates an exact copy of the specified virtual machine.

Syntax. 

prlctl clone <VM_name> --name <new_name> [--template] [--dst=<path>] [--changesid]
             [--detach-external-hdd <yes|no>]

Table 4.2. Options

NameDescription

<VM_name>

Name of the virtual machine to clone.

--name <new_name>

Name to be assigned to the new virtual machine.

--template

Create a virtual machine template instead of a real virtual machine. Templates are used as a basis for creating new virtual machines.

--dst=<path>

Full path to the directory where the new virtual machine will be stored. If this option is omitted, the new virtual machine will be created in the default directory.

--changesid

Generate a new Windows security identifier (SID) for a Windows-based virtual machine. For this parameter to work, OpenVZ tools must be installed in the virtual machine.

--detach-external-hdd <yes|no>

If set to no, hard disks located outside the source virtual machine are not removed from the configuration of the resulting clone. Setting the parameter to yes removes external hard disks from the configuration.

Note

Note: External hard disks are not copied to the cloned virtual machine.