Book Image

OpenVZ Essentials

By : Mark Furman
Book Image

OpenVZ Essentials

By: Mark Furman

Overview of this book

Table of Contents (13 chapters)

Preface

OpenVZ is one of the most widely used open source container-based virtualization platforms in the world as it allows the user to create multiple Linux-based containers on a single server. This provides the user with the advantage of being able to reduce the number of physical servers on the network, reduce resource and power footprints on the network, and provide a single point of management.

Instead of spending valuable time to take servers down for prolonged periods to add resources such as CPUs, memory, or hard drive space, this can instead be accomplished in minutes using OpenVZ by simply shutting the container down, changing the number of resources that are allocated to the container, and then restarting it.

Taking a practical hands-on approach to learning, the intention of this book is to provide someone with little to no experience of OpenVZ with an opportunity to learn how to install and manage an OpenVZ server from the ground up. By the time you reach the end of this book, you will have a solid understanding of how to administer a server running OpenVZ.

What this book covers

Chapter 1, Installing OpenVZ, discusses virtualization, OpenVZ, and how to install OpenVZ.

Chapter 2, OS Templates and Creating Containers, takes you through OS templates—what they are, and how to download and install them.

Chapter 3, OpenVZ Container Administration, takes you through the concept of a container and its role on an OpenVZ server, how to choose an OS template to use with your container, and how to create a container. It also provides a walkthrough where we create a working container to use with further chapters of this book.

Chapter 4, Server Administration Using OpenVZ, covers all of the essential commands and concepts that the server administrator needs to know to be able to manage the server and containers on the server, including location of important system files, disk quota, CPU management, and memory management.

Chapter 5, Using OpenVZ Web Panel – Part One, takes you through OpenVZ Web Panel. We discuss how OpenVZ Web Panel is related to our OpenVZ server, how to install it, and how to manage your OpenVZ server using OpenVZ Web Panel instead of the Linux command line.

Chapter 6, Using OpenVZ Web Panel – Part Two, picks up from where Chapter 5, Using OpenVZ Web Panel – Part One, left off with a discussion on how to configure your OpenVZ Web Panel, and finishes with how to manage your administration tasks using the web panel instead of the Linux command line.

What you need for this book

You will need a spare computer or virtual PC to install Linux OS, and OpenVZ and OpenVZ Web Panel.

Who this book is for

This book is for beginners and intermediate users of OpenVZ who may have some or no experience in using OpenVZ. This book is about how to install and manage the OpenVZ server and containers. It is written from a beginner's perspective from the start.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The next command that we are going to cover is the vzctl command."

A block of code is set as follows:

ldap:
  enabled: true
  host: "ldap.ldapserver.com"
  login_pattern: "uid=<login>,ou=people,dc=example,dc=com"

Any command-line input or output is written as follows:

vzctl restart 101
Stopping Container ...
Container was stopped
Container is unmounted
Starting Container...

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "The Remove Template button allows you to select a template that you want to remove and delete it from the server."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.