1vz.conf(5)                        Containers                        vz.conf(5)
2
3
4

NAME

6       vz.conf - global OpenVZ configuration file
7

SYNOPSIS

9       /etc/vz/vz.conf
10

DESCRIPTION

12       This is the global configuration file for OpenVZ.  It consists of lines
13       in the form
14
15       PARAMETER="value"
16
17       All parameter names and values are case-sensitive.  Quotes  surrounding
18       value  are  required  if value contains spaces, and are optional other‐
19       wise. Extra spaces are not allowed.  All  unrecognized  lines  will  be
20       ignored.
21
22
23   Global parameters
24       VIRTUOZZO=yes|no
25              This  parameter can be set to yes or no, and used by the vz init
26              script. In case it is not set to yes, nothing will  be  done  to
27              boot up OpenVZ on this node.
28
29       LOCKDIR=directory
30              Set the directory to put lock files to.
31
32       VE0CPUUNITS=number
33              Value of this parameter sets cpuunits for CT0 (host system).
34
35       LOGGING=yes|no
36              Enables or disables logging. This parameter can be set to yes or
37              no, default is yes.
38
39       LOGFILE=file
40              Set location of log file.
41
42       LOG_LEVEL=number
43              Set the logging level for the log file (does not affect  console
44              output).   The  greater the number is, the more information will
45              be logged to the LOGFILE. Default is 0, which means to log  nor‐
46              mal  messages  and  errors.  If  set  to -1, only errors will be
47              logged.
48
49       VERBOSE=number
50              Set the logging level  for  console/terminal  output  (does  not
51              affect  log file).  Default is 0, which means to log normal mes‐
52              sages and errors.  Increasing the  number  makes  vzctl(8)  more
53              verbose.
54
55       MODULES_DISABLED=yes|no
56              If the value of this parameter is set to yes, no attempt to load
57              kernel modules is made by the vz initscript. This is helpful  on
58              systems  which  have  OpenVZ-specific features compiled into the
59              kernel (i. e. not as modules).
60
61       IPTABLES_MODULES="module module ..."
62              List of iptables kernel modules to be loaded  by  vz  initscript
63              before loading OpenVZ modules (which is required for iptables to
64              work inside containers).
65
66       VZFASTBOOT=yes|no
67              If the value of this parameter is  set  to  yes,  vz  initscript
68              called  with  start  argument  will  start  the  containers with
69              uncleanly shutdown quota state without performing  quota  reini‐
70              tialization  (which  is usually a time-consuming process). After
71              all the containers are started,  the  initscript  when  restarts
72              those containers with unclean quota in a normal way (to recalcu‐
73              late/fix quotas).
74
75       VE_STOP_MODE=suspend|stop
76              If the value of this parameter is set to suspend or not  set  at
77              all, vz initscript called with stop argument will try to suspend
78              the running containers, instead of stopping them. Suspended con‐
79              tainers  when will be restored on vz start. This feature usually
80              helps to decrease the reboot time. If a container fails to  sus‐
81              pend, it will be stopped anyway.
82
83       VE_PARALLEL=number
84              A  number  of containers to be started or stopped simultaneously
85              on node startup or shutdown. If not  specified,  the  number  is
86              calculated  based  on  amount  of  CPU  cores.  Used  by  the vz
87              initscript.
88
89       TEMPLATE=directory
90              Value of this parameter is a directory in  which  all  container
91              template data are stored.
92
93       SKIP_SYSCTL_SETUP=yes
94              If  this  parameter  is  not present, init.d/vz start  sets some
95              sysctl.conf(5) parameters  required  or  recommended  by  OpenVZ
96              (with  the  help of vz-postinstall sysctl script), and then adds
97              this parameter to vz.conf.
98
99
100   Network interface parameters
101       VE_ROUTE_SRC_DEV="device"
102              This parameter  specifies  the  network  device  name  which  IP
103              address  will  be used as the source IP. This is helpful in case
104              more than one network interface is configured on HN and there is
105              a  need  to  specify the source IP address. Default is the first
106              device in the network device list.
107
108       NEIGHBOUR_DEVS="detect"
109              Controls on which interfaces to add/remove  ARP  records  for  a
110              container  IP,  also  which  interfaces to use to query/announce
111              ARP. If this is set to detect, the right network interface  (the
112              one which is in the same subnet as a CT IP) will be chosen auto‐
113              matically. Any other value restores old (as of vzctl  3.0.19  or
114              older) behavior, when all the possible interfaces were used.
115
116       ERROR_ON_ARPFAIL=yes|no
117              In  case  the  value of this parameter is set to yes, vzctl will
118              fail to start a container if there is another host with the same
119              IP  present  in the network. Any other value makes vzctl to only
120              print the warning (which is the default behavior).
121
122       SKIP_ARPDETECT=yes|no
123              In case the value of this parameter is set to  yes,  vzctl  will
124              not use ARP queries when starting a container in order to detect
125              if there is another host with the same IP present  in  the  net‐
126              work.  Note that for each IP, vzctl sends ARP query and waits up
127              to 1 second for response.  Any  other  value  means  to  do  ARP
128              detection.
129
130
131   Defaults for vzctl create
132       These  parameters  are defaults for vzctl create and can be overwritten
133       by its appropriate command line options.
134
135       DEF_OSTEMPLATE=name
136              Default OS template to create a container from.  Corresponds  to
137              --ostemplate option of vzctl create.
138
139       CONFIGFILE=name
140              Default  configuration  file  (/etc/vz/conf/ve-name.conf-sample)
141              used to create a new container. Corresponds to  --config  option
142              of vzctl create.
143
144       VE_LAYOUT=simfs|ploop[:{plain|expanded|raw}]
145              Default  CT filesystem layout for a new container, can either be
146              ploop or simfs. In case ploop  is  used,  one  can  additionally
147              specify  ploop  disk image format after a colon.  Possible ploop
148              formats are expanded, plain and raw.  Default is expanded. Using
149              raw is not recommended and is not supported.
150
151              Corresponds to --layout option of vzctl create.
152
153
154   Defaults for containers
155       Below parameters are defaults for containers, and can be overwritten by
156       parameters in ctid.conf(5) per-container configuration file.
157
158       DISK_QUOTA=yes|no
159              In case the value of this parameter is set to no, all disk quota
160              operations are disabled.
161
162       VE_ROOT=directory
163              Value  of  this  parameter is the directory which serves as con‐
164              tainer root mount  point.  Value  must  contain  literal  string
165              $VEID, which will be substituted with the actual numeric CT ID.
166
167       VE_PRIVATE=directory
168              Value  of this parameter is the directory in which all the files
169              and directories specific to that  container  are  stored.  Value
170              must  contain  literal  string  $VEID, which will be substituted
171              with the actual numeric CT ID.
172
173       STOP_TIMEOUT="number"
174              Time to wait for a container to shut down on vzctl stop,  before
175              forcibly killing it, in seconds. Hardcoded to 120 if not set.
176
177       NAMESERVER="ip [ip ...]"
178              Default  value for containers nameserver(s). Several name server
179              addresses are divided by spaces. If set to inherit, values  from
180              host system's /etc/resolv.conf are used.
181
182       SEARCHDOMAIN="domain [domain ...]"
183              Default  value  for  containers  search  domains. Several search
184              domains are divided by spaces. If set to  inherit,  values  from
185              host system's /etc/resolv.conf are used.
186
187       Most of the other parameters that appear in per-container configuration
188       files ctid.conf(5) can be also set here. Still, it  is  recommended  to
189       keep  TEMPLATE,  VE_PRIVATE and VE_ROOT in this configuration file, and
190       all the other container related parameters in per-container  configura‐
191       tion files.
192

SEE ALSO

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

LICENSE

197       Copyright (C) 2000-2011, Parallels, Inc. Licensed under GNU GPL.
198
199
200
201OpenVZ                            5 Dec 2012                        vz.conf(5)
Impressum