Copying EZ Templates to Another Server
Virtuozzo allows you to copy the installed OS and application EZ templates from one server to another using the vzmtemplate utility. For example, you can copy the centos-6-x86 OS template installed on the source server to the destination server with the IP address of 192.168.0.9 by executing the following command:
# vzmtemplate -z root@192.168.0.9 centos-6-x86
During the command execution, vzmtemplate will do the following:
- Ask you for the password of the
root user on the destination server. - Check whether the
centos-6-x86 OS EZ template already exists on the destination server. If this templates is installed on the Destination Node, the command will exit. - Copy the
centos-6-x86 configuration files from the source server to the destination server. Please keep in mind that the centos-6-x86 OS EZ template is not removed from the source server. - Run the
vzpkg create cache command on the destination server to cache the OS EZ template and prepare it for the Container creation. Detailed information on this command is provided in the Preparing an OS EZ Template for Container Creation section.
Note: If you are going to copy an application EZ template, make sure that the corresponding OS EZ template (i.e. the OS template with which the application EZ template can be used) is installed on the destination server. Otherwise, the operation will fail.
To check that the centos-6-x86 OS template has been successfully copied to the destination server, you can run the following command on this server:
# vzpkg list
centos-6-x86 20012-6-12 07:05:39
|