Copyright © 1999-2012 Parallels IP Holdings GmbH and its affiliates. All rights reserved. Parallels Virtuozzo Containers 4.7 for L
This chapter outlines the basics of EZ templates. In This Chapter Parallels Virtuozzo Containers Templates Overview ...
11 Templates Overview Parallels Virtuozzo Containers Templates Overview A template in Parallels Virtuozzo Containers is a set of application files a
12 Templates Overview EZ Templates Overview EZ templates are part and parcel of the Parallels Virtuozzo Containers philosophy because they provide a
13 Templates Overview EZ Templates Basics All OS and application EZ templates are defined by the following features: • EZ templates do not carry an
14 Templates Overview Non-base OS EZ template sets should have their own names and are created by appending a random identifier to the base OS EZ te
15 Templates Overview EZ Template Directory Structure All EZ templates and the software packages included in them and installed on the Hardware Node
16 Templates Overview • <name> is the package name • <epoch> denotes the package epoch • <version> indicates the package versio
17 Templates Overview • Scripts: • pre-cache: this script is executed before installing the packages included in the EZ template on the Hardware N
18 Templates Overview Differences Between OS and Application EZ Templates Actually, there are four major differences between OS EZ templates and app
19 Templates Overview EZ Template Lifecycle An EZ template has the following development stages: 1 Any EZ template should be first installed on the
Parallels IP Holdings GmbH. Vordergasse 59 CH8200 Schaffhausen Switzerland Tel: + 41 526320 411 Fax: + 41 52672 2010 www.parallels.com Copyright © 19
This chapter describes how to create and manage EZ OS and application templates in Parallels Virtuozzo Containers. In This Chapter Creating an EZ Te
21 Managing EZ Templates Creating a Template from Official Templates The easiest way to create a template is to base it on one of the official templ
22 Managing EZ Templates Installing vztt-build The first step in creating a template from scratch is to install the vztt-build package on your Node.
23 Managing EZ Templates c %osarch. Provide the information about the microprocessor architecture where the OS EZ template is to be run: %osarch x8
24 Managing EZ Templates • Add the %appname parameter to the file to specify a name for the application template, for example: %appname php-customi
25 Managing EZ Templates • rpm44x64: Red Hat Enterprise Linux 5 and CentOS 5 • rpm43x64: Red Hat Enterprise Linux 3 and 4, CentOS 3 and 4 • rpmzy
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
27 Managing EZ Templates Setting Up Repositories and Proxy Servers for EZ Templates If you are going to use OS and application EZ templates in Conta
28 Managing EZ Templates Managing Default Repositories When you install an OS EZ template on the Node, it is preconfigured to use one or several pac
29 Managing EZ Templates Notes: 1. You can use the vzpkg info OS_template_name mirrorlist repositories command to view the mirrors and repositories
Contents Introduction ... 5 About Parall
30 Managing EZ Templates Creating a Local Repository Along with using pre-configured repositories, you can create local repositories and configure f
31 Managing EZ Templates • Container 101 is started. It has the IP address of 123.145.145.123 and can be accessed from other networks. • The apach
32 Managing EZ Templates 8 Create the mirror list files and set the path to your local repository. For example, you can do this as follows: • For
33 Managing EZ Templates • To create the /vz/template/fedora/16/x86/config/os/default/repositories file on the Node and to make it point to the upd
34 Managing EZ Templates Managing Repositories for Commercial Linux Distributions Commercial Linux distributions (e.g., Red Hat Enterprise Linux and
35 Managing EZ Templates 4 Inside Container 111, create a directory where the RPM packages for Red Hat Enterprise Linux 4 will be stored: # mkdir -
36 Managing EZ Templates 3 Create the /vz/root/111/var/www/html/download/mirrors/updates-released-as4 mirror list file and make it point to the rep
37 Managing EZ Templates Setting Up a Proxy Server for EZ Templates You can set up special caching proxy servers and use them to efficiently manage
38 Managing EZ Templates Setting up a proxy server for managing EZ templates has the following advantages: 1 Your Internet bandwidth consumption is
39 Managing EZ Templates Once you edit the /etc/httpd/conf.d/vzproxy.conf file, you need to tell the vzpkg tool to use the packages from the local r
Contents Preparing OS EZ Templates for Creating Containers ... 43 Installing Application EZ Templ
40 Managing EZ Templates Setting Up an RHN Proxy Server for RHEL OS EZ Templates If you plan to run Red Hat Enterprise Linux 4 (RHEL 4) or 5 (RHEL 5
41 Managing EZ Templates • Create a pseudo-repository containing the repodata generated on the basis of the downloaded headers. • Grant the server
42 Managing EZ Templates As you can see, three system profiles are currently registered with RHN: two for servers running the x86-64-bit version of
43 Managing EZ Templates Preparing OS EZ Templates for Creating Containers OS EZ templates are used to create Containers on their basis. However, be
44 Managing EZ Templates Installing Application EZ Templates The same way as you use an OS EZ template in a Parallels Virtuozzo Containers system to
45 Managing EZ Templates Click Next to connect to the Parallels repository that stores EZ templates. If the connection is successful, the EZ Templat
46 Managing EZ Templates In this window, do one of the following: • To download and install all available EZ templates for a certain Linux distribu
47 Managing EZ Templates Once the EZ templates have been successfully downloaded to the Hardware Node, the Installing EZ templates window is display
48 Managing EZ Templates Uploading and Installing EZ Templates in Parallels Management Console If you have one or more new EZ templates that you wou
49 Managing EZ Templates In this window, choose the EZ templates you want to deploy. To do this, click the Add button, and provide the path to the t
This chapter provides basic information about Parallels Virtuozzo Containers 4.7 and this guide. In This Chapter About Parallels Virtuozzo Container
50 Managing EZ Templates The last page of the wizard allows you to review the settings made in the previous steps of the wizard. It summarizes the
51 Managing EZ Templates Listing EZ Templates The vzpkg list command allows you to list the EZ templates installed on the Node: # vzpkg list redhat-
52 Managing EZ Templates The information on templates is presented in the table having the following columns: Column Name Descriptions Name The nam
53 Managing EZ Templates Adding Application EZ Templates to Containers To add an application EZ template to an existing Container, you can use the v
54 Managing EZ Templates 2 In the Parallels Management Console right pane, right-click the application EZ template to add to the Container, and ch
55 Managing EZ Templates If you are adding an EZ template to only one Container, you can as well do the following: 1 Open the list of Containers in
56 Managing EZ Templates Updating Templates with vzup2date The vzup2date utility allows you to update any of the EZ templates installed on the Node.
57 Managing EZ Templates As soon as you press Next in the Welcome window, the utility will try to connect to the EZ templates repository (either the
58 Managing EZ Templates This window allows you do one of the following: • If you wish to download and install all available EZ templates/template
59 Managing EZ Templates After the EZ templates/template updates have been successfully downloaded to the Node, the Installing EZ template window is
6 Introduction About Parallels Virtuozzo Containers 4.7 Parallels Virtuozzo Containers 4.7 is a patented OS virtualization solution. It creates isol
60 Managing EZ Templates Updating Templates With vzpkg update template Another way of updating your EZ templates installed on the Node is to use the
61 Managing EZ Templates Updating Templates in Parallels Management Console Parallels Management Console provides you with the Templates Update wiza
62 Managing EZ Templates In this window, you can do one of the following: • To download and install all available EZ templates/template updates for
63 Managing EZ Templates Updating OS EZ Template Caches With the release of new updates for the corresponding Linux distribution, the created OS EZ
64 Managing EZ Templates
65 Managing EZ Templates Updating EZ Templates Packages In Containers Parallels Virtuozzo Containers allows you to update software packages of the O
66 Managing EZ Templates 2 Double-click the name of the Container where you want to add an EZ template. The Container Manager opens. 3 Click the T
67 Managing EZ Templates On this screen, you can also select the Force templates installation check box to force the EZ template installation inside
68 Managing EZ Templates Creating Historical Mirrors for Backed Up Containers If you have one or several Containers that are based on OS EZ template
69 Managing EZ Templates # mkdir fed13mirror The fed13mirror subdirectory will store an archive of the Fedora 10 repository. 2 Change to the fed10m
7 Introduction The Parallels Virtuozzo Containers OS virtualization model is streamlined for the best performance, management, and efficiency. At th
70 Managing EZ Templates Copying EZ Templates to Another Hardware Node Parallels Virtuozzo Containers allows you to copy the installed OS and applic
71 Managing EZ Templates In the displayed window, you can view the list of Hardware Nodes currently registered in Parallels Management Console. You
72 Managing EZ Templates Removing Application EZ Templates From Containers The vzpkg remove command allows you to remove one or several application
73 Managing EZ Templates Removing EZ Templates From the Hardware Node The vzpkg remove template command allows you to remove from the Hardware Node
74 Managing EZ Templates 2 In the right pane of the Parallels Management Console main window, do one of the following: • If you want to remove an
75 Managing EZ Templates Converting Containers Based on Standard Templates You can use the vzveconvert utility to convert your existing Containers b
76 Managing EZ Templates 5 The packages installed in the /vz/template/fedora-core/4/x86 directory on the Hardware Node (i.e. in the template area o
Index A About Parallels Virtuozzo Containers 4.7 - 6 About This Guide - 7 Adding Application EZ Templates to Containers - 53 C Container creating -
Index Managing EZ Templates - 20 Managing Repositories for Commercial Linux Distributions - 34 O Organization of This Guide - 7 P Parallels Virtuozz
8 Introduction Documentation Conventions Before you start using this guide, it is important to understand the documentation conventions used in it.
9 Introduction Getting Help In addition to this guide, there are a number of other resources available for Parallels Virtuozzo Containers which can
Commenti su questo manuale