Poster of Linux kernelThe best gift for a Linux geek
vz.conf

vz.conf

Section: Containers (5) Updated: 10 Dec 2009
Local index Up
 

NAME

vz.conf - global OpenVZ configuration file  

SYNOPSIS

/etc/vz/vz.conf  

DESCRIPTION

This is global configuration file for OpenVZ. It consists of lines in the form

PARAMETER="value"

All parameter names and values are case-sensitive. Quotes surrounding value are required if value contains spaces, and are optional otherwise. Extra spaces are not allowed. All unrecognized lines will be ignored.  

Global parameters

VIRTUOZZO=yes|no
This parameter can be set to yes or no, and used by /etc/init.d/vz script. In case it is not set to yes, nothing will be done to boot up OpenVZ on this node.
LOCKDIR=directory
Set the directory to put lock files to.
VE0CPUUNITS=number
Value of this parameter sets cpuunits for CT0 (host system).
LOGGING=yes|no
Enables or disables logging. This parameter can be set to yes or no, default is yes.
LOGFILE=file
Set location of log file, default is /var/log/vzctl.log.
LOG_LEVEL=number
Set the logging level. The more number is, the more information will be logged.
VERBOSE=number
Set the output verbosity. Default is 0.
MODULES_DISABLED=yes|no
If the value of this parameter is set to yes, no attempt to load OpenVZ kernel modules is made in vz initscript. This is helpful on systems which have OpenVZ-specific stuff compiled into the kernel (i. e. not as modules).
 

Disk quota parameters

DISK_QUOTA=yes|no
In case the value of this parameter is set to no, all disk quota operations are disabled.
VZFASTBOOT=yes|no
This parameter is used by /etc/init.d/vz start script. In case the value of this parameter is set to yes, all containers with incorrectly shutdown quota state are started without quota check, and after all containers will be started, those marked containers are restarted (to fix quotas).
 

Network interface parameters

VE_ROUTE_SRC_DEV=device
This parameter specifies the network device name which IP address will be used as the source IP. This is helpful in case more than one network interface is configured on HN and there is a need to specify the source IP address. Default is the first device in the network device list.
NEIGHBOUR_DEVS[=detect]
Controls on which interfaces to add/remove ARP records for a container IP, also which interfaces to use to query/announce ARP. If this is set to detect, the right network interface (the one which is in the same subnet as a CT IP) will be chosen automatically. Any other value restores old (as of vzctl 3.0.19 or older) behavior, when all the possible interfaces were used.
ERROR_ON_ARPFAIL=yes|no
In case the value of this parameter is set to yes, vzctl will fail to start a container if there is another host with the same IP in the subnet. The value of no makes vzctl to only print the warning.
TEMPLATE=directory
Value of this parameter is a directory in which all container template data are stored.
 

Defaults for containers

Below parameters are defaults for containers, and can be overwritten by parameters in ctid.conf(5) per-container configuration file.
VE_ROOT=directory
Value of this parameter is the directory which serves as container root mount point. Value must contain literal string $VEID, which will be substituted with the actual numeric CT ID.
VE_PRIVATE=directory
Value of this parameter is the directory in which all the files and directories specific to that container are stored. Value must contain literal string $VEID, which will be substituted with the actual numeric CT ID.
CONFIGFILE=name
Specified default configuration file on create action, corresponds to --config option.

Most of the other parameters that appear in per-container configuration files ctid.conf(5) can be also set here. Still, it is recommended to keep TEMPLATE, VE_PRIVATE and VE_ROOT in this configuration file, and all the other container related parameters in per-container configuration files.  

SEE ALSO

vzctl(8), ctid.conf(5).  

LICENSE

Copyright (C) 2000-2009, Parallels, Inc. Licensed under GNU GPL.


 

Index

NAME
SYNOPSIS
DESCRIPTION
Global parameters
Disk quota parameters
Network interface parameters
Defaults for containers
SEE ALSO
LICENSE

This document was created by man2html, using the manual pages.
Time: 22:00:24 GMT, April 16, 2011