Previous page

Next page

Locate page in Contents

Print this page

vzmtemplate

The vzmtemplate utility is used to migrate the installed OS and application standard templates and OS EZ templates from the Source Server to the Destination Server. It has the following syntax:

vzmtemplate [-bhz] [--ssh=< ssh_options >]

<[ user_name @] Destination_server_IP_Address > template_name ...

The following options can be used with vzmtemplate :

Option

Description

-z, --eztempl

Migrates the specified OS EZ template(s) installed on the Source Server. Without this option specified, vzmtemplate moves standard OS and application templates.

--ssh= ssh_options

Additional ssh options to be used while connecting to the Destination Server.

-b, --batch

This option should be passed to vzmtemplate in scripts if you are going to use these scripts for running the vzmtemplate utility and do not wish them to analyze the vzmtemplate command output.

-h, --help

Displays the utility usage and exits.

To migrate a template, you should execute the vzmtemplate command on the Source Server and pass the corresponding options to it. During its execution, the utility will try to connect to the Destination Server with the IP address of Destination_server_IP_Address and move the specified template(s) to this server. By default, vzmtemplate logs in to the Destination Server as root and asks you for the password of this user. However, you can make the utility use other credentials to log in to the Destination Server by appending the corresponding user name with the @ symbol to the Server IP address (e.g. user1@192.168.0.123 ). Keep in mind that the specified user should have the root privileges; otherwise, the command will fail.