OpenVZ keeps its system wide configuration parameters in the /etc/vz/vz.conf
configuration file. This file is in shell format. Keep in mind that OpenVZ scripts source this file - thus, shell commands in this file will cause system to execute them under root account. Parameters in this file are presented in the form PARAMETER="value"
. Logically all the parameters belong to the following groups: global parameters, logging, disk quotas, template, network traffic, containers, validation and overcommitment, supplementary parameters, and name-based hosting parameters. Below is the description of all the parameters defined in this version of OpenVZ.
Name | Description | Default Value |
---|---|---|
| This can be either |
|
| Specifies either the hostname or the IP address of the HTTP proxy server. After setting this parameter and in case you use an HTTP proxy server for handling all HTTP requests, the OpenVZ utilities communicating with the outer world through HTTP will use this server for managing all your HTTP messages. | n/a |
| This is the directory where |
|
| Actions on a container should be serialized, since two simultaneous operations on the same container may break its consistency. OpenVZ keeps lock files in this directory in order to serialize access to one container. |
|
| File system to use when caching OS templates:
|
|
| Defines whether the IPv6 support is enabled on the hardware node. |
|
| Enables ( |
|
| Path to the memory and IOPS deduplication cache with common container files. |
|
| Path to the private area of the memory and IOPS deduplication cache. |
|
| Image size (in 1KB blocks) of the memory and IOPS deduplication cache. |
|
| Directories for which memory and IOPS deduplication is enabled by default. |
|
| Enables limits for the backup, restore, and migration operations. |
|
| Sets the disk I/O limit for the backup, restore, and migration operations, in bytes per second. Not set by default. |
|
Table 2.1. Logging parameters
Name | Description | Default Value |
---|---|---|
| This parameter defines whether |
|
| File where |
|
| Logging verbosity, from 0 to 10 (higher is more verbose). |
|
Table 2.2. Disk quota parameters
Name | Description | Default Value |
---|---|---|
| Enables or disables disk quotas for containers. If set to |
|
Table 2.3. Network traffic parameters
Name | Description | Default Value |
---|---|---|
| Traffic shaping allows you to limit the bandwidth consumed by containers for outgoing traffic. If it is set to "yes", then limitations will be turned on. If you want to use this feature, |
|
| This is the list of network interfaces on which we want to shape the traffic and their speed in the form of "dev:rate". The rate is measured in Kbps. If you want to shape traffic on more than one interface, set this parameter to |
|
| This parameter sets the size of the bandwidth pool for all containers. It is the upper limit for the bandwidth available to all your containers and is specified in the form of "dev:class:rate". The rate is measured in Kbps. Containers can consume bandwidth up to this limit in addition to the limit specified by the |
|
| This parameter is the default bandwidth guaranteed to a container for outgoing traffic if the container configuration file does not explicitly specify a different value. This value is in the same format as |
|
| This optional parameter (where |
|
Table 2.4. Template parameters
Name | Description | Default Value |
---|---|---|
| This is the directory where to find templates. It is not recommended to redefine this option since all OpenVZ templates use the default directory. |
|
Table 2.5. Container default parameters
Name | Description | Default Value |
---|---|---|
| The mount point for container’s |
|
| The directory where all the files and directories specific to the container are stored. Must contain the literal string |
|
| The default configuration file sample to be used for the container creation; it may be overridden with the |
|
| The default OS template to be used for the container creation. |
|
| Additional environment variables to be passed to the container |
|