Installation guide

23
Managing EZ Templates
c %osarch. Provide the information about the microprocessor architecture where the OS EZ
template is to be run:
%osarch
x86_64
You can set the value of the %osarch parameter to one of the following:
* x86: specify if you plan to run the template on x86 platforms.
* x86_64: specify if you plan to use the template on x86-64 platforms.
As the template being created is intended for use on x86-64-bit platforms, the %osarch
parameter is set to x86_64.
d %packages. Indicate the packages to include in the template.
The names of the packages must correspond to the names of real packages (with or
without package versions, for example, wget or wget=1.9.1) that are stored in the
repository used for the OS template (in our case, for CentOS 5). The specified packages will
be downloaded from the package repository and installed on the Node when you will cache
the OS template.
Note: If you are creating a template for Debian-based distributions (e.g., Debian, Ubuntu), you
need to specify in this step three parameters: %packages_0, %packages_1, and %packages.
This is explained by the fact that the installation of such distributions is carried out in three stages.
If you do not know which packages to include, consult the documentation for the respective
distribution.
e %package_manager. Specify the package manager to use for handling the template.
%package_manager
rpm44x64
For the full list of package managers, see Available Package Managers below.
f %repositories. Define the list of repositories storing packages for the template:
%repositories
$CE_SERVER/centos/5/os/x86_64
$CE_SERVER/centos/5/updates/x86_64
All the listed parameters are mandatory and must be specified in any metafile. You can also
set a number of supplementary parameters in your metafile (e.g., version and release).
For detailed information on all available parameters, see the vzpkg.metafile manual
pages. For metafile samples, go to the /usr/share/vztt/samples directory and look
for the metafile file in the subdirectory corresponding to specific Linux distributions (e.g.,
/usr/share/vztt/samples/centos-5-x86_64/metafile).
3 Save the file.
Metafiles for Application Templates
The example above explains in detail how to create a metafile for an OS template. The process of
creating a metafile for an application template is similar to that described above, except for the
following: