User`s guide

Advanced Tasks 182
Note: You can also specify a number of additional parameters in your metafile. For
example, you may wish to add one or several extra packages to your OS EZ template set
which are not available in the repository used to handle the packages for the corresponding
base OS EZ template. For this purpose, you will have to specify the %mirrorlist
parameter providing information on the repository where these extra packages are kept.
Detailed information on all parameters you can set in metafiles is given in the Parallels
Command Line Reference Guide.
2 You can also (although you do not have to) create a number of scripts that will be executed
on different stages of the non-base OS EZ template lifecycle and customize your
applications to meet your demands. The path to these scripts should then be specified after
the corresponding options while creating your OS template set. For example, you can create
a preinstall script with the name of pre_install.bash and make it perform a number of
customization operations on some application included in the non-base OS EZ template
before installing this application in your Container.
Note: If there are no scripts for a non-base OS EZ template, the scripts available for the
corresponding base OS EZ template will be executed.
3 Create the non-base OS EZ template by running the vzmktmpl utility and passing the
corresponding options to it, if needed. So, if you created one or several scripts in the
previous step, you can use special options and specify the path to these scripts during the
command execution. For example, you can use the --pre-install option and specify
the path to the pre_install.bash script to make an OS EZ template that will customize
your application before installing it inside your Container.
Note: The full list of options allowing you to specify what scripts are to be executed on what
stage of the EZ template lifecycle is provided in the vzmktmpl subsection of the Parallels
Command Line Reference Guide.
4 Install the non-base OS EZ template on the server using the rpm -i command.
5 Cache the created OS EZ template by running the vzpkg create cache command.
Detailed information on how you can do it is provided in the Parallels Server 4 Bare Metal
Templates Management Guide.
6 Create a Container based on the OS EZ template.