Installation guide
26
Managing EZ Templates
# ls -l /vz/template/centos/5/x86_64/config/os/default
...
-rwxr-xr-x 1 root root 453 Aug 13 22:12 post-cache
-rwxr-xr-x 1 root root 3399 Aug 13 22:12 post-install
-rwxr-xr-x 1 root root 610 Aug 13 22:12 pre-cache
-rwxr-xr-x 1 root root 943 Aug 13 22:12 pre-upgrade
...
For the full list of scripts, see the vzmktmpl section in the Parallels Virtuozzo Containers 4.7
Command Line Reference Guide.
Once you have a metafile and the required scripts at hand, copy them to your current working
directory and execute the vzmktmpl utility. For example, to create a template for CentOS 5, base
it on the centos-5-custom.metafile file, and include the scripts post-cache, post-
install, pre-cache, and pre-upgrade in the template, you can run this command:
# vzmktmpl --pre-cache pre-cache --pre-upgrade pre-upgrade --post-cache post-cache --
post-install post-install centos-5-custom.metafile
Upon the command completion, the created template is put to your current working directory:
# ls
centos-custom-5-x86_64-ez-1.0-1.noarch.rpm
...
To start using the new OS template, install it on the Node using the vzpkg install template
command and cache it with the vzpkg create cache command.