Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenVZ Essentials

You're reading from   OpenVZ Essentials Create and administer virtualized containers on your server using the robust OpenVZ

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781782167327
Length 110 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Mark Furman Mark Furman
Author Profile Icon Mark Furman
Mark Furman
Arrow right icon
View More author details
Toc

Selecting an OS template

After figuring out what CTID you would like to use for your container, the next step is to choose the OS template that you want to use for your container. In the Downloading OS templates section, we chose to use the OS template for CentOS 6 for our example. You can list the available templates by using ls on the /vz/template/cache directory.

Creating a container

After selecting which OS template you are going to use, you need to create a container in the next step. To create the container, you will need to use the vzctl create command. In order to use the vzctl create command, you have to supply the command with arguments for both the container ID that you chose (101) and also the OS template that you chose (centos-6-x86.tar.gz). You will also use the basic configuration file for the installation (ve-basic.conf-sample). We will talk more about this file shortly.

To create the VPS container, perform the following steps:

  1. Firstly, execute the following command:
    vzctl create...
You have been reading a chapter from
OpenVZ Essentials
Published in: Nov 2014
Publisher:
ISBN-13: 9781782167327
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime