Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Man/vz.conf.5

2,227 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 ==
<p style="margin-left:11%;"><b>LOGFILE</b>=<i>file</i></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>
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>
directory in which all container template data are
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 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>
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
nameserver(s). Several name server addresses are divided by
spaces. If set to <b>inherit</b>, values from host
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:22%;">Default value for containers
search domains. Several search domains are divided by
spaces. If set to <b>inherit</b>, values from host
system&rsquo;s <b>/etc/resolv.conf</b> are used.</p>
<p style="margin-left:11%; margin-top: 1em">Most of the