Book Image

OpenVZ Essentials

By : Mark Furman
Book Image

OpenVZ Essentials

By: Mark Furman

Overview of this book

Table of Contents (13 chapters)

Further use of vzctl set


The vzctl set command allows you to make modifications to the container's config file without the need to manually edit the file. We are going to go over a few of the options that are essential to administer the node.

--onboot

The --onboot flag allows you to set whether or not the container will be booted when the node is booted.

To set the onboot option, use the following command:

vzctl set  101 --onboot

In the previous example, we used the vzctl command with the set option and the --onboot flag to enable the container to boot automatically when the server is rebooted, and then saved to the container configuration file.

--bootorder

The --bootorder flag allows you to change the boot order priority of the container. The higher the value given, the sooner the container will start when the node is booted.

To set the bootorder option, use the following command:

vzctl set  101 --bootorder  9 --save

In the previous example, we used the vzctl command with the set option and the...