Preparing an OS EZ Template for Container CreationAlthough you can create Containers without having to prepare OS EZ templates first, doing so provides more control over the entire process and helps avoid problems which might be caused by a slow Internet connection, for example. OS EZ template preparation includes:
For details on how to start creating Containers once caching has been done, see the Virtuozzo 6 User's Guide. Installing OS EZ Templates To install a new OS EZ template on the server, use the # vzpkg install template centos-6-x86 Preparing... ################################# [100%] 1:centos-6-x86 ################################# [100%] You may also want to check that the template has been installed successfully: # vzpkg list centos-6-x86 The Note: Before caching OS EZ templates, you may need to set up a local package repository (e.g., for commercial distributions like Red Hat Enterprise Linux). For details on how to manage package repositories, see Setting Up Repositories and Proxy Servers for EZ Templates. Creating Clean OS EZ Template Caches You can use a clean OS EZ template cache to create an empty Container without any custom applications installed. To create a clean OS EZ template cache, use the # vzpkg create cache centos-6-x86 The created archive is put to the # ls /vz/template/cache centos-6-x86.plain.ploop.tar.lzrw Creating OS EZ Template Caches with Preinstalled Application Templates You can use an OS EZ template cache with preinstalled application templates to quickly create multiple identical Containers without having to install applications manually or wait until they are installed automatically to each Container after its creation. The best way to create such a cache is:
The resulting archive can be found in the # vzpkg list appcache centos-6-x86 2012-07-20 16:51:36 mysql devel |
||||
|