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

Container configuration

The final steps that we need to take are to configure our new container to start up on boot. So, when we reset the server, the containers will automatically boot. We also need to configure the network settings for the container: hostname, IP address, and name server information. Finally, we will need to provide the container with a root password.

To configure these settings, we will use the vzctl set command. This command will allow you to add, remove, and modify configuration settings inside the container's conf file, which is located at /etc/vz/conf/ and named 101.conf.

Configuring a container to start on boot

We will use vzctl set to modify the onboot option inside the container's config file which will be set to yes using the --onboot flag. This will allow the container to automatically boot when the node is restarted. We will also use the --save flag to tell the command to save the changes to the configuration file.

To set the onboot option to yes, use...

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 $19.99/month. Cancel anytime