Parallels Virtuozzo Containers - 4.7 - Linux Getting Started Guide

Parallels Virtuozzo Containers 4.7 for Linux
Getting Started Guide
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
DOS are registered trademarks of Microsoft
c/o Parallels International GMbH. Parallels International GmbH Vordergasse 49 CH8200 Schaffhausen Switzerland Tel: + 41 526320 411 Fax: + 41 52672 2010 www.parallels.com
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
This product is protected by United States and international copyright laws. The product’s underlying technology, patents, and trademarks are listed at http://www.parallels.com/trademarks.
Microsoft, Windows, Windows Server, Windows NT, Windows Vista, and MS­Corporation. Apple, Mac, the Mac logo, Mac OS, iPad, iPhone, iPod touch, FaceTime HD camera and iSight are trademarks of Apple Inc., registered in the US and other countries. Linux is a registered trademark of Linus Torvalds. All other marks and names mentioned herein may be trademarks of their respective owners.
Contents
Introduction ............................................................................................................... 5
About Parallels Virtuozzo Containers ................................................................................ 6
About This Guide ............................................................................................................ 7
Organization of This Guide .......................................................................................................7
Documentation Conventions ....................................................................................................8
Getting Help .................................................................................................................... 9
Feedback ........................................................................................................................ 9
Parallels Virtuozzo Containers Notions ........................................................................... 10
Installation Requirements ............................................................................................... 10
Hardware Requirements ........................................................................................................ 11
Software Requirements ......................................................................................................... 11
Network Requirements .......................................................................................................... 12
Installation in a Nutshell .......................................................................................... 13
Parallels Virtuozzo Containers Installation ............................................................. 15
Obtaining Licenses ........................................................................................................ 15
Installing and Configuring a Host Operating System ....................................................... 15
Partitioning Hard Drives ......................................................................................................... 16
Finishing Host OS Installation ................................................................................................ 18
Obtaining Parallels Virtuozzo Containers ........................................................................ 19
Configuring Parallels Virtuozzo Containers Repository Parameters ........................................ 21
Running vzinstall-linux.bin in 'Download only' Mode .............................................................. 22
Running vzinstall-linux.bin in 'Download and Install' Mode ..................................................... 24
Running the Installation Program ................................................................................... 26
Installing OS Templates ................................................................................................. 33
Parallels Virtuozzo Containers Tools ...................................................................... 34
Setting Up Parallels Virtual Automation .......................................................................... 34
Logging In to Parallels Virtual Automation .............................................................................. 35
Registering Hardware Nodes ................................................................................................. 35
Setting Up Parallels Management Console ..................................................................... 36
Installing the Graphical Client ................................................................................................. 36
Contents
Registering Hardware Nodes ................................................................................................. 37
Container Management ........................................................................................... 40
Creating a New Container ............................................................................................. 41
List of Supported Linux Distributions for Containers .............................................................. 42
Configuring Containers .................................................................................................. 42
Setting Network Parameters .................................................................................................. 43
Setting the root Password for a Container ............................................................................. 43
Starting, Stopping, Restarting, and Querying Status of a Container ................................ 44
Listing Containers ......................................................................................................... 45
Deleting Containers ....................................................................................................... 45
Running Commands in Containers ................................................................................ 46
Managing Applications .................................................................................................. 47
Installing and Listing Application Templates on the Hardware Node ...................................... 48
Adding Applications to Containers ......................................................................................... 49
Removing Applications From Containers ............................................................................... 49
Index ........................................................................................................................ 50
C HAPTER 1

Introduction

This chapter provides basic information about Parallels Virtuozzo Containers 4.7 and this guide.
In This Chapter
About Parallels Virtuozzo Containers ....................................................................... 6
About This Guide ................................................................................................... 7
Getting Help ........................................................................................................... 9
Feedback ............................................................................................................... 9
Parallels Virtuozzo Containers Notions .................................................................... 10
Installation Requirements ........................................................................................ 10
Introduction

About Parallels Virtuozzo Containers

Parallels Virtuozzo Containers is a patented OS virtualization solution. It creates isolated partitions or Containers on a single physical server and OS instance to utilize hardware, software, data center and management effort with maximum efficiency. The basic Parallels Virtuozzo Containers capabilities are:
Intelligent Partitioning—Division of a server into as many as hundreds of Containers with
full server functionality.
Complete Isolation—Containers are secure and have full functional, fault and performance
isolation.
Dynamic Resource Allocation—CPU, memory, network, disk and I/O can be changed
without rebooting.
Mass Management—Suite of tools and templates for automated, multi-Container and multi-
server administration.
The diagram below represents a typical model of the Parallels Virtuozzo Containers system structure:
6
Introduction
The Parallels Virtuozzo Containers OS virtualization model is streamlined for the best performance, management, and efficiency. At the base resides a standard Host operating system which can be either Windows or Linux. Next is the virtualization layer with a proprietary file system and a kernel service abstraction layer that ensure the isolation and security of resources between different Containers. The virtualization layer makes each Container appear as a standalone server. Finally, the Container itself houses the application or workload.
The Parallels Virtuozzo Containers OS virtualization solution has the highest efficiency and manageability making it the best solution for organizations concerned with containing the IT infrastructure and maximizing the resource utilization. The Parallels Virtuozzo Containers complete set of management tools and unique architecture makes it the perfect solution for easily maintaining, monitoring, and managing virtualized server resources for consolidation and business continuity configurations.

About This Guide

The Getting Started With Parallels Virtuozzo Containers 4.7 for Linux guide will help you install and run Parallels Virtuozzo Containers 4.7 on your server. You will also learn the basics of working with Containers—how to create a Container, start and stop it, install additional software in it, and the like.

Organization of This Guide

The guide is organized in the following way:
Chapter 1, Preface, provides an overview of available information sources shipped with
Parallels Virtuozzo Containers 4.7, introduces the main Parallels Virtuozzo Containers notions, and lists the requirements for installing the Parallels Virtuozzo Containers 4.7 software.
Chapter 2, Installation in a Nutshell, is a quick reference list sketching out the steps required
to install Parallels Virtuozzo Containers 4.7.
Chapter 3, Parallels Virtuozzo Containers Installation, explains how to install Parallels
Virtuozzo Containers 4.7 on your server including the installation and configuration of both the Host operating system and Parallels Virtuozzo Containers software itself.
Chapter 4, Parallels Virtuozzo Containers Tools, contains brief instructions on setting up
Parallels Management Console and Parallels Virtual Automation—tools for managing Hardware Nodes and Containers.
Chapter 5, Container Management, describes the main operations you can perform on
Containers: create new Containers, start and stop them, manage applications inside Containers, and so on.
7
Introduction
Preformatted
Saved parameters for Container
Monospace Bold
# rpm –V virtuozzo-release

Documentation Conventions

Before you start using this guide, it is important to understand the documentation conventions used in it.
The table below presents the existing formatting conventions.
Formatting convention Type of Information Example
Special Bold
Italics
Monospace
Key+Key Key combinations for which the
Items you must select, such as menu options, command buttons, or items in a list.
Titles of chapters, sections, and subsections.
Used to emphasize the importance of a point, to introduce a term or to designate a command-line placeholder, which is to be replaced with a real name or value.
The names of commands, files, and directories.
On-screen computer output in your command-line sessions; source code in XML, C++, or other programming languages.
What you type, as contrasted with on-screen computer output.
user must press and hold down one key and then press another.
Go to the Resources tab.
Read the Basic Administration chapter.
These are the so-called EZ templates. To destroy a Container, type vzctl
destroy ctid.
Use vzctl start to start a Container.
101
Ctrl+P, Alt+F4
Besides the formatting conventions, you should also know about the document organization convention applied to Parallels documents: chapters in all guides are divided into sections, which, in their turn, are subdivided into subsections. For example, About This Guide is a section, and Documentation Conventions is a subsection.
8
Introduction

Getting Help

In addition to this guide, there are a number of other resources available for Parallels Virtuozzo Containers that can help you use the product more effectively. These resources include:
Parallels Virtuozzo Containers 4.7 for Linux Installation Guide. This guide provides detailed
information on installing Parallels Virtuozzo Containers 4.7, including the pre-requisites and the stages you shall pass.
Parallels Virtuozzo Containers 4.7 for Linux User's Guide. This guide provides comprehensive
information on Parallels Virtuozzo Containers 4.7 covering the necessary theoretical conceptions as well as all practical aspects of working with the product. However, it does not deal with the process of installing and configuring your system.
Parallels Virtuozzo Containers 4.7 for Linux Templates Management Guide. This guide is meant
to provide complete information on Parallels templates—an exclusive Parallels Virtuozzo Containers technology allowing you to efficiently deploy standard Linux applications inside your Containers and to greatly save the Hardware Node resources (physical memory, disk space, and so on).
Parallels Command Line Reference Guide. This guide is a complete reference on all Parallels
Virtuozzo Containers configuration files and command line utilities.
Deploying Clusters in Parallels-Based Systems. This guide describes the process of creating
Parallels failover and GFS clusters using the Red Hat Cluster Suite (RHCS) software.
Parallels Management Console Help. This help system provides detailed information on
Parallels Management Console—a graphical user interface (GuI) tool for managing Hardware Nodes and Containers.
Parallels Virtual Automation Online Help. This help system shows you how to work with Parallels
Virtual Automation—a tool providing you with the ability to manage Hardware Nodes and their Containers with the help of a standard Web browser on any platform.
Parallels Power Panel Online Help. This help system deals with Parallels Power Panel—a tool
for administering individual Containers through a common Web browser on any platform.

Feedback

If you spot a typo in this guide, or if you have an opinion about how to make this guide more helpful, you can share your comments and suggestions with us by completing the Documentation Feedback form on our website (http://www.parallels.com/en/support/usersdoc/).
9
Loading...