Installation guide

15
Templates Overview
EZ Template Directory Structure
All EZ templates and the software packages included in them and installed on the Hardware Node
are located in the so-called template area the path to which is set as the value of the TEMPLATE
variable in the /etc/vz/vz.conf file. By default, the /vz/template directory is used. The
template area includes two main subdirectories:
The cache subdirectory where the tar archive of the potential private area of a Container based
on the corresponding OS EZ template is stored. The tar archive is created during the OS EZ
template caching. Please keep in mind that the OS EZ template should be obligatorily cached
before you can start creating Containers on its basis.
The template directory having the name of <os_name>/<os_version>/<arch> where:
<os_name> denotes the name of the Linux distribution for which the OS EZ template is
created (redhat, centos, fedora-core, and so on);
<os_version> is the version of the Linux distribution specified as <os_name> (for
example, 12 or 13), and
<arch> denotes the microprocessor architecture where the OS EZ template is to be run
(x86 or x86-64).
For example, after installing the 32-bit version of the Fedora 13 EZ template, the
/vz/template/fedora-core/13/x86 directory on the Hardware Node is created.
The <arch> directory contains the following subdirectories and areas:
The template configuration subdirectory including:
The config/os/default directory where the appropriate configuration files for the base
OS EZ template are stored.
The config/os/<setname> directory where the appropriate configuration files for non-
base OS EZ templates, if any, are stored.
The config/app/<app_name>/default directory where the appropriate configuration
files for the base application EZ template are stored. This directory is created if at least one
application EZ template for the given OS EZ template is installed on the Hardware Node.
The config/app/<app_name>/<setname> directory where the appropriate
configuration files for non-base application EZ templates, if any, are stored.
The packages area containing a number of software packages downloaded from the repository
and installed on the Hardware Node. The installed files can be shared among Containers, i.e.
when a Container based on the given OS EZ template is created or application EZ templates
are added to any Container, it contains only symlinks to the template files in the packages area.
The installed package has the following structure:
<name>-<epoch>:<version>-<release>.<arch>
where