Installation guide
75 
Managing EZ Templates 
Converting Containers Based on Standard 
Templates 
You can use the vzveconvert utility to convert your existing Containers based on standard OS 
templates (and possibly having a number of standard application templates applied to them) to the 
EZ template-based ones. Let us assume that you wish to transform Container 101 based on the 
fedora-core-3 standard OS template and having the psa-fc3 standard application template 
applied to it and make it use the corresponding EZ templates: the fedora-core-4-x86 OS and 
the plesk8 application EZ templates. To this effect, you can issue the following command on the 
Hardware Node: 
Note: You are highly recommended to back up a Container before starting to convert it. 
# vzveconvert 101 
During the command execution, the following main operations are performed: 
1  The vzveconvert utility checks if the fedora-core-4-x86 EZ OS template and the 
plesk8 EZ application templates are installed on the Hardware Node. If any of these EZ 
templates cannot be found on the Node, the command will fail. 
2  The pre-fedora-core-4 script located in the /usr/share/vztt/convert/scripts 
directory on the Hardware Node is executed. This script is meant to perform a number of pre-
upgrade operations in the Container context. 
3  The packages comprising the fedora-core-3 standard OS template and the psa-fc3 
standard application template are compared with those available in the repositories for the 
fedora-core-4-x86 EZ OS template and the plesk8 EZ application template and if any 
updates are available, they are downloaded to the Hardware Node and installed there. You can 
also pass the -C option to the command to make vzveconvert look for the packages 
updates in the vzpkg cache only. 
4  The packages that are included in the fedora-core-3 and the psa-fc3 standard templates 
and that cannot be found in the repositories for the fedora-core-4-x86 and plesk8 EZ 
templates, if any, are copied to the /vz/template/vc/<UUID>/<rpm_name> directory on 
the Node where <UUID> denotes the unique identifier of the Container (you can find out what 
unique ID is assigned to the Container by viewing the value of the UUID parameter in the 
Container configuration file after the vzveconvert execution) and <rpm_name> is the name 
of the package (together with its version, release, and architecture) absent from the EZ template 
repositories. 










