Editing Man/vz.conf.5

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
== NAME ==
 
== NAME ==
  
<p style="margin-left:0; margin-top: 1em">vz.conf &minus;
+
<p style="margin-left:11%; margin-top: 1em">vz.conf &minus;
 
global OpenVZ configuration file</p>
 
global OpenVZ configuration file</p>
  
 
== SYNOPSIS ==
 
== SYNOPSIS ==
  
<p style="margin-left:0; margin-top: 1em"><b>/etc/vz/vz.conf</b></p>
+
<p style="margin-left:11%; margin-top: 1em"><b>/etc/vz/vz.conf</b></p>
  
 
== DESCRIPTION ==
 
== DESCRIPTION ==
Line 49: Line 49:
 
<p style="margin-left:11%;"><b>LOGFILE</b>=<i>file</i></p>
 
<p style="margin-left:11%;"><b>LOGFILE</b>=<i>file</i></p>
  
<p style="margin-left:22%;">Set location of log file.</p>
+
<p style="margin-left:22%;">Set location of log file,
 +
default is /var/log/vzctl.log.</p>
  
 
<p style="margin-left:11%;"><b>LOG_LEVEL</b>=<i>number</i></p>
 
<p style="margin-left:11%;"><b>LOG_LEVEL</b>=<i>number</i></p>
Line 81: Line 82:
 
to be loaded by <b>vz</b> initscript before loading OpenVZ
 
to be loaded by <b>vz</b> initscript before loading OpenVZ
 
modules (which is required for iptables to work inside
 
modules (which is required for iptables to work inside
containers).</p>
+
containers). If not set, value of <b>IPTABLES</b> is
 +
used.</p>
  
 
<p style="margin-left:11%;"><b>VZFASTBOOT</b>=<b>yes</b>|<b>no</b></p>
 
<p style="margin-left:11%;"><b>VZFASTBOOT</b>=<b>yes</b>|<b>no</b></p>
Line 93: Line 95:
 
initscript when restarts those containers with unclean quota
 
initscript when restarts those containers with unclean quota
 
in a normal way (to recalculate/fix quotas).</p>
 
in a normal way (to recalculate/fix quotas).</p>
 
<p style="margin-left:11%;"><b>VE_STOP_MODE</b>=<b>suspend</b>|<b>stop</b></p>
 
 
<p style="margin-left:22%;">If the value of this parameter
 
is set to <b>suspend</b> or not set at all, <b>vz</b>
 
initscript called with <b>stop</b> argument will try to
 
suspend the running containers, instead of stopping them.
 
Suspended containers when will be restored on <b>vz
 
start</b>. This feature usually helps to decrease the reboot
 
time. If a container fails to suspend, it will be stopped
 
anyway.</p>
 
 
<p style="margin-left:11%;"><b>VE_PARALLEL</b>=<i>number</i></p>
 
 
<p style="margin-left:22%;">A number of containers to be
 
started or stopped simultaneously on node startup or
 
shutdown. If not specified, the number is calculated based
 
on amount of CPU cores. Used by the <b>vz</b>
 
initscript.</p>
 
  
 
<p style="margin-left:11%;"><b>TEMPLATE</b>=<i>directory</i></p>
 
<p style="margin-left:11%;"><b>TEMPLATE</b>=<i>directory</i></p>
Line 118: Line 101:
 
directory in which all container template data are
 
directory in which all container template data are
 
stored.</p>
 
stored.</p>
 
<p style="margin-left:11%;"><b>SKIP_SYSCTL_SETUP</b>=<b>yes</b></p>
 
 
<p style="margin-left:22%;">If this parameter is not
 
present, <b>init.d/vz start</b> sets some
 
<b>sysctl.conf</b>(5) parameters required or recommended by
 
OpenVZ (with the help of <b>vz-postinstall sysctl</b>
 
script), and then adds this parameter to <b>vz.conf</b>.</p>
 
  
 
=== Network interface parameters ===
 
=== Network interface parameters ===
Line 138: Line 113:
 
network device list.</p>
 
network device list.</p>
  
<p style="margin-left:11%;"><b>NEIGHBOUR_DEVS</b>=&quot;<b>all</b>|<b>detect</b>|<b>list:</b><i>dev1&nbsp;</i>[<i>dev2&nbsp;</i>...]&quot;</p>
+
<p style="margin-left:11%;"><b>NEIGHBOUR_DEVS</b>=&quot;<b>detect</b>&quot;</p>
  
 
<p style="margin-left:22%;">Controls on which interfaces to
 
<p style="margin-left:22%;">Controls on which interfaces to
 
add/remove ARP records for a container IP, also which
 
add/remove ARP records for a container IP, also which
interfaces to use to query/announce ARP.</p>
+
interfaces to use to query/announce ARP. If this is set to
 
+
<b>detect</b>, the right network interface (the one which is
<p style="margin-left:22%; margin-top: 1em">If set to
+
in the same subnet as a CT IP) will be chosen automatically.
<b>all</b>, an empty string, or unset, all possible network
+
Any other value restores old (as of vzctl 3.0.19 or older)
interfaces (i.e. the ones that are UP and doesn&rsquo;t have
+
behavior, when all the possible interfaces were used.</p>
NOARP, SLAVE, or LOOPBACK flags) are used. This is the
 
default mode.</p>
 
 
 
<p style="margin-left:22%; margin-top: 1em">If set to
 
<b>detect</b>, the right network interface (i.e. the one
 
which is in the same subnet as a container IP) will be
 
chosen automatically.</p>
 
 
 
<p style="margin-left:22%; margin-top: 1em">If the value
 
starts with <b>list:</b> prefix, the space-separated list of
 
interfaces following the prefix is used.</p>
 
  
 
<p style="margin-left:11%;"><b>ERROR_ON_ARPFAIL</b>=<b>yes</b>|<b>no</b></p>
 
<p style="margin-left:11%;"><b>ERROR_ON_ARPFAIL</b>=<b>yes</b>|<b>no</b></p>
Line 163: Line 127:
 
<p style="margin-left:22%;">In case the value of this
 
<p style="margin-left:22%;">In case the value of this
 
parameter is set to <b>yes</b>, vzctl will fail to start a
 
parameter is set to <b>yes</b>, vzctl will fail to start a
container if there is another host with the same IP present
+
container if there is another host with the same IP in the
in the network. Any other value makes vzctl to only print
+
subnet. The value of <b>no</b> makes vzctl to only print the
the warning (which is the default behavior).</p>
+
warning.</p>
 
 
<p style="margin-left:11%;"><b>SKIP_ARPDETECT</b>=<b>yes</b>|<b>no</b></p>
 
 
 
<p style="margin-left:22%;">In case the value of this
 
parameter is set to <b>yes</b>, vzctl will not use ARP
 
queries when starting a container in order to detect if
 
there is another host with the same IP present in the
 
network. Note that for each IP, vzctl sends ARP query and
 
waits up to 1 second for response. Any other value means to
 
do ARP detection.</p>
 
 
 
<p style="margin-left:11%;"><b>FORCE_ROUTE</b>=<b>yes</b>|<b>no</b></p>
 
 
 
<p style="margin-left:22%;">In case the value of this
 
parameter is set to <b>yes</b>, vzctl will attempt to change
 
an existing route to point to a container when starting a
 
container if new route setup fails. Any other value means to
 
only attempt to add new routes (default behavior).</p>
 
 
 
=== Defaults for vzctl create ===
 
 
 
<p style="margin-top: 1em">These parameters are defaults
 
for <b>vzctl create</b> and can be overwritten by its
 
appropriate command line options.</p>
 
 
 
<p style="margin-left:11%;"><b>DEF_OSTEMPLATE</b>=<i>name</i></p>
 
 
 
<p style="margin-left:22%;">Default OS template to create a
 
container from. Corresponds to <b>--ostemplate</b> option of
 
<b>vzctl create</b>.</p>
 
 
 
<p style="margin-left:11%;"><b>CONFIGFILE</b>=<i>name</i></p>
 
 
 
<p style="margin-left:22%;">Default configuration file
 
(<b>/etc/vz/conf/ve-</b><i>name</i><b>.conf-sample</b>) used
 
to create a new container. Corresponds to <b>--config</b>
 
option of <b>vzctl create</b>.</p>
 
 
 
<p style="margin-left:11%;"><b>VE_LAYOUT</b>=<b>simfs</b>|<b>ploop</b>[<b>:</b>{<b>plain</b>|<b>expanded</b>|<b>raw</b>}]</p>
 
 
 
<p style="margin-left:22%;">Default CT filesystem layout
 
for a new container, can either be <b>ploop</b> or
 
<b>simfs</b>. In case <b>ploop</b> is used, one can
 
additionally specify ploop disk image format after a colon.
 
Possible ploop formats are <b>expanded</b>, <b>plain</b> and
 
<b>raw</b>. Default is <b>expanded</b>. Using <b>raw</b> is
 
not recommended and is not supported.</p>
 
 
 
<p style="margin-left:22%; margin-top: 1em">Corresponds to
 
<b>--layout</b> option of <b>vzctl create</b>.</p>
 
  
 
=== Defaults for containers ===
 
=== Defaults for containers ===
Line 244: Line 158:
 
the actual numeric CT ID.</p>
 
the actual numeric CT ID.</p>
  
<p style="margin-left:11%;"><b>STOP_TIMEOUT</b>=&quot;<i>number</i>&quot;</p>
+
<p style="margin-left:11%;"><b>CONFIGFILE</b>=<i>name</i></p>
 
 
<p style="margin-left:22%;">Time to wait for a container to
 
shut down on <b>vzctl stop</b>, before forcibly killing it,
 
in seconds. Hardcoded to 120 if not set.</p>
 
 
 
<p style="margin-left:11%;"><b>NAMESERVER</b>=&quot;<i>ip&nbsp;</i>[<i>ip&nbsp;</i>...]&quot;</p>
 
  
<p style="margin-left:22%;">Default value for containers
+
<p style="margin-left:22%;">Default configuration file for
nameserver(s). Several name server addresses are divided by
+
<b>create</b> action, corresponds to <b>--config</b>
spaces. If set to <b>inherit</b>, values from host
+
option.</p>
system&rsquo;s <b>/etc/resolv.conf</b> are used.</p>
 
  
<p style="margin-left:11%;"><b>SEARCHDOMAIN</b>=&quot;<i>domain&nbsp;</i>[<i>domain&nbsp;</i>...]&quot;</p>
+
<p style="margin-left:11%;"><b>IPTABLES</b>=&quot;<i>module&nbsp;module&nbsp;...</i>&quot;</p>
  
<p style="margin-left:22%;">Default value for containers
+
<p style="margin-left:22%;">List of iptables modules to be
search domains. Several search domains are divided by
+
enabled for containers, corresponds to <b>--iptables</b>
spaces. If set to <b>inherit</b>, values from host
+
option.</p>
system&rsquo;s <b>/etc/resolv.conf</b> are used.</p>
 
  
 
<p style="margin-left:11%; margin-top: 1em">Most of the
 
<p style="margin-left:11%; margin-top: 1em">Most of the

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)