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.
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.
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...