All EZ templates are stored in /vz/template
, in subdirectories named according to OS name, version, and architecture. For example, /vz/template/centos/7/x86_64
. Each template includes a set of configuration files stored in the /config/os/<template_name>
subdirectory (OS templates) or the /config/app/<template_name>
subdirectory (application templates).
The following files can be in the template configuration subdirectory:
-
ct2vm
— Container to virtual machine migration script. -
description
— Detailed information on the EZ template. -
distribution
— OS templates only. The name of the Linux distribution for which the EZ template is created. -
environment
— OS templates only. A list of environment variables set in the form of<key>=<value>
. -
mirrorlist
— Links to files with lists of repositories from which the packages in the EZ template are to be downloaded. -
osrelease
— OS templates only. Contains native CentOS 7 distribution kernel version. -
package_manager
— OS templates only. Specifies the packaging system used to handle the EZ template. -
packages
— Contains a list of package names included in the corresponding EZ template. -
pre-cache
,post-cache
— OS templates only. Scripts that are executed before and after the packages in the EZ template are installed on the hardware node. -
pre-install
,post-install
— Scripts that are executed inside the container before and after the package management transaction. -
pre-install-hn
,post-install-hn
— Scripts that are executed on the hardware node before and after the package management transaction. -
pre-upgrade
,post-upgrade
— OS templates only. Scripts that are executed before and after updating packages inside the container. -
pre-remove
,post-remove
— Scripts that are executed before and after removing the application EZ template or package from the container. -
release
— Contains template release number. -
repositories
— Contains a list of repositories where the packages in the EZ template are stored. -
summary
— A brief summary of the EZ template. -
upgradable_versions
— OS templates only. -
version
— Contains template version number.