User`s guide

Advanced Tasks 180
--post-install /root/rhel4/post_install.bash
This command will create an OS EZ template for RHEL 4 and put it to the /root directory
(e.g. /root/redhat_customized-as4-x86-ez-4.0.0-
1.swsoft.noarch.rpm).
5 Install the resulting OS EZ template on the server:
# rpm -i /root/redhat_customized-as4-x86-ez-4.0.0-1.swsoft.noarch.rpm
6 Cache the installed OS EZ template:
# vzpkg create cache redhat_customized-as-x86
...
Complete!
Packing cache file redhat_customized-as4-x86.tar.gz ...
Cache file redhat_customized-as4-x86.tar.gz [14M] created.
7 Create Container 101 on the basis of the new OS EZ template:
# pctl create 101 --ostemplate redhat_customized-as4-x86
-–config basic
Creating Container private area (redhat_customized-as4-x86)
Container is mounted
Postcreate action done
Container is unmounted
Container private area was created
Delete port redirection
Adding port redirection to Container(1): 4643 8443
So, you have just created Container 101 having the customized mysql and apache
applications installed inside it.