Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Man/vz.conf.5

1,272 bytes added, 13:42, 11 September 2018
no edit summary
== NAME ==
<p style="margin-left:11%0; margin-top: 1em">vz.conf &minus;
global OpenVZ configuration file</p>
== SYNOPSIS ==
<p style="margin-left:11%0; margin-top: 1em"><b>/etc/vz/vz.conf</b></p>
== DESCRIPTION ==
to be loaded by <b>vz</b> initscript before loading OpenVZ
modules (which is required for iptables to work inside
containers). If not set, value of <b>IPTABLES</b> isused.</p>
<p style="margin-left:11%;"><b>VZFASTBOOT</b>=<b>yes</b>|<b>no</b></p>
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>
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:22%;">Controls on which interfaces to
add/remove ARP records for a container IP, also which
interfaces to use to query/announce ARP. </p> <p style="margin-left:22%; margin-top: 1em">If this set to<b>all</b>, an empty string, or unset, all possible networkinterfaces (i.e. the ones that are UP and doesn&rsquo;t haveNOARP, SLAVE, or LOOPBACK flags) are used. This is thedefault 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 isin the same subnet as a CT container IP) will be chosen automatically.</p> Any other <p style="margin-left:22%; margin-top: 1em">If the value restores old (as of vzctl 3.0.19 or older)behaviorstarts with <b>list:</b> prefix, when all the possible space-separated list ofinterfaces were 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:22%;">In case the value of this
parameter is set to <b>yes</b>, vzctl will fail to start a
container if there is another host with the same IP presentin thenetwork. Any other value makes vzctl to only printsubnetthe warning (which is the default behavior). The </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 thisparameter is set to <b>yes</b>, vzctl will not use ARPqueries when starting a container in order to detect ifthere is another host with the same IP present in thenetwork. Note that for each IP, vzctl sends ARP query andwaits up to 1 second for response. Any other value means todo ARP detection.</p> <p style="margin-left:11%;"><b>FORCE_ROUTE</b>=<b>yes</b>|<b>no</b> makes </p> <p style="margin-left:22%;">In case the value of thisparameter is set to <b>yes</b>, vzctl will attempt to changean existing route to point to a container when starting acontainer if new route setup fails. Any other value means to only print thewarningattempt to add new routes (default behavior).</p>
=== Defaults for vzctl create ===
literal string <b>$VEID</b>, which will be substituted with
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>