2.1. OpenVZ Configuration Files

The table below lists the configuration files available in OpenVZ. Most files are located in the /etc directory on a hardware node. If a configuration file is stored in a place other than the hardware node, its exact location is specified.

NameDescription

/etc/vz/vz.conf

Global configuration file. This file keeps system-wide settings, such as the default location of templates and global network settings.

/etc/vz/conf/<CT_name>.conf

Private configuration file of a container with the name <CT_name>. This file keeps container-specific settings: resource management parameters, the location of its private area, IP address, and so on.

/etc/vz/conf/ve-<name>.conf-sample

Sample files containing a number of default container configurations. Some pre-created samples file are shipped with OpenVZ (e.g., basic and confixx), but you can also create your own samples to meet your demands.

/usr/libexec/libvzctl/dists/<distribution_name>.conf

Linux distribution configuration files. These files define what scripts should be run when you perform specific operations with containers (e.g., when you set a new IP address for a container). The scripts differ from OpenVZ action scripts and depend on the Linux version a particular container is running.

/etc/vz/pfcache.conf

Configuration file used by the pfcache utility to manage memory and IOPS deduplication.

/etc/vz/oom-groups.conf

OOM killer configuration file with task badness adjustments.

/etc/vz/conf/networks_classes

Configuration file defining the network classes for traffic shaping and bandwidth management.

/etc/sysctl.conf

Kernel parameters. OpenVZ adjusts a number of kernel sysctl parameters and modifies the default /etc/sysctl.conf file.

/etc/vztt/vztt.conf

Configuration file used by the vzpkg utility to manage OS and application EZ templates.