Installation guide
22 
Managing EZ Templates 
Installing vztt-build 
The first step in creating a template from scratch is to install the vztt-build package on your 
Node. This package contains 
•  template metafile samples. You use metafile samples as the basis for creating a metafile for 
your own template. 
•  the vzmktmpl utility. You use the vzmktmpl utility to create the template on the basis of your 
metafile. 
The vztt-build package is located in the /virtuozzo/RPMS/optional directory of your 
Parallels Virtuozzo Containers distribution and is not installed by default during the installation. To 
install the vztt-build package, use the rpm -i command, for example: 
# rpm -i /virtuozzo/RPMS/optional/vztt-build-4.7.0-11.x86_64.rpm 
Creating Metafiles 
In the second step, you make a metafile, a plain text file having the .metafile extension and 
containing a list of parameters for your template. The vzmktmpl utility uses this file when creating 
the template. 
The following example demonstrates the process of creating a metafile for the x64 version of 
CentOS 5. To create the metafile: 
1  Create a new text file with an arbitrary name and the.metafile extension (e.g., centos-5-
custom.metafile). 
The easiest way to create a new metafile is to copy one of the metafile samples from the 
/usr/share/vztt/samples directory and configure it to meet your demands. For example, 
you can use the /usr/share/vztt/samples/centos-5-x86_64/metafile file as the 
basis for creating your new metafile for CentOS 5.  
# cp /usr/share/vztt/samples/centos-5-x86_64/metafile /home/user1 
2  Configure the metafile to meet your demands: 
a  %osname. Specify the name of the Linux distribution for which you are creating the OS EZ 
template: 
%osname 
centos-custom 
The specified name will be assigned to the template directory where you will install the 
template (e.g., in our case, it will be /vz/template/centos-custom). 
b  %osver. Specify the version of the Linux distribution for which you are creating the 
template: 
%osver 
5 
The specified name will be assigned to the subdirectory that will denote the version of your 
Linux distribution (e.g., /vz/template/centos-custom/5). 










