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 81: Line 81:
 
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 104: Line 105:
 
time. If a container fails to suspend, it will be stopped
 
time. If a container fails to suspend, it will be stopped
 
anyway.</p>
 
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 138: Line 131:
 
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 145:
 
<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 ===
 
=== Defaults for vzctl create ===
Line 243: Line 207:
 
literal string <b>$VEID</b>, which will be substituted with
 
literal string <b>$VEID</b>, which will be substituted with
 
the actual numeric CT ID.</p>
 
the actual numeric CT ID.</p>
 +
 +
<p style="margin-left:11%;"><b>IPTABLES</b>=&quot;<i>module&nbsp;module&nbsp;...</i>&quot;</p>
 +
 +
<p style="margin-left:22%;">List of iptables modules to be
 +
enabled for containers, corresponds to <b>--iptables</b>
 +
option.</p>
  
 
<p style="margin-left:11%;"><b>STOP_TIMEOUT</b>=&quot;<i>number</i>&quot;</p>
 
<p style="margin-left:11%;"><b>STOP_TIMEOUT</b>=&quot;<i>number</i>&quot;</p>

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)