
Reference 82
Global OpenVZ Configuration File
OpenVZ keeps its system wide configuration parameters in the
/etc/sysconfig/vz
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 quota, template,
Virtual Private Servers, and supplementary parameters. Below is the description of all the
parameters defined in this version of OpenVZ.
Global parameters
Parameter
Description
Default value
VIRTUOZZO
This can be either “yes” or “no”. OpenVZ
System V startup script checks this parameter. If
set to “no”, then OpenVZ modules are not
loaded. You might set it to “no” if you want to
perform system maintenance and do not want to
bring up all VPSs on the Hardware Node.
yes
LOCKDIR
Actions on a Virtual Private Server should be
serialized, since two simultaneous operations on
the same Virtual Private Server may break its
consistency. OpenVZ keeps lock files in this
directory in order to serialize access to one
Virtual Private Server.
/vz/lock
VE0CPUUNITS
CPU weight designated for the Hardware Node
itself.
1000
Logging parameters
affect the
vzctl
utility logging behavior.
Parameter
Description
Default value
LOGGING
This parameter defines whether
vzctl
should log its
actions.
Yes
LOGFILE
File where
vzctl
logs its actions.
/var/log/vzctl.log
LOG_LEVEL
There are three levels of logging defined in the current
version of OpenVZ.
0
The table below describes the possible values of the
LOG_LEVEL
parameter and their
meanings:
Log level
Information to be logged
0
Actions of
vzctl
on Virtual Private Servers like
start
,
stop
,
create
,
destroy
,
mount
,
umount
.
1
Level 1 logs events, calls to
vzctl
helper scripts located in
/etc/sysconfig/vz-
scripts
(such as
vz-start
and
vz-stop
) and situations when the init process of
the VPS is killed on VPS stop after timeout.
2
Level 0 and level 1 logging events, plus template version used for VPS creation and
calls to mount and quota operations with parameters.