OpenVZ Essentials
By Mark Furman
()
About this ebook
OpenVZ (Open Virtuozzo) is an OS-level virtualization technology based on the Linux kernel and OS written in C. It creates multiple secure and isolated Linux containers on a single physical server, enabling better server utilization and ensuring that applications do not conflict. OpenVZ is the only highly scalable virtualization technology with near-zero overhead, strong isolation, and rapid customer provisioning that's ready for production use right now.
Starting with the very basics of OpenVZ, you will learn to configure templates, create containers, administer your server infrastructure, and utilize the OpenVZ Web Panel.
Packed with practical examples and precise instructions, this book helps you to set up and configure OpenVZ. An easy-to-follow guide that will help you with real-world container administration tasks. The book has a natural flow from one topic to another and will ensure that you gain expertise in the effective implementation of OpenVZ.
Related to OpenVZ Essentials
Related ebooks
MySQL Admin Cookbook LITE: Configuration, Server Monitoring, Managing Users Rating: 4 out of 5 stars4/5Learning Puppet for Windows Server Rating: 0 out of 5 stars0 ratingsConfiguration Management with Chef-Solo Rating: 0 out of 5 stars0 ratingsNginx Essentials Rating: 0 out of 5 stars0 ratingsBuilding Websites with e107 Rating: 0 out of 5 stars0 ratingsINSTANT Windows PowerShell Rating: 0 out of 5 stars0 ratingsInstant Windows PowerShell Guide Rating: 0 out of 5 stars0 ratingsMicrosoft System Center Orchestrator 2012 R2 Essentials Rating: 0 out of 5 stars0 ratingsMySQL Admin Cookbook LITE: Replication and Indexing Rating: 4 out of 5 stars4/5Drupal 7 Multi Sites Configuration Rating: 0 out of 5 stars0 ratingsLearning Website Development with Django Rating: 0 out of 5 stars0 ratingsMastering NetBeans Rating: 0 out of 5 stars0 ratingsPHPEclipse: A User Guide Rating: 3 out of 5 stars3/5Advanced Express Web Application Development Rating: 0 out of 5 stars0 ratingsGetting Started with Review Board Rating: 0 out of 5 stars0 ratingsMaven Essentials Rating: 0 out of 5 stars0 ratingsMastering Linux Shell Scripting Rating: 4 out of 5 stars4/5WildFly: New Features Rating: 0 out of 5 stars0 ratingsMicrosoft Azure IaaS Essentials Rating: 4 out of 5 stars4/5MariaDB Essentials Rating: 0 out of 5 stars0 ratingsBuilding a Web Application with PHP and MariaDB: A Reference Guide Rating: 0 out of 5 stars0 ratingsNode.js High Performance Rating: 0 out of 5 stars0 ratingsFlask Blueprints Rating: 0 out of 5 stars0 ratingsPowerShell Troubleshooting Guide Rating: 0 out of 5 stars0 ratingsLearning System Center App Controller Rating: 0 out of 5 stars0 ratingsJavaScript Unlocked Rating: 5 out of 5 stars5/5Building a RESTful Web Service with Spring Rating: 5 out of 5 stars5/5Learning Behavior-driven Development with JavaScript Rating: 5 out of 5 stars5/5Symfony2 Essentials Rating: 0 out of 5 stars0 ratingsLearning Splunk Web Framework Rating: 0 out of 5 stars0 ratings
Computers For You
101 Awesome Builds: Minecraft® Secrets from the World's Greatest Crafters Rating: 4 out of 5 stars4/5The Invisible Rainbow: A History of Electricity and Life Rating: 4 out of 5 stars4/5Slenderman: Online Obsession, Mental Illness, and the Violent Crime of Two Midwestern Girls Rating: 4 out of 5 stars4/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5Elon Musk Rating: 4 out of 5 stars4/5Standard Deviations: Flawed Assumptions, Tortured Data, and Other Ways to Lie with Statistics Rating: 4 out of 5 stars4/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 0 out of 5 stars0 ratingsCompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsThe ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 0 out of 5 stars0 ratingsThe Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5Master Builder Roblox: The Essential Guide Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Artificial Intelligence: The Complete Beginner’s Guide to the Future of A.I. Rating: 4 out of 5 stars4/5Ultimate Guide to Mastering Command Blocks!: Minecraft Keys to Unlocking Secret Commands Rating: 5 out of 5 stars5/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Dark Aeon: Transhumanism and the War Against Humanity Rating: 5 out of 5 stars5/5CompTIA Security+ Practice Questions Rating: 2 out of 5 stars2/5Alan Turing: The Enigma: The Book That Inspired the Film The Imitation Game - Updated Edition Rating: 4 out of 5 stars4/5
Reviews for OpenVZ Essentials
0 ratings0 reviews
Book preview
OpenVZ Essentials - Mark Furman
Table of Contents
OpenVZ Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Installing OpenVZ
What is OS-level virtualization?
What is OpenVZ?
System requirements
The disk partition scheme
The yum configuration
Installing vzkernel
Installing vzctl and vzquota
Restarting the server
Summary
2. OS Templates and Creating Containers
Getting started with OS templates
Downloading OS templates
Using vztmpl-dl to download OS templates
Manually downloading OS templates
Selecting a container ID
Selecting an OS template
Creating a container
Container configuration
Configuring a container to start on boot
Setting the hostname
Setting an IP address
Setting a name server
Setting the root password
VE configuration files
Summary
3. OpenVZ Container Administration
Using vzlist
Listing all the containers on the server
The vzctl command
Starting a container
Stopping a container
Restarting a container
Using vzctl to suspend and resume a container
Suspending a container
Resuming a container
Destroying a container
Using vzctl to mount and unmount a container
Mounting a container
Unmounting a container
Disk quotas
Setting quotaon and quotaoff for a container
Turning on disk quota for a container
Turning off disk quota for a container
Setting disk quotas with vzctl set
Further use of vzctl set
--onboot
--bootorder
--userpasswd
--name
--description
--ipadd
--ipdel
--hostname
--disable
--ram
--swap
Summary
4. Server Administration Using OpenVZ
Important system files
Understanding the /etc/vz directory
Understanding the /vz directory
Understanding the /proc/user_beancounters file
Resources
Managing and configuring the CPU
CPU share
vzcpucheck
Setting up a container to use a set amount of CPU units
Configuring the number of CPUs used by a container
Memory management
vzmemcheck
LowMem
MemSwap
Allocated
vzmemcheck with the -v flag
vzmemcheck with the -A flag
The /var/log/vzctl.log file
Understanding the /var/log/vzctl.log file
Summary
5. Using OpenVZ Web Panel – Part One
OpenVZ Web Panel
Installing OpenVZ Web Panel
Configuring /etc/owp.conf
Configuring /opt/ovz-web-panel/config/config.yml
Hardware daemon
LDAP
Logging in to OpenVZ Web Panel
Dashboard
Physical servers
Localhost
OS templates
Installing a new OS template
Removing a template
Server templates
Adding a server template
Changing a server template
Removing a server template
Virtual servers list
Managing the virtual server
Making a virtual server
Changing the settings
Removing a virtual server
Changing the state of the container
Summary
6. Using OpenVZ Web Panel – Part Two
Understanding the virtual server information page
Change state
Change settings
Limits
Tools
Reinstall
Backup
Backing up a container
Restoring the container
Deleting the backup
Clone
Create Template
Console
IP Addresses
IP pools list
Create IP pool
Edit IP pool
Remove IP pool
IP addresses list
My Profile
Users
Add User
Edit User
Enable/disable user account
Disabling a user's account
Enabling a user's account
Delete User
Requests
Create Request
Details
Add comment
Close request
Delete Request
Tasks
Events Log
Logout
Summary
Index
OpenVZ Essentials
OpenVZ Essentials
Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2014
Production reference: 1041114
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-732-7
www.packtpub.com
Credits
Author
Mark Furman
Reviewers
Emilien Kenler
Unnikrishnan Appukuttan Pillai
Alexei Yuzhakov
Commissioning Editor
Aarthi Kumaraswamy
Acquisition Editor
Meeta Rajani
Content Development Editor
Vaibhav Pawar
Technical Editor
Nikhil Potdukhe
Copy Editors
Roshni Banerjee
Adithi Shetty
Project Coordinator
Kranti Berde
Proofreaders
Ameesha Green
Amy Johnson
Indexers
Mariammal Chettiyar
Monica Ajmera Mehta
Production Coordinators
Manu Joseph
Nilesh R. Mohite
Alwin Roy
Cover Work
Manu Joseph
Nilesh R. Mohite
About the Author
Mark Furman is currently working as a systems engineer for Info-Link Technologies. He has been in the IT field for over 10 years and specializes in Linux and open source technologies. In the past, he has worked as an independent IT contractor providing consulting services for small- to medium-sized businesses and as a Linux administrator for HostGator. He has also been managing his own IT company for several years.
Mark can be reached at <m.furman@live.com>. He can also be found at www.linkedin.com/in/markfurman and www.twitter.com/mfurman.
I would like to thank my wife, Lynnsey, for being there for me as my support and encouragement while I wrote this book. I would also like to thank my children, Trent, Alissa, Alina, and Kaden, to whom I dedicate this book; my parents, David and Cindy; and my grandparents, Jeanette and Steve, without whom I would not have been the man I am today.
I would like to thank the OpenVZ community for developing, maintaining, and providing support for OpenVZ.
I would like to thank Alexei Yuzhakov for developing OpenVZ Web Panel and reviewing my book.
I would also like to thank the entire Packt Publishing team who made this book possible in