Changes

Jump to: navigation, search

Man/vzctl.8

16,260 bytes added, 18:21, 23 April 2015
Automated import of articles *** existing text overwritten ***
<p style="margin-top: 1em">[<i>flags</i>] <b>create</b>
<i>CTID --parameter value </i> [...]</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<p>[<i>flags</i>] <b>start</b> <i>CTID</i> [<b>--wait</b>]
[<b>--force</b>] [<b>--skip-fsck</b>][<b>--skip-remount</b>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>stop</b> <i>CTID</i>[<b>--fast</b>][<b>--fastskip-umount</b>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<p>[<i>flags</i>] <b>restart</b> <i>CTID</i>
[<b>--wait</b>] [<b>--force</b>] [<b>--fast</b>][<b>--skip-fsck</b>] [<b>--skip-remount</b>]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>chkpntsuspend</b> | <b>restoreresume</b><i>CTID</i> [<b>--dumpfile&nbsp;</b><i>name</i>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>snapshot</b> <i>CTID</i>
[<b>--id&nbsp;</b><i>uuid</i>]
[<b>--name&nbsp;</b><i>name</i>]
[<b>--description&nbsp;</b><i>desc</i>][<b>--skip-suspend</b>] [<b>--skip-config</b>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>snapshot-switch</b> <i>CTID</i>[<b>--skip-resume</b> |<b>--must-resume</b>][<b>snapshot-delete -skip-config</b>] <b>--id</b> <i>uuid</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>snapshot-listdelete</b> <i>CTID</i><b>--id</b> <i>uuid</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>setsnapshot-mount</b> <i>CTID --parameter value[...]</i> [<b>--saveid</b>] [<bi>--forceuuid</bi>][<b>--setmode&nbsp;restarttarget</b>|<bi>ignoredir</bi>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>destroy</b> | <b>delete</b> |<b>mount</b> | <b>snapshot-umount</b> | <bi>statusCTID</bi> |<b>quotaon</b> | <b>quotaoff</b> | <b>quotainit</b> |<b>console--id</b> <i>CTIDuuid</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>convertsnapshot-list</b> <i>CTID</i>[<b>--layout&nbsp;ploopH</b>] [<b>:-o</b>{<bi>field</i>[,<i>expandedfield</bi>|...][<b>plain--id</b>|<bi>rawuuid</bi>}]]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>execset</b> | <i>CTID --parameter value</i>[...] [<b>exec2--save</b> ] [<b>--force<i/b>CTID]command[<b>--setmode&nbsp;restart</ib> [|<ib>argignore</ib> ...]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>enterset</b> <i>CTID</i>[<b>--exec&nbsp;reset_ub</b><i>command&nbsp;</i>[<i>arg&nbsp;</i>...]]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>runscriptdestroy</b> | <b>delete</b> |<b>mount</b> | <b>umount</b> | <b>status</b> |<b>quotaon</b> | <b>quotaoff</b> | <b>quotainit</b><i>CTID script</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>--helpconsole</b> | <bi>CTID</i>[<i>--versionttynum</bi>]</p></td></tr><tr valign="top" align="left"><td width="11%"></tabletd><td width="7%">
<p><b>vzctl</b></p></td><td width="2%"></td><td width= DESCRIPTION =="80%">
<p style="margin>[<i>flags</i>] <b>convert</b> <i>CTID</i>[<b>--left:11%layout&nbsp; margin-topploop</b>[<b>: 1em"</b>{<b>expanded</b>|<b>plain</b>Utility|<b>vzctlraw</b> runs on the host system (otherwise known as}]]</p> </td></tr>Hardware Node, or HN) and performs direct manipulations with<tr valign="top" align="left">containers (CTs).<td width="11%"></ptd><td width="7%">
<p style="margin-left:11%; margin-top: 1em">Containers canbe referred to by either numeric <ib>vzctl</b></p>CTID</itd> or by name (see<btd width="2%">--name</btd> option). Note that CT ID &lt;= 100 arereserved for OpenVZ internal purposes.</ptd width="80%">
<p>[<i>flags</i>] <b>compact</b> <i>CTID</i></p></td></tr><tr valign="top" align= OPTIONS "left"><td width="11%"></td><td width="7%">
<p><b>vzctl</b></p></td><td width="2%"></td><td width== Flags ==="80%">
<p style="margin-top: 1em">These [<i>flags come before a</i>] <b>exec</b> | <b>exec2</b> <i>CTIDcommand, and can be used with any command</i> [<i>arg</i> ... They affect]</p></td></tr>logging to console (terminal) only, and do not affect<tr valign="top" align="left">logging to a log file.<td width="11%"></ptd><td width="7%">
<p style="margin-left:11%;"><b>--quietvzctl</b></p></td><td width="2%"></td><td width="80%">
<p style>[<i>flags</i>] <b>enter</b> <i>CTID</i>[<b>--exec&nbsp;</b><i>command&nbsp;</i>[<i>arg&nbsp;</i>...]]</p> </td></tr><tr valign="top" align="margin-left:17"><td width="11%;">Disables output. Note that</td>scripts run by vzctl are still able to produce someoutput.</ptd width="7%">
<p style="margin-left:11%;"><b>--verbosevzctl</b></p></td><td width="2%"></td><td width="80%">
<p style="margin-left:17%;">Increments logging level upfrom the default. Can be used multiple times. Default valueis set to the value of [<bi>VERBOSEflags</bi> parameter in theglobal configuration file [[Man/vz.conf.5|] <b>vz.confrunscript</b>(5)]], or to <bi>0CTID script</bi>if not set by <b/p>VERBOSE</btd> parameter.</p> === Setting container parameters === <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="47%">
<p style="margin-top: 1em"><b>setvzctl</b></p></td>
<td width="2%"></td>
<td width="8380%"> <p><b>--help</b> | <b>--version</b></p></td></tr></table> == DESCRIPTION ==
<p style="margin-left:11%; margin-top: 1em"><i>CTID</i>Utility[<b>--onboot&nbsp;yesvzctl</b>|<b>no</b>]runs on the host system (otherwise known as[<b>--bootorder&nbsp;</b><i>number</i>]Hardware Node, or HN) and performs direct manipulations with[<b>--root&nbsp;containers (CTs).</bp><i>path</i>][<b>--private&nbsp;</b><i>path</i>][<b>-p style="margin-userpasswd&nbsp;</b><i>user</i>left:<i>pass</i>][<b>--disabled&nbsp11%;yes</b>|<b>no</b>][<b>margin--name&nbsp;</btop: 1em"><i>name</i>]Containers can[<b>--description&nbsp;</b>be referred to by either numeric <i>string</i>][<b>--ipadd&nbsp;</b><i>addr</i>][<b>--ipdel&nbsp;</b><i>addr</i>|<b>all</b>][<b>--hostname&nbsp;CTID</b><i>or by name</i>][<b>--nameserver&nbsp;</b><i>addr</i>](see[<b>--searchdomain&nbsp;</b><i>name</i>][<b>--netif_add&nbsp;</b><i>dev</i>[,<i>params</i>.option)..]][<b>--netif_delNote that CT ID &nbsplt;</b><i>dev</i>|<b>all</b>]= 100 are[<b>--ifname</b> <i>dev</i>reserved for OpenVZ internal purposes. A numeric ID should[not be more than <b>--mac&nbsp;2147483644</b><i>hwaddr.</ip>][<b>--host_ifname&nbsp;</b><i>dev</i>][<b>--host_mac&nbsp;</b><i>hwaddr</i>]== OPTIONS ==[<b>--bridge&nbsp;</b><i>name</i>][<b>--mac_filter&nbsp;on</b>|<b>off</b>]]=== Flags ===[<b>--numproc&nbsp;</b><i>items</i>][<b>p style="margin--numtcpsock&nbsp;</b><i>items</itop: 1em">]These flags come before a[<b>--numothersock&nbsp;</b><i>items</i>]command, and can be used with any command. They affect[<b>--vmguarpages&nbsp;</b><i>pages</i>]logging to console (terminal) only, and do not affect[<b>--kmemsize&nbsp;logging to a log file.</bp><i>bytes</i>][<b>--tcpsndbuf&nbsp;</b><i>bytes</i>][<b>p style="margin--tcprcvbuf&nbspleft:11%;</b"><i>bytes</i>][<b>--othersockbuf&nbsp;quiet</b><i>bytes</ip>][<b>--dgramrcvbuf&nbsp;</b><i>bytes</i>][<b>p style="margin--oomguarpages&nbspleft:17%;</b"><i>pages</i>]Disables output. Note that[<b>--lockedpages&nbsp;</b><i>pages</i>]scripts run by vzctl are still able to produce some[<b>--privvmpages&nbsp;output.</bp><i>pages</i>][<b>--shmpages&nbsp;</b><i>pages</i>][<b>p style="margin--numfile&nbspleft:11%;</b><i>items</i">][<b>--numflock&nbsp;verbose</b><i>items</ip>][<b>--numpty&nbsp;</b><i>items</i>][<b>p style="margin--numsiginfo&nbspleft:17%;</b"><i>items</i>]Increments logging level up[<b>--dcachesize&nbsp;</b><i>bytes</i>][<b>--numiptent&nbsp;</b><i>num</i>][<b>--physpages&nbsp;</b><i>pages</i>][<b>--swappages&nbsp;</b><i>pages</i>][<b>--ram&nbsp;</b><i>bytes</i>][<b>--swap&nbsp;</b><i>bytes</i>]from the default. Can be used multiple times. Default value[<b>--cpuunits&nbsp;</b><i>num</i>][<b>--cpulimit&nbsp;</b><i>num</i>][<b>--cpus&nbsp;</b><i>num</i>][<b>--cpumask&nbsp;</b><i>cpus</i>|<b>all</b>][<b>--meminfo&nbsp;none</b>|<i>mode</i>:<i>is set to the value</i>][of <b>--iptables&nbsp;VERBOSE</b><i>name</i>]parameter in theglobal configuration file [<b>--netdev_add&nbsp;</b><i>ifname</i>][<b>--netdev_del&nbsp;<Man/b><i>ifname</i>][<b>--diskquota&nbsp;yes</b>vz.conf.5|<b>no</b>][<b>--diskspace&nbsp;vz.conf</b><i>num</i>(5)][<b>--diskinodes&nbsp;</b><i>num</i>][, or to <b>--quotatime&nbsp;0</b><i>seconds</i>][if not set by <b>--quotaugidlimit&nbsp;VERBOSE</b><i>numparameter.</ip>][<b>--noatime&nbsp;yes</b>|<b>no</b>][<b>--capability&nbsp;</b><i>capname</i>:<b>on</b>|<b>off</b>]=== Setting container parameters ===[<b>--devnodes&nbsp;</b><i>param</i>][<b>--devices&nbsp;</b><i>param</i>]table width="100%" border="0" rules="none" frame="void"[<b>--pci_add&nbsp;</b><i>dev</i>][<b>--pci_del&nbsp;</b><i>dev</i>][<b>--features&nbsp;</b><i>param</i>:<b>on</b>|<b>off</b>][<b>--applyconfig&nbsp;</b><i>name</i>][<b>--applyconfig_map&nbsp;</b><i>group</i>][<b>--ioprio&nbsp;</b><i>num</i>] [<b>--save</b>][<b>--force</b>][<b>--setmode&nbsp;restart</b>|<b>ignore</b>]</p> </td></tr cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
 <p style="margin-top: 1em"><b>set</b></p></td>
<td width="2%"></td>
<td width="83%">
<pstyle="margin-top: 1em"><i>This command sets various container parameters.CTID</pi>[<b>--onboot&nbsp;yes</tdb>|<b>no</trb>][<b>--bootorder&nbsp;</b><i>number</tablei>][<b>--root&nbsp;</b><i>path</i>][<p style="marginb>--left:17%private&nbsp; margin</b><i>path</i>][<b>--top: 1em"mount_opts&nbsp;</b><i>options</i>If a][<b>--saveuserpasswd&nbsp;</b> flag is given, parameters are saved in<i>user</i>:<i>pass</i>]container configuration file [[Man<b>--disabled&nbsp;yes</ctid.conf.5b>|<b>ctid.confno</b>(5)][<b>--name&nbsp;</b><i>name</i>]. Use[<b>--forcedescription&nbsp;</b> to save the parameters even if the current<i>string</i>]kernel doesn[<b>--ostemplate&rsquonbsp;t support OpenVZ.</pb><i>string</i>][<b>--stop-timeout&nbsp;</b><i>seconds</i>][<p style="marginb>--left:17%ipadd&nbsp; margin</b><i>addr</i>][<b>--top: 1em"ipdel&nbsp;</b><i>addr</i>|<b>all</b>If the]container is currently running, [<b>vzctl--hostname&nbsp;</b> applies these<i>name</i>]parameters to the container.[<b>--nameserver&nbsp;</b><i>addr</pi>][<b>--searchdomain&nbsp;</b><i>name</i>][<p style="marginb>--left:17%netif_add&nbsp; margin</b><i>dev</i>[,<i>params</i>...]][<b>--top: 1em"netif_del&nbsp;</b><i>dev</i>|<b>all</b>Note that a few]parameters can only be applied by restarting the container.[<b>--ifname</b> <i>dev</i>By default, [<b>vzctl--mac&nbsp;</b> warns if such parameters are<i>hwaddr</i>]present and a container is running. Use [<b>--setmodehost_ifname&nbsp;</b><i>dev</i>]restart[<b>--host_mac&nbsp;</b> to restart a container in such a case, or<i>hwaddr</i>][<b>--setmode ignorebridge&nbsp;</b> to suppress the above mentioned<i>name</i>]warning.[<b>--mac_filter&nbsp;on</b>|<b>off</pb>]][<b>--numproc&nbsp;</b><i>items</i>][<p style="marginb>--left:17%numtcpsock&nbsp; margin</b><i>items</i>][<b>--top: 1em"numothersock&nbsp;</b><i>items</i>The following]parameters can be used with [<b>set--vmguarpages&nbsp;</b> command.<i>pages</pi>][<b>--kmemsize&nbsp;</b><i>bytes</i>]==== Miscellaneous ====[<b>--tcpsndbuf&nbsp;</b><i>bytes</i>][<b>--tcprcvbuf&nbsp;</b><i>bytes</i>][<p style="marginb>--left:11%othersockbuf&nbsp;"</b><i>bytes</i>][<b>--onboot yesdgramrcvbuf&nbsp;</b> |<i>bytes</i>][<b>no--oomguarpages&nbsp;</b><i>pages</pi>][<b>--lockedpages&nbsp;</b><i>pages</i>][<p style="marginb>--left:17%privvmpages&nbsp;"</b><i>pages</i>Sets whether the container will]be started during system boot. The container will not be[<b>--shmpages&nbsp;</b><i>pages</i>]auto[<b>--started unless this parameter is set to numfile&nbsp;</b><i>items</i>][<b>yes--numflock&nbsp;</b>.<i>items</pi>][<b>--numpty&nbsp;</b><i>items</i>][<p style="marginb>--left:11%numsiginfo&nbsp;"</b><i>items</i>][<b>--bootorderdcachesize&nbsp;</b><i>bytes</i>][<b>--numiptent&nbsp;</b><i>num</i>number][<b>--physpages&nbsp;</b><i>pages</pi>][<b>--swappages&nbsp;</b><i>pages</i>][<p style="marginb>--left:17%ram&nbsp;"</b><i>bytes</i>Sets the boot order priority]for this CT. The higher the [<b>--swap&nbsp;</b><i>numberbytes</i> is, the earlier in]the boot process this container starts. By default this[<b>--vm_overcommit&nbsp;</b><i>float</i>]parameter is unset, which is considered to be the lowest[<b>--cpuunits&nbsp;</b><i>num</i>]priority, so containers with unset [<b>bootorder--cpulimit&nbsp;</b> will<i>num</i>]start last.[<b>--cpus&nbsp;</b><i>num</pi>][<b>--cpumask&nbsp;</b><i>cpus</i>|<b>auto</b>|<b>all</b>][<p style="marginb>--left:11%nodemask&nbsp;"</b><i>nodes</i>|<b>all</b>][<b>--rootmeminfo&nbsp;none</b> |<i>pathmode</i>:<i>value</pi>][<b>--iptables&nbsp;</b><i>name</i>[<b>,</b>...]][<p style="marginb>--left:17%netfilter&nbsp;"disabled</b>|<b>stateless</b>|<b>stateful</b>|<b>full</b>Sets the path to root directory]([<b>VE_ROOT--netdev_add&nbsp;</b>) for this container. This is essentially a<i>ifname</i>]mount point for container[<b>--netdev_del&rsquonbsp;s root directory. Argument</b><i>ifname</i>]can contain literal string [<b>--diskquota&nbsp;yes</b>|<b>$VEIDno</b>, which will be]substituted with the numeric CT ID.[<b>--diskspace&nbsp;</b><i>num</pi>][<b>--diskinodes&nbsp;</b><i>num</i>][<p style="marginb>--left:11%quotatime&nbsp;"</b><i>seconds</i>][<b>--privatequotaugidlimit&nbsp;</b><i>num</i>][<b>--capability&nbsp;</b><i>pathcapname</i>:<b>on</pb>|<b>off</b>[<b>,</b>...]][<b>--devnodes&nbsp;</b><i>param</i>][<p style="marginb>--left:17%devices&nbsp;"</b><i>param</i>Sets the path to private]directory ([<b>VE_PRIVATE--pci_add&nbsp;</b>) for this container. This is a<i>dev</i>]directory in which all the container[<b>--pci_del&rsquonbsp;s files are</b><i>dev</i>]stored. Argument can contain literal string [<b>--features&nbsp;</b><i>name</i>:<b>on</b>|<b>$VEIDoff</b>[<b>,</b>...]]which will be substituted with the numeric CT ID.[<b>--applyconfig&nbsp;</b><i>name</pi>][<b>--applyconfig_map&nbsp;</b><i>group</i>][<p style="marginb>--left:11%ioprio&nbsp;"</b><i>num</i>][<b>--userpasswdiolimit&nbsp;</b><i>usermbps</i>:][<b>--iopslimit&nbsp;</b><i>passwordiops</i>] [<b>--save</pb>][<b>--force</b>] [<b>--reset_ub</b>][<b>--setmode&nbsp;restart</b>|<b>ignore</b>]</p style> </td></tr><tr valign="top" align="margin-left:17"><td width="11%"></td><td width="4%"></td><td width="2%"></td><td width="83%;">Sets password for the givenuser in a <p>This command sets various container, creating parameters. If the user if it does notexists. Note that this option container is not saved in configurationfile at all (so currently running, <b>--savevzctl</b> flag is useless), it isapplies theseapplied parameters to the container (by modifying its . The following options can beused with <b>set</etcb> command.</passwd andp></etctd></shadow files).tr></ptable>
<p style="margin-left:17%; margin-top: 1em">In casecontainer root filesystem is not mounted, it isautomatically mounted, then all the appropriate file changesare applied, then it is unmounted.</p>=== Flags ====
<p style="margin-left:1711%; margin"><b>-top: 1em"-save</b>Note thatcontainer should be created before using this option.</p>
<p style="margin-left:1117%;"><b>--disabled yes<If this flag is given,parameters are saved in container configuration file[[Man/b> ctid.conf.5|<b>noctid.conf</b>(5)]].</p>
<p style="margin-left:1711%;">Disable container start. Toforce the start of a disabled container, use <b>vzctl start--force</b>.</p>
<p style="margin-left:1117%;">If this flag is given togetherwith <b>--namesave</b> , parameters are saved even if the currentkernel doesn&rsquo;t support OpenVZ. Note this flag does notmake sense without <b>--save</b>, so <ib>name--save</ib>isrequired.</p>
<p style="margin-left:1711%;">Add a name for a container. The<i>name</i> can later be used in subsequent calls to<b>vzctl--reset_ub</b> in place of <i>CTID</i>.</p>
<p style="margin-left:1117%;">If this flag is given,<b>--descriptionvzctl</b>applies all User Beancounter parameters from<the configuration file to a running container. This ishelpful in case configuration file is modified manually.Please note this flag is exclusive, i>string</i>.e. it can not becombined with any other options or flags.</p>
<p style="margin-left:1711%;">Add a textual description for a<b>--setmode restart</b> |container.<b>ignore</b></p>
<p style==== Networking ===="margin-left:17%;">A few parameters can only beapplied by restarting the container. By default,<b>vzctl</b> prints a warning if such parameters aresupplied and a container is running. Use <b>--setmoderestart</b> together with <b>--save</b> flag to restart acontainer in such a case, or <b>--setmode ignore</b> tosuppress the warning.</p>
<p style="margin-left:11%;"><b>--ipadd</b> <i>addr</i></p>=== Miscellaneous ====
<p style="margin-left:1711%;">Adds an IP address <ib>addr--onboot yes</ib>|to a given container. Address can optionally have a netmaskspecified in the CIDR notation (e.g. <b>10.1.2.3/25no</b>).Note that this option is incremental, so <i>addr</i> areadded to already existing ones.</p>
<p style="margin-left:1117%;">Sets whether the container willbe started during system boot. The container will be startedon boot by <b>--ipdelvz</b> initscript if either this parameter isset to <ib>addryes</ib> |, or the container was running just beforelast reboot, and this parameter is not set to <b>allno</b>.Default value is unset, meaning the container will bestarted if it was running before the last reboot.</p>
<p style="margin-left:1711%;">Removes IP address <ib>addr--bootorder</ib>from a container. If you want to remove all the addresses,use <bi>--ipdel allnumber</bi>.</p>
<p style="margin-left:17%;">Sets the boot order priorityfor this CT. The higher the <i>number</i> is, the earlier inthe boot process this container starts. By default thisparameter is unset, which is considered to be the lowestpriority, so containers with unset <b>bootorder</b> willstart last.</p> <p style="margin-left:11%;"><b>--hostnameroot</b><i>namepath</i></p>
<p style="margin-left:17%;">Sets the path to root directory(<b>VE_ROOT</b>) for this container hostname.This is essentially amount point for container&rsquo;s root directory. Argumentcan contain literal string <b>vzctl$VEID</b> writes it to , which will besubstituted with the appropriate file inside acontainer (distribution-dependent)numeric CT ID.</p>
<p style="margin-left:11%;"><b>--nameserverprivate</b><i>addrpath</i></p>
<p style="margin-left:17%;">Sets DNS server IP address fora container. If you want the path to set several nameservers, youprivateshould do it at once, so use directory (<b>--nameserverVE_PRIVATE</b> option) for this container. This is amultiple times directory in one call to <b>vzctl</b>, as which all the namecontainer&rsquo;s files areserver values set in previous calls to stored. Argument can contain literal string <b>vzctl$VEID</b> are,overwrittenwhich will be substituted with the numeric CT ID.</p>
<p style="margin-left:11%;"><b>--searchdomainmount_opts</b><i>nameoption</i>[<b>,</b><i>option</i>...]</p>
<p style="margin-left:17%;">Sets DNS search domains additional mount optionsfor acontainerfile system. If you want to set several search domains, youshould do it at once, so use Only applicable for <b>--searchdomainploop</b> optionmultiple times in one call to <b>vzctl</b>layout, as all thesearch domain values set in previous calls to <b>vzctl</b>are overwrittenignored otherwise.</p>
<p style="margin-left:11%;"><b>--netif_adduserpasswd</b><i>ifname[user</i>,:<i>mac</i>,<i>host_ifname</i>,<i>host_mac</i>,<i>bridge]password</i></p>
<p style="margin-left:17%;">Adds a virtual Ethernet deviceSets password for the given(veth) to user in a given container, creating the user if it does notexists. Here <i>ifname</i> Note that this option is thenot saved in configurationEthernet device name in the container, file at all (so <ib>mac--save</ib> flag is its MACaddressuseless), <i>host_ifname</i> it is the Ethernet device name onapplied directly to the hostcontainer, and <i>host_mac</i> is its MAC address. MACby runningaddresses should be in distribution-specific programs inside the format like XX:XX:XX:XX:XX:XXcontainer.<i>bridge</i> It is an optional parameter which can be used incustom network start scripts to automatically add theinterface not recommended to a bridge. All parameters except <i>ifname</i>are optional and are automatically generated if notcombine this option with any otherspecifiedoptions.</p>
<p style="margin-left:1117%;margin-top: 1em"><b>--netif_del</b>In casecontainer was not running, it is automatically started then<i>dev_name</i> | <b>all</b>the appropriate changes are applied, then it isstopped.</p>
<p style="margin-left:17%;margin-top: 1em">Removes virtual Ethernet deviceNote thatfrom a container. If you want to remove all devices, use<b>all</b>should be created before using this option.</p>
<p style==== veth interface configuration ===="margin-left:11%;"><b>--disabled yes</b> |<b>no</b></p>
<p style="margin-left:1117%; margin-top: 1em">The followingoptions can be used to reconfigure the already-createdvirtual Ethernet interfaceDisable container start. To select force the interface toconfigurestart of a disabled container, use <b>vzctl start--ifnameforce</b> <i>name</i> option. <b><br>--mac</b> <i>XX:XX:XX:XX:XX:XX</i></p>
<p style="margin-left:2211%;">MAC address of interface insidea container.<b>--name</b> <i>name</i></p>
<p style="margin-left:1117%;">Add a name for a container. The<i>name</i> can later be used in subsequent calls to<b>--host_ifnamevzctl</b>in place of <i>nameCTID</i>. Note this option cannot be used without <b>--save</b>.</p>
<p style="margin-left:2211%;">interface name for virtual<b>--description</b>interface in the host system.<i>string</i></p>
<p style="margin-left:1117%;"><b>--host_mac</b>Add a textual description for a<i>XX:XX:XX:XX:XX:XX</i>container.</p>
<p style="margin-left:2211%;">MAC address of interface in the<b>--ostemplate</b>host system.<i>string</i></p>
<p style="margin-left:1117%;">Sets a new value of<b>--bridgeOSTEMPLATE</b> parameter in container configuration file[[Man/ctid.conf.5|<b>ctid.conf</b> (5)]]. Requires <ib>name--save</ib>flag. Usefulafter a change/upgrade of a distribution running insidecontainer, as vzctl uses the value of OSTEMPLATE to rundistribution-specific scripts.</p>
<p style="margin-left:2211%;">Bridge name. Custom network<b>--stop-timeout</b>start scripts can use this value to automatically add theinterface to a bridge.<i>seconds</i></p>
<p style="margin-left:1117%;">Sets a time to wait forcontainer to stop on <b>--mac_filter onvzctl stop</b> |before forciblykilling it, in seconds. Note this option can not be usedwithout <b>off--save</b>flag.</p>
<p style="margin-left:2217%;margin-top: 1em">Enables/disables MAC addressfiltering for the Container veth device and the possibilitySpecial valueof configuring the MAC address of this device from insidethe Container. If the filtering is turned on: <brb>&bull; the veth device accepts only those packets that havea MAC address in their headers corresponding to that of thisdevice (excluding all broadcast and multicast packets); 0<br/b>&bull; it is impossible means to modify the veth MAC address frominside the Containeruse compiled-in default.</p>
<p style="margin-left:22%; margin-top: 1em">By default,this functionality is enabled for all veth devices existinginside the Container.</p>=== Networking ====
<p style==== VSwap limits ===="margin-left:11%;"><b>--ipadd</b> <i>addr</i></p>
<p style="margin-left:1117%; margin-top: 1em">The followingAdds an IP address <i>addr</i>options sets memory and swap limits for VSwap-enabledto a given container. Address can optionally have a netmaskkernels specified in the CIDR notation (kernel version 042stab042 or greatere.g. <b>10.1.2.3/25</b>).Note that this option is incremental, so <i>addr</i> areadded to already existing ones.</p>
<p style="margin-left:11%; margin"><b>-top: 1em"-ipdel</b> <i>addr</i>Argument is in|bytes, unless otherwise specified by an optional suffix.Available suffixes are:<b>all</b></p>
<p style="margin-left:1117%; margin-top: 1em">&bull;Removes IP address <bi>Taddr</b>, <b>t</b> - terabytes; <bri>&bull; <b>G</b>from a container. If you want to remove all the addresses, <b>g</b> - gigabytes; <br>&bull; use <b>M</b>, <b>m</b> - megabytes; <br>&bull; <b>K</b>, <b>k</b> - kilobytes; <br>&bull; <b>P</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>&bull; <b>Bipdel all</b>, <b>b</b> - bytes. <b><br>--ram</b> <i>bytes</i></p>
<p style="margin-left:2211%;">Sets physical memory (RAM)available to a container. Actually, the option is a shortcutfor setting <b>--physpageshostname</b> limit (the barrier is set to0).<i>name</i></p>
<p style="margin-left:1117%;">Sets container hostname.<b>--swapvzctl</b> <i>bytes</i>writes it to the appropriate file inside acontainer (distribution-dependent).</p>
<p style="margin-left:2211%;">Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>--swappagesnameserver</b> limit (the barrier is set to 0).<i>addr</i></p>
<p style="margin-left:1117%; margin-top: 1em">Here is anSets DNS server IP address forexample of setting a container 777 . If you want to set several nameservers, youshould do it at once, so use <b>--nameserver</b> optionmultiple times in one call to have 512 megabytes of<b>vzctl</b>, as all the nameserver values set in previous calls to <b>vzctl</b> areRAM and 1 gigabyte of swap:overwritten.</p>
<pre p style="margin-left:1117%;margin-top: 1em"> vzctl set 777 A special valueof <b>inherit</b> can be used to auto--ram 512M --swap 1G --savepropagate nameservervalue(s) from the host system&rsquo;s<b>/etc/resolv.conf</b> file.</prep>
<p style==== User Beancounter limits ===="margin-left:11%;"><b>--searchdomain</b><i>name</i></p>
<p style="margin-left:1117%; margin">Sets DNS search domains for acontainer. If you want to set several search domains, youshould do it at once, so use <b>--top: 1em"searchdomain</b> optionmultiple times in one call to <b>vzctl</b>The following, as all theoptions sets barrier and limit for various usersearch domain values set in previous calls to <b>vzctl</b>beancountersare overwritten.</p>
<p style="margin-left:1117%; margin-top: 1em">Note that forA special valueVSwap-enabled kernels (version 042stab042 or greater) theselimits are optional, you must only set of <b>--raminherit</b> andcan be used to auto-propagate searchdomain value(s) from the host system&rsquo;s<b>--swap/etc/resolv.conf</b> (see above). For older kernels, these limitsare obligatoryfile.</p>
<p style="margin-left:11%; margin-top: 1em">Each optionrequires one or two arguments. In case of one argument,<b>vzctl--netif_add</b> sets barrier and limit to the same value. Incase of two colon-separated arguments<i>ifname[</i>, the first is abarrier<i>mac</i>, and the second is a limit. Each argument is eithera number<i>host_ifname</i>, a number with a suffix<i>host_mac</i>, or a special value<bi>unlimitedbridge]</bi>.</p>
<p style="margin-left:1117%; margin-top: 1em">Arguments areAdds a virtual Ethernet device(veth) to a given container. Here <i>ifname</i> is theEthernet device name in itemsthe container, pages or bytes. Note that page size <i>mac</i> isits MACarchitecture-specificaddress, it <i>host_ifname</i> is 4096 bytes the Ethernet device name on x86 the host, and x86_64<i>host_mac</i> is its MAC address. MACplatformsaddresses should be in the format like XX:XX:XX:XX:XX:XX.<i>bridge</i> is an optional parameter which can be used incustom network start scripts to automatically add theinterface to a bridge. All parameters except <i>ifname</i>are optional and are automatically generated if notspecified.</p> <p style="margin-left:11%;"><b>--netif_del</b><i>dev_name</i> | <b>all</b></p>
<p style="margin-left:1117%; margin-top: 1em">You can alsoRemoves virtual Ethernet devicespecify different suffixes for <b>set</b> parameters (exceptfor the parameters which names start with <b>num</b>)from a container. ForexampleIf you want to remove all devices, <b>vzctl set</b> <i>CTID</i> <b>--privvmpagesuse5M:6M</b> should set <b>privvmpagesall</b>&rsquo; barrier to 5megabytes and its limit to 6 megabytes.</p>
<p style="margin-left:11%; margin-top: 1em">Availablesuffixes are:</p>=== veth interface configuration ====
<p style="margin-left:11%; margin-top: 1em">&bull;The following<b>T</b>, <b>t</b> options can be used to reconfigure the already- terabytes; <br>createdvirtual Ethernet interface. To select the interface to&bull; <b>G</b>configure, use <b>g</b> - gigabytes; <br>&bull; <b>M-ifname</b>, <bi>mname</bi> - megabytes; <br>&bull; <b>K</b>, option. <b>k</b> - kilobytes; <br>&bull; <b>P</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>&bull; <b>Bmac</b>, <bi>bXX:XX:XX:XX:XX:XX</bi> - bytes.</p>
<p style="margin-left:1122%; margin-top: 1em">You can alsoMAC address of interface insidespecify the literal word <b>unlimited</b> in place of anumbercontainer. In that case the corresponding value will be set to<b>LONG_MAX</b>, i. e. the maximum possible value. <b><br>--numproc</b> <i>items</i>[:<i>items</i>]</p>
<p style="margin-left:2211%;">Maximum number of processes andkernel<b>--level threads. Setting the barrier and the limit tohost_ifname</b>different values does not make practical sense.<i>name</i></p>
<p style="margin-left:1122%;"><b>--numtcpsock</b>interface name for virtual<i>items</i>[:<i>items</i>]interface in the host system.</p>
<p style="margin-left:2211%;">Maximum number of TCP sockets.<b>--host_mac</b>This parameter limits the number of TCP connections and,thus, the number of clients the server application canhandle in parallel. Setting the barrier and the limit todifferent values does not make practical sense.<i>XX:XX:XX:XX:XX:XX</i></p>
<p style="margin-left:1122%;"><b>--numothersock</b>MAC address of interface in the<i>items</i>[:<i>items</i>]host system.</p>
<p style="margin-left:22%;margin-top: 1em">Maximum number of non-TCPsockets (local sockets, UDP and other types of sockets).If you want anSetting independent communication with the barrier and Container through the limit to different values doesnot make practical sensebridge, you should specify a multicast MAC address here(FE:FF:FF:FF:FF:FF).</p>
<p style="margin-left:11%;"><b>--vmguarpagesbridge</b><i>pagesname</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">Memory allocation guaranteeBridge name.Custom networkThis parameter controls how much memory is available start scripts can use this value to acontainer. The barrier is automatically add the amount of memory thatcontainer&rsquo;s applications are guaranteed interface to be able toallocate. The meaning of the limit is currently unspecified;it should be set to <b>unlimited</b>a bridge.</p>
<p style="margin-left:11%;"><b>--kmemsizemac_filter on</b>|<ib>bytesoff</i>[:<i>bytes</ib>]</p>
<p style="margin-left:22%;">Maximum amount Enables/disables MAC addressfiltering for the Container veth device and the possibilityof configuring the MAC address of kernel memorythis device from insideusedthe Container. This parameter If the filtering is related to turned on: <bbr>--numproc</b>. Eachprocess consumes certain amount of kernel memory - 16 KB atleast, 30-50 KB typically. Very large processes may consume&bull; the veth device accepts only those packets that havea bit more. It is important MAC address in their headers corresponding to have a certain safety gapbetween the barrier and the limit that of this parameter: equalbarrier device (excluding all broadcast and limit may lead to the situation where the kernelmulticast packets); <br>will need to kill container&rsquobull;s applications it is impossible to keep modify theveth MAC address frominside the Container.<b/p>kmemsize </bp style="margin-left:22%; margin-top: 1em"> usage under By default,this functionality is enabled for all veth devices existinginside the limitContainer.</p>
<p style="margin-left:11%;"><b>--tcpsndbuf</b><i>bytes</i>[:<i>bytes</i>]</p>=== VSwap limits ====
<p style="margin-left:2211%;margin-top: 1em">Maximum size of TCP sendThe followingbuffers. Barrier should be not less than 64 KB, options sets memory andswap limits for VSwap-enableddifference between barrier and limit should be equal to kernels (kernel version 042stab042 ormore than value of <b>numtcpsock</b> multiplied by 2.5KBgreater).</p>
<p style="margin-left:11%;margin-top: 1em"><b>--tcprcvbuf</b>Argument is in<i>bytes</i>[, unless otherwise specified by an optional suffix.Available suffixes are:<i>bytes</i>]</p>
<p style="margin-left:11%; margin-top: 1em">&bull;<b>T</b>, <b>t</b> - terabytes; <br>&bull; <b>G</b>, <b>g</b> - gigabytes; <br>&bull; <b>M</b>, <b>m</b> - megabytes; <br>&bull; <b>K</b>, <b>k</b> - kilobytes; <br>&bull; <b>P</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>&bull; <b>B</b>, <b>b</b> - bytes (this is the default).<b><br>--ram</b> <i>bytes</i></p> <p style="margin-left:22%;">Maximum size of TCP receiveSets physical memory (RAM)buffersavailable to a container. Barrier should be not less than 64 KBActually, andthe option is a shortcutdifference between for setting <b>--physpages</b> limit (the barrier and limit should be equal is set to ormore than value of 0).</p> <p style="margin-left:11%;"><b>numtcpsock--swap</b> multiplied by 2.5KB.<i>bytes</i></p>
<p style="margin-left:1122%;">Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>--othersockbufswappages</b><i>bytes</i>[:<i>bytes</i>]limit (the barrier is set to 0).</p>
<p style="margin-left:2211%;">Maximum size of other (non<b>-TCP)socket send buffers. If container&rsquo;s processes needs tosend very large datagrams, the barrier should be setaccordingly. Increased limit is necessary for highperformance of communications through local (UNIX-domain)vm_overcommit</b>sockets.<i>float</i></p>
<p style="margin-left:1122%;">Set VM overcommitment value to<bi>--dgramrcvbuffloat</bi>. If set, it is used to calculate<ib>bytesprivmmpages</ib>[:parameter in case it is not setexplicitly (see below). Default value is <ib>bytes0</ib>], meaningunlimited privvmpages.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size of other (non-TCP)<b>vzctl</b>checks if running kernel is VSwap capable, and refuses tosocket receive buffersuse these parameters otherwise. If container&rsquo;s processes needsto receive very large datagrams, the barrier should This behavior can be setaccordingly. The difference between the barrier and theoverriden by using <b>--force</b> flag beforelimit is not neededparameters.</p>
<p style="margin-left:11%;margin-top: 1em"><b>--oomguarpages</b>In VSwap mode,all beancounters other than RAM and swap become optional.Note though that if some optional beancounters are not set,they are calculated and set by vzctl implicitly, using the<i>pages</i>[following formulae:<i>pages</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Guarantees against OOM kill.Under this beancounter the kernel accounts the total amountof memory and swap space used by the container<b>&rsquobull;sprocesseslockedpages. The barrier of this parameter is theout-of-memory guarantee= oomguarpages. If the <b>oomguarpages</b> usage isbelow the barrier, processes of this container areguaranteed not to be killed in out-of-memory situations. Themeaning of limit is currently unspecified; it should be setto <b>unlimited= ram</b>.</p>
<p style="margin-left:11%;margin-top: 1em"><b>--&bull;lockedpages.limit = oomguarpages.limit = unlimited</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of pagesacquired by <b>mlock&bull;vmguarpages.barrier = vmguarpages.limit = ram + swap</b>(2).</p>
<p style="margin-left:11%;margin-top: 1em"><b>--&bull;privvmpages.barrier = privvmpages.limit = (ram + swap) *vm_overcommit</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Allows controlling the amountof memory allocated by the applications. For shared (mappedifas <b>MAP_SHAREDvm_overcommit</b>) pages, each container really using amemory page is charged for the fraction of the page(depending on the number of others using it). For&quot;potentially private&quot; pages (mapped as<b>MAP_PRIVATE0</b>), container is charged either for afraction of the size or for the full size if the allocatedaddress space. In the latter casenot set, the physical pagesassociated with the allocated address space may be inmemory, in swap or not physically allocated yet.<b>privvmpages</b> is set to &quot;unlimited&quot;)</p>
<p style="margin-left:2211%; margin-top: 1em">The barrier andHere is anthe limit example of this parameter control the upper boundary setting container 777 to have 512 megabytes ofthe total size RAM and 1 gigabyte of allocated memory. Note that this upperboundary does not guarantee that container will be able toallocate that much memory. The primary mechanism to controlmemory allocation is the <b>--vmguarpages</b> guarantee.swap:</p>
<p pre style="margin-left:11%;"><b> vzctl set 777 --ram 512M --swap 1G --shmpages</b><i>pages</i>[:<i>pages</i>]save</ppre>
<p style="margin-left:22%;">Maximum IPC SHM segment size.Setting the barrier and the limit to different values doesnot make practical sense.</p>=== User Beancounter limits ====
<p style="margin-left:11%;margin-top: 1em"><b>--numfile</b>The followingoptions sets barrier and limit for various user<i>items</i>[:<i>items</i>]beancounters.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of open files.Note that forVSwap-enabled kernels (version 042stab042 or greater) theseIn most cases the barrier and the limit should be limits are optional, you must only set to thesame value. Setting the barrier to <b>0--ram</b> effectivelyanddisables pre<b>--charging optimization for this beancounter inthe kernelswap</b> (see above). For older kernels, which leads to the held value being precise butthese limitscould slightly degrade file open performanceare obligatory.</p>
<p style="margin-left:11%;margin-top: 1em">Each optionrequires one or two arguments. In case of one argument,<b>--numflockvzctl</b>sets barrier and limit to the same value. Incase of two colon-separated arguments, the first is abarrier, and the second is a limit. Each argument is eithera number, a number with a suffix, or a special value<ib>itemsunlimited</i>[:<i>items</ib>].</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of file locksArguments arein items, pages or bytes.Note that page size isSafety gap should be between barrier architecture-specific, it is 4096 bytes on x86 and limitx86_64platforms.</p>
<p style="margin-left:11%;margin-top: 1em">You can alsospecify different suffixes for User Beancounter parameters(except for those which names start with <b>--numptynum</b>). Forexample, <b>vzctl set</b> <i>itemsCTID</i>[<b>--privvmpages5M:6M</b> should set <ib>itemsprivvmpages</ib>]&rsquo; barrier to 5megabytes and its limit to 6 megabytes.</p>
<p style="margin-left:2211%;margin-top: 1em">Number of pseudo-terminals(PTY). Note that in OpenVZ each container can have not morethan 255 PTYs. Setting the barrier and the limit toAvailabledifferent values does not make practical sense.suffixes are:</p>
<p style="margin-left:11%;margin-top: 1em">&bull;<b>T</b>, <b>t</b> - terabytes; <br>&bull; <b>G</b>, <b>g</b> - gigabytes; <br>&bull; <b>M</b>, <b>m</b>-megabytes; <br>&bull; <b>K</b>, <b>k</b> -numsiginfokilobytes; <br>&bull; <b>P</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>&bull; <ib>itemsB</ib>[:, <ib>itemsb</ib>]- bytes.</p>
<p style="margin-left:2211%;margin-top: 1em">Number You can alsospecify the literal word <b>unlimited</b> in place of siginfo structuresanumber.Setting In that case the barrier and the limit corresponding value will be set to different values doesnot make practical sense<b>LONG_MAX</b>, i. e. the maximum possible value.<b><br>--numproc</b> <i>items</i>[:<i>items</i>]</p>
<p style="margin-left:1122%;"><b>-Maximum number of processes andkernel-dcachesize</b>level threads. Setting the barrier and the limit to<i>bytes</i>[:<i>bytes</i>]different values does not make practical sense.</p>
<p style="margin-left:2211%;">Maximum size offilesystem<b>--related caches, such as directory entry and inodenumtcpsock</b>caches. Exists as a separate parameter to impose a limitcausing file operations to sense memory shortage and returnan errno to applications, protecting from memory shortagesduring critical operations that should not fail. Safety gapshould be between barrier and limit.<i>items</i>[:<i>items</i>]</p>
<p style="margin-left:22%;">Maximum number of TCP sockets.This parameter limits the number of TCP connections and,thus, the number of clients the server application canhandle in parallel. Setting the barrier and the limit todifferent values does not make practical sense.</p> <p style="margin-left:11%;"><b>--numiptentnumothersock</b><i>numitems</i>[:<i>numitems</i>]</p>
<p style="margin-left:22%;">Number Maximum number of iptables non-TCPsockets (netfilterlocal sockets, UDP and other types of sockets).entries. Setting the barrier and the limit to differentvalues does not make practical sense.</p>
<p style="margin-left:11%;"><b>--physpagesvmguarpages</b>
<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">On VSwap-enabled kernels, thisMemory allocation guarantee.limits the amount of physical This parameter controls how much memory (RAM) is available to acontainer. The barrier is the amount of memory thatcontainer&rsquo;s applications are guaranteed to be able toallocate. The meaning of the limit is currently unspecified;it should be set to <b>0unlimited</b>, and thelimit to a total size of RAM that can be used used by acontainer.</p>
<p style="margin-left:2211%; margin-top: 1em">For olderkernels, this is an accounting<b>--only parameter, showing theusage of RAM by this container. Barrier should be set tokmemsize</b><bi>0bytes</bi>, and limit should be set to [:<bi>unlimitedbytes</bi>.]</p>
<p style="margin-left:1122%;">Maximum amount of kernel memoryused. This parameter is related to <b>--swappagesnumproc</b>. Each<i>pages</i>[process consumes certain amount of kernel memory - 16 KB atleast, 30-50 KB typically. Very large processes may consumea bit more. It is important to have a certain safety gapbetween the barrier and the limit of this parameter:equalbarrier and limit may lead to the situation where the kernelwill need to kill container&rsquo;s applications to keep the<ib>pageskmemsize</ib>]usage under the limit.</p>
<p style="margin-left:2211%;">For VSwap-enabled kernels(042stab042 or greater), this parameter limits the amount ofswap space available to a container. The barrier should beset to <b>0--tcpsndbuf</b>, and the limit to a total size of swap thatcan be used by a container.<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%; margin-top: 1em">For olderMaximum size of TCP send(pre-VSwap) kernelsbuffers. Barrier should be not less than 64 KB, the anddifference between barrier and limit is used should be equal to show a totaloramount more than value of swap space available inside the container. Thebarrier of this parameter is ignored. The default value is<b>unlimitednumtcpsock</b>, meaning total swap will be reported asmultiplied by 2.50KB.</p>
<p style==== CPU fair scheduler parameters ===="margin-left:11%;"><b>--tcprcvbuf</b><i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:1122%; margin-top: 1em">TheseMaximum size of TCP receiveparameters control CPU usage by containerbuffers. Barrier should be not less than 64 KB, anddifference between barrier and limit should be equal to ormore than value of <b><br>--cpuunitsnumtcpsock</b> <i>num</i>multiplied by 2.5KB.</p>
<p style="margin-left:2211%;">CPU weight for a container.Argument is positive non-zero number, passed to and used inthe kernel fair scheduler. The larger the number is, themore CPU time this container gets. Maximum value is 500000,minimal is 8. Number is relative to weights of all the otherrunning containers. If <b>cpuunits--othersockbuf</b> are not specified,default value of 1000 is used.<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%; margin-top: 1em">You can set CPUweight for CT0 Maximum size of other (host system itselfnon-TCP) as well (use <b>vzctlsocket send buffers. If container&rsquo;s processes needs tosend very large datagrams, the barrier should be set 0 --cpuunits</b> <i>num</i>)accordingly. Usually, OpenVZ initscriptIncreased limit is necessary for highperformance of communications through local (<b>/etc/init.d/vz</b>UNIX-domain) takes care of setting thissockets.</p>
<p style="margin-left:11%;"><b>--cpulimitdgramrcvbuf</b><i>numbytes</i>[:<bi>%bytes</bi>]</p>
<p style="margin-left:22%;">Limit Maximum size of CPU usage for theother (non-TCP)socket receive buffers. If container&rsquo;s processes needsto receive very large datagrams, in per centthe barrier should be setaccordingly. Note if The difference between the barrier and the computer has 2 CPUs, ithas total of 200% CPU time. Default CPU limit is <b>0</b>(no CPU limit)not needed.</p>
<p style="margin-left:11%;"><b>--cpusoomguarpages</b> <i>numpages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">sets number Guarantees against OOM kill.Under this beancounter the kernel accounts the total amountof memory and swap space used by the container&rsquo;sprocesses. The barrier of this parameter is theout-of CPUs available-memory guarantee. If the <b>oomguarpages</b> usage isin below the barrier, processes of this containerareguaranteed not to be killed in out-of-memory situations. Themeaning of limit is currently unspecified; it should be setto <b>unlimited</b>.</p>
<p style="margin-left:11%;"><b>--cpumasklockedpages</b> <i>cpuspages</i> |[:<bi>allpages</bi>]</p>
<p style="margin-left:22%;">sets list Maximum number of allowed CPUs forpagesthe container. Input format is a comma-separated list ofdecimal numbers and ranges. Consecutively set bits are shownas two hyphen-separated decimal numbers, the smallest andlargest bit numbers set in the range. For example, if youwant the container to execute on CPUs 0, 1, 2, 7, you shouldpass acquired by <b>0-2,7</b>. Default value is <b>allmlock</b> (thecontainer can execute on any CPU2).</p>
<p style==== Memory output parameters ===="margin-left:11%;"><b>--privvmpages</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%; margin-top: 1em">Allows controlling the amountof memory allocated by the applications. Forshared (mappedVSwap-enabled kernels (042stab042 or greateras <b>MAP_SHARED</b>)pages, thiseach container really using aparameter memory page is ignored. For older kernels, it controls charged for the fraction of thepageoutput (depending on the number of /proc/meminfo inside a containerothers using it). For&quot;potentially private&quot; pages (mapped as<b><br>--meminfo noneMAP_PRIVATE</b>), container is charged either for afraction of the size or for the full size if the allocatedaddress space. In the latter case, the physical pagesassociated with the allocated address space may be inmemory, in swap or not physically allocated yet.</p>
<p style="margin-left:22%;margin-top: 1em">No /proc/meminfo virtualizationThe barrier andthe limit of this parameter control the upper boundary ofthe total size of allocated memory. Note that this upperboundary does not guarantee that container will be able toallocate that much memory. The primary mechanism to control(memory allocation is the same as on host system)<b>--vmguarpages</b> guarantee.</p>
<p style="margin-left:11%;"><b>--meminfoshmpages</b><i>modepages</i>[:<i>valuepages</i>]</p>
<p style="margin-left:22%;">Configure total memory outputin a containerMaximum IPC SHM segment size. Reported free memory is evaluatedaccordingly to Setting the barrier and the mode being set. Reported swap isevaluated according limit to the settings of <b>--swappages</b>different values doesparameternot make practical sense.</p>
<p style="margin-left:2211%; margin-top: 1em">You can use thefollowing modes for <i>mode</i>: <br>&bull; <b>pages--numfile</b>:<i>valueitems</i> - sets total memory inpages; <br>&bull; <b>privvmpages</b>[:<i>value</i> - sets total memoryas <b>privvmpages</b> * <i>valueitems</i>.]</p>
<p style="margin-left:22%; margin-top: 1em">Default isMaximum number of open files.In most cases the barrier and the limit should be set to thesame value. Setting the barrier to <b>privvmpages:10</b>effectivelydisables pre-charging optimization for this beancounter inthe kernel, which leads to the held value being precise butcould slightly degrade file open performance.</p>
<p style==== iptables control parameters ===="margin-left:11%;"><b>--numflock</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:1122%;"><b>--iptables</b>Maximum number of file locks.<i>name</i>Safety gap should be between barrier and limit.</p>
<p style="margin-left:2211%;">Allow to use the functionality<b>--numpty</b>of <i>nameitems</i> iptables module inside the container. Tospecify multiple [:<i>nameitems</i>s, repeat --iptables for each,or use space-separated list as an argument (enclosed insingle or double quotes to protect spaces).]</p>
<p style="margin-left:22%; margin-top: 1em">The defaultlist Number of enabled iptables modules is specified by thepseudo-terminals<b>IPTABLES</b> variable (PTY). Note that in [[Man/vzOpenVZ each container can have not morethan 255 PTYs.conf.5|<b>vz.conf</b>(5)]]Setting the barrier and the limit todifferent values does not make practical sense.</p>
<p style="margin-left:2211%; margin-top: 1em">You can use thefollowing values for <i>name</i>: <b>iptable_filter--numsiginfo</b>,<bi>iptable_mangleitems</bi>, [:<bi>ipt_limititems</b>,<b>ipt_multiport</b>, <b>ipt_tos</b>, <b>ipt_TOS</b>,<b>ipt_REJECT</b>, <b>ipt_TCPMSS</b>, <b>ipt_tcpmss</b>,<b>ipt_ttl</b>, <b>ipt_LOG</b>, <b>ipt_length</b>,<b>ip_conntrack</b>, <b>ip_conntrack_ftp</b>,<b>ip_conntrack_irc</b>, <b>ipt_conntrack</b>,<b>ipt_state</b>, <b>ipt_helper</b>, <b>iptable_nat</b>,<b>ip_nat_ftp</b>, <b>ip_nat_irc</b>, <b>ipt_REDIRECT</b>,<b>xt_mac</b>, <b>ipt_recent</b>, <b>ipt_owner</bi>.]</p>
<p style==== Network devices control parameters ===="margin-left:22%;">Number of siginfo structures.Setting the barrier and the limit to different values doesnot make practical sense.</p>
<p style="margin-left:11%;"><b>--netdev_adddcachesize</b><i>namebytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%;">move network device from theMaximum size offilesystem-related caches, such as directory entry and inodehost system caches. Exists as a separate parameter to impose a specified containerlimitcausing file operations to sense memory shortage and returnan errno to applications, protecting from memory shortagesduring critical operations that should not fail. Safety gapshould be between barrier and limit.</p>
<p style="margin-left:11%;"><b>--netdev_delnumiptent</b><i>namenum</i>[:<i>num</i>]</p>
<p style="margin-left:22%;">delete network device from aNumber of iptables (netfilter)specified containerentries. Setting the barrier and the limit to differentvalues does not make practical sense.</p>
<p style==== Disk quota parameters ===="margin-left:11%;"><b>--physpages</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%;"><b>On VSwap--diskquota yes</b> |enabled kernels, thislimits the amount of physical memory (RAM) available to acontainer. The barrier should be set to <b>no0</b>, and thelimit to a total size of RAM that can be used used by acontainer.</p>
<p style="margin-left:22%;margin-top: 1em">allows to enable or disableFor olderkernels, this is an accounting-only parameter, showing thedisk quota for a usage of RAM by this container. By default, a global valueBarrier should be set to(<b>DISK_QUOTA0</b>) from [[Man/vz.conf.5|, and limit should be set to <b>vz.confunlimited</b>(5)]] is used.</p>
<p style="margin-left:2211%; margin-top: 1em">Note that thisparameter is ignored for <b>ploop--swappages</b> layout.<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%;">For VSwap-enabled kernels(042stab042 or greater), this parameter limits the amount ofswap space available to a container. The barrier should beset to <b>--diskspace0</b>, and the limit to a total size of swap that<i>num</i>[:<i>num</i>]can be used by a container.</p>
<p style="margin-left:22%;margin-top: 1em">For older(pre-VSwap) kernels, the limit is used to show a totalamount of swap space available inside the container. Thebarrier of this parameter is ignored. The default value is<b>simfsunlimited</b> layout, setssoft and hard disk quota limits, in blocks. First parametermeaning total swap will be reported asis soft limit, second is hard limit. One block is currentlyequal to 1Kb0.</p>
<p style="margin-left:22%; margin-top: 1em">For<b>ploop</b> layout, sets the size of the ploop image file,in kilobytes.</p>=== CPU fair scheduler parameters ====
<p style="margin-left:2211%; margin-top: 1em">SuffixesTheseparameters control CPU usage by container. <b>G</bbr>, <b>M--cpuunits</b>, <bi>Knum</bi> can also be specified (see<b>Resource limits</b> section for more info onsuffixes).</p>
<p style="margin-left:1122%;">CPU weight for a container.Argument is positive non-zero number, passed to and used inthe kernel fair scheduler. The larger the number is, themore CPU time this container gets. Maximum value is 500000,minimal is 8. Number is relative to weights of all the otherrunning containers. If <b>--diskinodescpuunits</b>are not specified,<i>num</i>[:<i>num</i>]default value of 1000 is used.</p>
<p style="margin-left:22%;margin-top: 1em">sets soft and hard disk quotaYou can set CPUweight for CT0 (host system itself) as well (use <b>vzctllimits, in set 0 --cpuunits</b> <i>num</i-nodes>). First parameter is soft limitUsually, second isOpenVZ initscripthard limit(<b>/etc/init.d/vz</b>) takes care of setting this.</p>
<p style="margin-left:2211%; margin"><b>--top: 1em"cpulimit</b>Note that thisparameter is ignored for <i>num</i>[<b>ploop%</b> layout.]</p>
<p style="margin-left:1122%;">Limit of CPU usage for thecontainer, in per cent. Note if the computer has 2 CPUs, ithas total of 200% CPU time. Default CPU limit is <b>--quotatime0</b><i>seconds</i>(no CPU limit).</p>
<p style="margin-left:2211%;">sets quota grace period.Container is permitted to exceed its soft limits for thegrace period, but once it has expired, the soft limit isenforced as a hard limit.<b>--cpus</b> <i>num</i></p>
<p style="margin-left:22%; margin-top: 1em">Note that thissets number of CPUs availableparameter is ignored for <b>ploop</b> layoutin the container.</p>
<p style="margin-left:11%;"><b>--quotaugidlimitcpumask</b><i>numcpus</i> |<b>auto</b> | <b>all</b></p>
<p style="margin-left:22%;">sets maximum number Sets list ofallowed CPUs foruserthe container. Input format is a comma-separated list ofdecimal numbers and/group IDs or ranges. Consecutively set bits areshown as two hyphen-separated decimal numbers, the smallestand largest bit numbers set in a the range. For example, ifyou want the container for which disk quota insideto execute on CPUs 0, 1, 2, 7, youshould pass <b>0-2,7</b>. Default value is <b>all</b> (the container will be accountedcan execute on any CPU). If this value is set toused with the<b>0--nodemask</b>option, user and group quotas inside value of <b>auto</b> assigns allCPUs from the specified NUMA node to a container willnot be accounted.</p>
<p style="margin-left:2211%; margin"><b>-top: 1em"-nodemask</b> <i>nodes</i>Note that ifyou have previously set value of this parameter to | <b>0all</b>,changing it while the container is running will not takeeffect.</p>
<p style==== Mount "margin-left:22%;">Sets list of allowed NUMA nodesfor the container. Input format is the same as for<b>--cpumask</b>. Note that <b>--nodemask</b> must be usedwith the <b>--cpumask</b> option ====.</p>
<p style="margin-left:11%;"><b>--noatime yes</b> |<b>no</b></p>=== Memory output parameters ====
<p style="margin-left:2211%;margin-top: 1em">Sets noatime flag ForVSwap-enabled kernels (do not042stab042 or greater), thisparameter is ignored. For older kernels, it controls theupdate inode access times) on filesystemoutput of /proc/meminfo inside a container.<b><br>--meminfo none</b></p> <p style==== Capability option ===="margin-left:22%;">No /proc/meminfo virtualization(the same as on host system).</p>
<p style="margin-left:11%;"><b>--capabilitymeminfo</b><i>capnamemode</i>:<bi>onvalue</b>|<b>off</bi></p>
<p style="margin-left:22%;">Sets a capability for Configure total memory outputin acontainer. Note that setting capability when the containerReported free memory is running does not take immediate effect; restart theevaluatedcontainer in order for accordingly to the changes to take effectmode being set. Note aReported swap iscontainer has default set evaluated according to the settings of capabilities, thus any<b>--swappages</b>operation on capabilities is &quot;logical and&quot; withthe default capability maskparameter.</p>
<p style="margin-left:22%; margin-top: 1em">You can use the
following values modes for <i>capnamemode</i>: <b>chown</bbr>,&bull; <b>dac_overridepages</b>, :<bi>dac_read_searchvalue</b>, <b>fowner</bi>,- sets total memory inpages; <b>fsetid</b>, <b>kill</b>, <b>setgid</b>, <b>setuid</bbr>,&bull; <b>setpcapprivvmpages</b>, :<bi>linux_immutablevalue</bi>,- sets total memoryas <b>net_bind_serviceprivvmpages</b>, * <bi>net_broadcastvalue</bi>,<b>net_admin</b>, <b>net_raw</b>, <b>ipc_lock.</bp>,<b>ipc_owner</b>, <b>sys_module</b>, <b>sys_rawio</b>,<b>sys_chroot</b>, <b>sys_ptrace</b>, <b>sys_pacct</bp style="margin-left:22%; margin-top: 1em">,Default is<b>sys_admin</b>, <b>sys_boot</b>, <b>sys_nice</b>,<b>sys_resource</b>, <b>sys_time</b>, <b>sys_tty_config</b>,<b>mknod</b>, <b>lease</b>, <b>setveid</b>, <b>ve_admin</b>.For detailed description, see <b>capabilitiesprivvmpages:1</b>(7).</p>
<p style="margin-left:22%; margin-top: 1em"><b>WARNING</b>:setting some of those capabilities may have far reachingsecurity implications, so do not do it unless you know whatyou are doing. Also note that setting <b>setpcap:on</b> fora container will most probably lead to inability to startit.</p>=== Netfilter (iptables) control parameters ====
<p style==== Device access management ===="margin-left:11%;"><b>--netfilter&nbsp;disabled</b>|<b>stateless</b>|<b>stateful</b>|<b>full</b></p>
<p style="margin-left:1122%;">Restrict access tonetfilter/iptables modules for a container. This optionreplaces obsoleted <b>--devnodes</b><i>device</i>:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>noneiptables</b>.</p>
<p style="margin-left:22%;margin-top: 1em">Give the Note thatchanging this parameter requires container an accessrestart, so(<b>r</b> - read, <b>w</b> - write, <b>qconsider using </b> - disk quotamanagement, <b>none</b> - no access) to a device designatedby the special file /dev/<i>device</i>. Device file iscreated in a container by <b>vzctlsetmode</b>option. Example:</p>
<pre p style="margin-left:22%;margin-top: 1em"> vzctl set 777 --devnodes sdbThe followingarguments can be used:rwq<b><br>&bull; disabled</b></prep>
<p style="margin-left:1132%;"><b>--devicesb</b>|<b>c</b>:<i>major</i>:<i>minor</i>|<b>all</b>:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>none</b>no modules are allowed</p>
<p style="margin-left:22%;">Give the container an access toa <b>b&bull; stateless</b>lock or <b>c</b>haracter device designated by its<i>major</i> and <i>minor</i> numbers. Device file have tobe created manually.</p>
<p style==== PCI device management ===="margin-left:32%;">all modules except NAT andconntracks are allowed (i.e. filter and mangle); this is thedefault</p>
<p style="margin-left:1122%;"><b>--pci_add&bull; stateful</b>[<i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>func</i></p>
<p style="margin-left:2232%;">Give the container an access toa specified PCI device. All numbers all modules except NAT are hexadecimal (asprinted by <b>lspci</b>(8) in the first column).allowed</p>
<p styletable width="margin-left:11100%;" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><b>--pci_del</btr valign="top" align="left">[<itd width="22%">domain</itd>:]<i>bus</i>:<i>slot</i>.<i>func</i></ptd width="9%">
<p style><b>&bull; full</b></p></td><td width="margin-left:221%;">Delete a PCI device from the</td>container.</ptd width="36%">
<p style="margin-left:22%; margin-top: 1em">Note thatall modules are allowed<b/p>vps-pci</btd> configuration script is executed by<btd width="32%">vzctl</btd> then configuring PCI devices. The script isusually located at <b>/usr/lib[64]/vzctl/scripts/</btr>.</ptable>
<p style==== Features management ===="margin-left:11%;"><b>--iptables</b><i>name</i>[<b>,</b>...]</p>
<p style="margin-left:1122%;"><b>--featuresNote</b>this option is<i>name</i>:obsoleted, <b>on</b>|<b>off--netfilter</b>should be used instead.</p>
<p style="margin-left:22%;margin-top: 1em">Enable or disable a specificAllow to usecontainer feature. Known features are: the functionality of <bi>sysfsname</bi>,iptables module inside thecontainer. Multiple comma-separated <b>nfs</b>, <b>sit</b>, <b>ipip</bi>, <b>pppname</bi>,s can be<b>ipgre</b>, <b>bridge</b>, <b>nfsd</b>specified.</p>
<p style==== Apply config ===="margin-left:22%; margin-top: 1em">The defaultlist of enabled iptables modules is defined by the<b>IPTABLES</b> variable in [[Man/vz.conf.5|<b>vz.conf</b>(5)]].</p>
<p style="margin-left:1122%;margin-top: 1em">You can use thefollowing values for <i>name</i>: <b>--applyconfigiptable_filter</b>,<ib>nameiptable_mangle</ib>, <b>ipt_limit</pb>,<b>ipt_multiport</b>, <b>ipt_tos</b>, <b>ipt_TOS</b>,<p style="margin-left:22%;"b>ipt_REJECT</b>, <b>ipt_TCPMSS</b>, <b>ipt_tcpmss</b>Read container parameters fromthe container sample configuration file,<ttb>ipt_ttl</etcb>, <b>ipt_LOG</vzb>, <b>ipt_length</confb>,<b>ip_conntrack</ve-b>, <b>ip_conntrack_ftp</ttb>,<ib>nameip_conntrack_irc</ib>, <ttb>.conf-sampleipt_conntrack</ttb>,and apply them<b>ipt_state</b>, <b>ipt_helper</b>, if <b>--saveiptable_nat</b> option specified save to,the container config file. The following parameters are notchanged: <b>HOSTNAMEip_nat_ftp</b>, <b>ip_nat_irc</b>, <b>IP_ADDRESSipt_REDIRECT</b>,<b>OSTEMPLATExt_mac</b>, <b>VE_ROOTipt_recent</b>, and<b>VE_PRIVATEipt_owner</b>.</p>
<p style="margin-left:11%;"><b>--applyconfig_map</b><i>group</i></p>=== Network devices control parameters ====
<p style="margin-left:2211%;">Apply container configparameters selected by <ib>group--netdev_add</ib>. Now the only possiblevalue for <i>groupname</i> is <b>name</b>: to restore containername based on <b>NAME</b> variable in containerconfiguration file.</p>
<p style==== I"margin-left:22%;">move network device from thehost system to a specified container</O priority management ====p>
<p style="margin-left:11%;"><b>--ioprionetdev_del</b><i>priorityname</i></p>
<p style="margin-left:22%;">Assigns I/O priority todelete network device from aspecified container. <i>Priority</i> range is <b>0-7</b>. The greater<i>priority</i> is, the more time for I/O activity containerhas. By default each container has <i>priority</i> of<b>4</b>.</p>
=== Checkpointing and restore = Disk quota parameters ====
<p style="margin-topleft: 1em11%;">Checkpointing is a feature of<b>--diskquota yes</b> |OpenVZ kernel which allows to save a complete state of arunning container, and to restore it later.<b>no</b></p>
<p style="margin-left:1122%;">allows to enable or disabledisk quota for a container. By default, a global value(<b>chkpntDISK_QUOTA</b> <i>CTID<) from [[Man/i>[vz.conf.5|<b>--dumpfilevz.conf</b> <i>name</i>(5)]]is used.</p>
<p style="margin-left:1722%;margin-top: 1em">This command saves a completeNote that thisstate of a running container to a dump file, and stops thecontainer. If an option <b>--dumpfile</b> parameter is not set,default dump file name ignored for <b>/vz/dump/Dump.ploop</b><i>CTID</i> isusedlayout.</p>
<p style="margin-left:11%;"><b>restore--diskspace</b> <i>CTIDnum</i>[<b>--dumpfile</b> :<i>namenum</i>]</p>
<p style="margin-left:1722%;">This command restores acontainer from the dump file created by the For <b>chkpntsimfs</b>layout, setssoft and hard disk quota limits. First parameter is softcommandlimit, second is hard limit.</p>
<p style=== Snapshotting ==="margin-left:22%; margin-top: 1em">For<b>ploop</b> layout, initiates the procedure of resizing theploop image file to the new size. Since there is nosoft/hard limit concept in ploop, second <i>num</i>, ifspecified, is ignored.</p>
<p style="margin-left:22%; margin-top: 1em">Snapshotting By default,ploop resize is done online, i.e. on a feature basedon checkpointing and mounted ploop shapshots. It allows to save Thisis acomplete state preferred way of container file systemdoing resize. PlusAlthough, if thein a rare casea container is runningwas using lots of disk space and should now beresized to a much smaller size, it&rsquo;s in-memory state (as inan offline resize might becheckpointing)more appropriate. Note that snapshot functionality In this case, make sure the container is onlyworking for containers on ploop device.stopped and unmounted and use additional<b>--offline-resize</b> option</p>
<p style="margin-left:1122%;margin-top: 1em"><b>snapshot</b> |Note that ploopresize is NOT performed on container start, so forconsistency <b>snapshot-create-diskspace</b> <i>CTID</i> [must be used together with<b>--idsave</b><i>uuid</i>]flag.</p>
<p style="margin-left:1722%;margin-top: 1em">Creates a container snapshot.SuffixesIf <ib>uuidG</ib> is not specified, it is auto-generated. If acontainer is running<b>M</b>, it&rsquo;s checkpointed and then<b>K</b> can also be specified (seerestored<b>Resource limits</b> section for more info on suffixes). If a container suffix is not runningspecified, only file systemstate value is savedin kilobytes.</p>
<p style="margin-left:11%;"><b>snapshot-switch-diskinodes</b><i>CTIDnum</i> <b>--id</b> [:<i>uuidnum</i>]</p>
<p style="margin-left:1722%;">Switches the container to asets soft and hard disk quotasnapshot identified by <limits, in i>uuid</i>-nodes. Note that the currentcontainer state and its file system state First parameter is lost! If givensnapshot contains CT memory dumpsoft limit, it second is restored, otherwiseit is stoppedhard limit.</p>
<p style="margin-left:1122%;margin-top: 1em"><b>snapshot-delete</b>Note that this<i>CTID</i> parameter is ignored for <b>--idploop</b> <i>uuid</i>layout.</p>
<p style="margin-left:1711%;">Removes a specified<b>--quotatime</b>snapshot.<i>seconds</i></p>
<p style="margin-left:1122%;"><b>snapshot-list</b>sets quota grace period.Container is permitted to exceed its soft limits for thegrace period, but once it has expired, the soft limit is<i>CTID</i>enforced as a hard limit.</p>
<p style="margin-left:1722%;margin-top: 1em">Lists all snapshots. ActiveNote that thissnapshot parameter is marked with ignored for <b>*ploop</b> signlayout.</p>
<p style=== Performing container actions ==="margin-left:11%;"><b>--quotaugidlimit</b><i>num</i></p>
<table widthp style="100margin-left:22%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0;">Enables or disables<tr valign="top" align="left">in-container per-user and per-group disk quotas. If thevalue is set to <td width="11%"b>0</tdb>or not set, disk quotas inside thecontainer is disabled and not accounted.<td width="9%"/p>
<p style="margin-left:22%; margin-top: 1em">For<b>createsimfs</b><layout containers, non-zero value sets maximumnumber of user/p></td>group IDs for which disk quota is<td width="2%">accounted.</td><td width="78%"p>
<p style="margin-left:22%; margin-top: 1em"><i>CTID</i>For[<b>--ostemplate&nbsp;</b><i>name</i>][<b>--config&nbsp;ploop</b><i>name</i>][<b>--layout&nbsp;simfs</b>|<b>ploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b>|<b>raw</b>}]][<b>--diskspace&nbsp;</b><i>kbytes</i>][<b>containers, any non--private&nbsp;</b><i>path</i>]zero value enables[<b>--root&nbspdisk quota inside the container;</b><i>path<the number of user/i>]group[<b>--ipadd&nbsp;</b><i>addr</i>][<b>--hostname&nbsp;</b><i>name</i>][<b>--name&nbsp;</b><i>name</i>]IDs used by disk quota is not limited by OpenVZ.</p> </td></tr></table>
<p style="margin-left:1722%; margin-top: 1em">Creates a newNote thatenabling or disabling in-container disk quotas requirescontainer area. This operation should be done oncerestart, beforeso consider using <b>--setmode</b>the first start of the containeroption.</p>
<p style="margin-left:17%; margin-top: 1em">By default, anOS template denoted by <b>DEF_OSTEMPLATE</b> parameter of[[Man/vz.conf.5|<b>vz.conf</b>(5)]] is used to create a container. This can beoverwritten by <b>--ostemplate</b> === Capability option.</p>====
<p style="margin-left:1711%; margin-top: 1em">By default, anew container configuration file is created from a sampleconfiguration denoted by value of <b>CONFIGFILE--capability</b>parameter of [[Man<i>capname</i>:<b>on</vz.conf.5b>|<b>vz.confoff</b>[<b>,</b>(5)]]. If the containerconfiguration file already exists, it will not bemodified..]</p>
<p style="margin-left:1722%; margin-top: 1em">The value ofSets a capability for a<b>CONFIGFILE</b> can be overwritten by using the<b>-container. Multiple comma-config</b> <i>name</i> option. This option separated capabilities can not beused if the container configuration file already existsspecified.</p>
<p style="margin-left:1722%; margin-top: 1em">A new containerNote thatcan either be created using <b>simfs</b> filesystem or on setting acapability when the container is running does not<b>ploop</b> device. The default is set by value oftake immediate effect; restart the container in order for<b>VE_LAYOUT</b> parameter of [[Man/vz.conf.5|<b>vz.conf</b>the changes to take effect (5)]] and can beoverwritten by consider using <b>--layoutsetmode</b> option. In case <b>ploop</b>is used, one can additionally specify ploop disk imageformat 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 isnot supported).</p>
<p style="margin-left:1722%; margin-top: 1em">You can use<b>--diskspace</b> option to specify A container file systemhassize. Suffixes <b>G</b>the default set of capabilities, <b>M</b>, <b>K</b> can also bethus any operation onspecified (see <b>Resource limits</b> section for more infocapabilities is &quot;logical AND&quot; with the defaulton suffixes)capability mask.</p>
<p style="margin-left:1722%; margin-top: 1em">You can usethefollowing values for <i>capname</i>: <b>chown</b>,<b>dac_override</b>, <b>dac_read_search</b>, <b>fowner</b>,<b>fsetid</b>, <b>kill</b>, <b>setgid</b>, <b>setuid</b>,<b>setpcap</b>, <b>linux_immutable</b>,<b>net_bind_service</b>, <b>net_broadcast</b>,<b>net_admin</b>, <b>net_raw</b>, <b>ipc_lock</b>,<b>--rootipc_owner</b>, <b>sys_module</b>, <b>sys_rawio</b>,<b>sys_chroot</b>, <b>sys_ptrace</b> , <ib>pathsys_pacct</ib> option to sets the path to the,mount point for the container root directory (default is<b>sys_admin</b>, <b>sys_boot</b>, <b>sys_nice</b>,<b>VE_ROOTsys_resource</b> specified in [[Man, <b>sys_time</vz.conf.5|b>, <b>vz.confsys_tty_config</b>(5)]] file).,Argument can contain literal string <b>$VEIDmknod</b>, <b>lease</b>, <b>setveid</b>, which will<b>ve_admin</b>.be substituted with the numeric CT IDFor detailed description, see <b>capabilities</b>(7).</p>
<p style="margin-left:1722%; margin-top: 1em">You can use<b>--privateWARNING</b> <i>path</i> option to set the path to:setting some of those capabilities may have far reachingdirectory in which all the files and directories specific tosecurity implications, so do not do it unless you know whatthis very container you are stored (default is <b>VE_PRIVATE</b>specified in [[Man/vz.confdoing.5|Also note that setting <b>vz.confsetpcap:on</b>(5)]] file). Argument can containforliteral string <b>$VEID</b>, which a container will be substituted withmost probably lead to inability to startthe numeric CT IDit.</p>
<p style="margin-left:17%; margin-top: 1em">You can use<b>--ipadd</b> <i>addr</i> option to assign an IP address toa container. Note that this option can be used multipletimes.</p>=== Device access management ====
<p style="margin-left:1711%; margin-top: 1em">You can use<b>--hostnamedevnodes</b> <i>namedevice</i> option to set a host name fora container.:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>none</b></p>
<p style="margin-left:1122%;">Give the container an access(<b>r</b> - read, <b>w</b> - write, <b>destroyq</b> | - disk quotamanagement, <b>deletenone</b>- no access) to a device designatedby the special file /dev/<i>CTIDdevice</i>. Device file iscreated in a container by <b>vzctl</b>. Example:</p>
<p pre style="margin-left:1722%;">Removes a container privatearea by deleting all files, directories and theconfiguration file of this container. vzctl set 777 --devnodes sdb:rwq</ppre>
<p style="margin-left:11%;"><b>start--devicesb</b>|<b>c</b> :<i>CTIDmajor</i>:<i>minor</i>|<b>all</b>:[<b>r</b>][<b>--waitw</b>] [<b>--forceq</b>]|<b>none</b></p>
<p style="margin-left:1722%;">Mounts (if necessary) andGive the container an access tostarts a container. Unless <b>--waitb</b> option isspecified, lock or <b>vzctlc</b> will return immediately; otherwiseharacter device designated by itsan attempt to wait till the default runlevel is reached willbe made by <bi>major</i> and <i>vzctlminor</bi>numbers. Device file have tobe created manually.</p>
<p style="margin-left:17%; margin-top: 1em">Specify<b>--force</b> if you want to start a container which isdisabled (see <b>--disabled</b>).</p>=== PCI device management ====
<p style="margin-left:1711%; margin-top: 1em">Note that thiscommand can lead to execution of <b>premount--pci_add</b>,[<bi>mountdomain</bi> and :]<bi>startbus</bi> action scripts (see :<bi>ACTIONSCRIPTSslot</bi> below).<i>func</i></p>
<p style="margin-left:1122%;"><b>stop</b> <i>CTID</i>Give the container an access toa specified PCI device. All numbers are hexadecimal (as[printed by <b>--fastlspci</b>](8) in the first column).</p>
<p style="margin-left:1711%;">Stops and unmounts a container.Normally, <b>halt--pci_del</b>(8) is executed inside a container;option [<bi>--fastdomain</bi> makes :]<bi>vzctlbus</bi> use :<bi>rebootslot</bi>(2)syscall instead which is faster but can lead to uncleancontainer shutdown.<i>func</i></p>
<p style="margin-left:1722%; margin-top: 1em">Note that thisDelete a PCI device from thecommand can lead to execution of <b>stop</b>, <b>umount</b>and <b>postumount</b> action scripts (see <b>ACTIONSCRIPTS</b> below)container.</p>
<p style="margin-left:1122%;margin-top: 1em">Note that<b>restartvps-pci</b> <i>CTID</i>configuration script is executed by[<b>--waitvzctl</b>] [then configuring PCI devices. The script isusually located at <b>--force</b>] [<b>--fastusr/libexec/vzctl/scripts/</b>].</p>
<p style="margin-left:17%;">Restarts a container, i.e.stops it if it is running, and starts again. Accepts all the<b>start</b> and <b>stop</b> options.</p>=== Features management ====
<p style="margin-left:1711%; margin"><b>-top-features</b><i>name</i>: 1em"<b>on</b>|<b>off</b>Note that thiscommand can lead to execution of some action scripts (see[<b>ACTION SCRIPTS,</b> below)...]</p>
<p style="margin-left:1122%;">Enable or disable a specificcontainer feature. Known features are: <b>statussysfs</b> ,<ib>nfs</b>, <b>sit</b>, <b>ipip</b>, <b>ppp</b>,<b>ipgre</b>, <b>CTIDbridge</ib>, <b>nfsd</b>. A few features canbe specified at once, comma-separated.</p>
<p style="margin-left:17%;">Shows a container status. Thisis a line with five or six words, separated by spaces.</p>=== Apply config ====
<p style="margin-left:1711%; margin-top: 1em">First word isliterally <b>CTID--applyconfig</b>.<i>name</i></p>
<p style="margin-left:1722%; margin-top: 1em">Second word isRead container parameters fromthe numeric container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>CT IDname</i><tt>.conf-sample</tt>,and apply them, if <b>--save</b> option specified save tothe container config file. The following parameters are notchanged: <b>HOSTNAME</b>, <b>IP_ADDRESS</b>,<b>OSTEMPLATE</b>, <b>VE_ROOT</b>, and<b>VE_PRIVATE</b>.</p> <p style="margin-left:1711%; margin-top: 1em">Third word isshowing whether this container exists or not, it can beeither <b>exist--applyconfig_map</b> or <bi>deletedgroup</bi>.</p>
<p style="margin-left:1722%; margin-top: 1em">Fourth word isApply container configshowing parameters selected by <i>group</i>. Now the status of the container filesystem, it can beonly possibleeither value for <i>group</i> is <b>mountedname</b> or : to restore containername based on <b>unmountedNAME</b>variable in containerconfiguration file.</p>
<p style="margin-left:17%; margin-top: 1em">Fifth wordshows if the container is running, it can be either<b>running<=== I/b> or <b>down</b>.</p>O scheduling ====
<p style="margin-left:1711%; margin-top: 1em">Sixth word, ifexists, is <b>suspended--ioprio</b>. It appears if both a containerand its dump file exist (see <bi>chkpntpriority</bi>).</p>
<p style="margin-left:1722%; margin">Assigns disk I/O priority tocontainer. <i>Priority</i> range is <b>0-top: 1em"7</b>. The greater<i>priority</i> is, the more time for I/O activity containerhas. By default each container has <i>priority</i>This commandofcan also be usable from scripts<b>4</b>.</p>
<p style="margin-left:11%;"><b>mount--iolimit</b> <i>CTIDlimit</i>[<b>B</b>|<b>K</b>|<b>M</b>|<b>G</b>]</p>
<p style="margin-left:1722%;">Mounts Assigns disk I/O bandwidthlimit for a container private area.Value is either a number with anNote that this command can lead to execution ofoptional suffix, or a literal string <b>premountunlimited</b> and . Valueof <b>mount0</b> action scripts (seemeans &quot;unlimited&quot;. By default a<b>ACTION SCRIPTS<container has no I/b> below)O limit. Maximum allowed limit is 2gigabytes per second; values exceeding the limit aretruncated.</p>
<p style="margin-left:1122%;margin-top: 1em">If no suffix isprovided, the <i>limit</i> is assumed to be in megabytes persecond. Available suffixes are: <br>&bull; <b>b</b>, <b>B</b> -- bytes per second; <br>&bull; <b>k</b>, <b>K</b> -- kilobytes per second; <br>&bull; <b>umountm</b> , <ib>M</b> -- megabytes per second (default);<br>&bull; <b>g</b>, <b>CTIDG</ib>-- gigabytes per second;</p>
<p style="margin-left:1711%;">Unmounts container privatearea. Note that this command can lead to execution of<b>umount--iopslimit</b> and <b>postumount</b> action scripts (see<bi>ACTION SCRIPTSiops</bi> below).</p>
<p style="margin-left:1722%; margin-top: 1em">Note thatAssigns IOPS limit for acontainer, in number of input/output operations per second.Value is a number or a literal string <b>stopunlimited</b> does .Value of <b>umount0</b> automaticallymeans &quot;unlimited&quot;. By default acontainer has no IOPS limit.</p>
<p style="margin-left:11%;"><b>convert</b> <i>CTID</i>[<b>--layoutploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b>|<b>raw</b>}]]</p>== Suspending and resuming ===
<p style="margin-lefttop:17%;1em">Convert CT private area Checkpointing is a feature ofOpenVZ kernel which allows toreside on save a ploop device (available complete in -kernel version042stab052.8 and greater). Conversion should be performedwhen state of a running container is stopped, plus disk space quota should besetand to restore it later.</p>
<p style="margin-left:11%;"><b>quotaonsuspend</b> |<b>chkpnt</b><i>CTID</i>[<b>--dumpfile</b> <i>name</i>]</p>
<p style="margin-left:17%;">Turn disk quota on. Not thatThis command suspends acontainer to a dump file If an option <b>mount--dumpfile</b> and isnot set, default dump file name<b>start/vz/dump/Dump.</b> does that automatically<i>CTID</i> is used.</p>
<p style="margin-left:11%;"><b>quotaoffresume</b> |<b>restore</b><i>CTID</i>[<b>--dumpfile</b> <i>name</i>]</p>
<p style="margin-left:17%;">Turn disk quota off. Not thatThis command restores acontainer from the dump file created by the <b>umountsuspend</b> and <b>stop</b> does that automaticallycommand.</p>
<p style="margin-left:11%;"><b>quotainit</b><i>CTID</i></p>== Snapshotting ===
<p style="margin-top: 1em">Snapshotting is a feature basedon checkpointing and ploop shapshots. It allows to save acomplete state of container file system. Plus, if thecontainer is running, it&rsquo;s in-memory state (as incheckpointing). Note that snapshot functionality is onlyworking for containers on ploop device.</p> <p style="margin-left:1711%;">Initialize disk quota (<b>snapshot</b> <i>CTID</i>[<b>--id</b> <i>uuid</i>] [<b>--name</b> <i>name</i.e. run>][<b>vzquota init--description</b>) with the parameters taken from the CT<i>desc</i>] <br>configuration file [<b>--skip-suspend</b>] [Man<b>--skip-config</ctidb>]</p> <p style="margin-left:17%;">Creates a container snapshot,i.confe. saves the current container state, including its filesystem state, running processes state, and configurationfile.5|</p> <p style="margin-left:17%; margin-top: 1em">If a containeris running, and <b>ctid.conf--skip-suspend</b>(5)]]option is notspecified, a container is checkpointed and then restored,and CT memory dump becomes the part of snapshot.</p>
<p style="margin-left:1117%;margin-top: 1em">Unless<b>exec--skip-config</b> <i>CTIDoption is given, containercommand</i>configuration file is saved to the snapshot.</p>
<p style="margin-left:17%;margin-top: 1em">Executes If <i>commanduuid</i> in acontainer. Environment variables are is not set inside thecontainer. Signal handlers may differ from default settingsspecified, it is auto-generated.OptionsIf <ib>command--name</ib> is and <b>--description</b>can be used tospecify the snapshot name and description, commands are read fromrespectively.stdinName is displayed by <b>snapshot-list</b>.</p>
<p style="margin-left:11%;"><b>exec2snapshot-switch</b> <i>CTID</i> [<b>--skip-resume</b> | <b>--must-resume</b>]command[<b>--skip-config</b>] <b><br>--id</b> <i>uuid</i></p>
<p style="margin-left:17%;">The same as <b>exec</b>, butSwitches the container to areturn code is that of snapshot identified by <i>commanduuid</i>, restoring its filesystem state, configuration (if available) and its runningstate (if available).</p>
<p style="margin-left:1117%;margin-top: 1em"><b>runscriptNote thatthe current state of a container (including its file systemstate and its configuration file) is lost!</b> <i>CTIDscript</i></p>
<p style="margin-left:17%;margin-top: 1em">Run specified shell script inOptionthe container. Argument <ib>script--skip-resume</ib> is used to ignore a CT memory dump file on the hostsystem which contents is read by vzctl and executed in thecontext of the container. For a running containersnapshot, thecommand jumps into as a result the container and executes the script.will end up beingFor in a stopped container, it enters the container, mountscontainer&rsquo;s root filesystem, executes the script, andunmounts CT root. In the latter case, the container is notreally started, no file systems other than root state (such same asif a snapshot has been takenwith <b>/proc--skip-suspend</b>) are mounted, no startup scripts are executedetc. Thus the environment in which the script is running isfar from normal and is only usable for very basicoperations.</p>
<p style="margin-left:1117%;margin-top: 1em"><b>enter</b> <i>CTID</i>If option[<b>--execmust-resume</b> <i>command</i> [<i>arg</i> ..is set, absense of a memory dump istreated as an error, and the inability to restore from thememory dump is treated as an error rather than warning.]]</p>
<p style="margin-left:17%;margin-top: 1em">Enters into a container (givinga container&rsquo;s root shell). This Option option is a back-doorfor host root only. The proper way to have CT root shell isto use <b>ssh--skip-config</b>(1)is used to ignore the CT configurationfile in a snapshot, i.e. the current configuration file willbe left as is.</p>
<p style="margin-left:1711%; margin-top: 1em">Option<b>snapshot--execdelete</b> is used to run <i>commandCTID</i> with argumentsafter entering into container. This is useful if command tobe run requires a terminal (so <b>vzctl exec--id</b> can not beused) and for some reason you can not use <bi>sshuuid</bi>(1).</p>
<p style="margin-left:17%; margin-top: 1em">You need to logRemoves a specifiedout manually from the shell to finish session (even if youspecified <b>--exec</b>)snapshot.</p>
<p style="margin-left:11%;"><b>consolesnapshot-mount</b> <i>CTID</i> <b>--id</b> <i>uuid</i> <b>--target</b><i>directory</i></p>
<p style="margin-left:17%;">Attach Mounts a snapshot specified by<i>uuid</i> to the container&rsquo;sconsolea <i>directory</i>. Note that the console is persistent, meaning it canbe attached to even if the container is not running, andthere is no automatic detachment when the container this mount isstoppedread-only.</p>
<p style="margin-left:1711%; margin-top: 1em">Type <b>Escsnapshot-umount</b>then <bi>.CTID</bi> to detach from the console. Type <b>Esc--id</b>then <bi>,uuid</b> to detach without killing anything. Note thatthese sequences are only recognized after <b>Enter</bi>.</p>
<p style=== Other options ==="margin-left:17%;">Unmounts a specifiedsnapshot.</p>
<p style="margin-left:11%;"><b>snapshot-list</b><i>CTID</i> [<b>-H</b>] [<b>-o</b><i>field</i>[,<i>field</i>...] [<b>-help-id</b><i>uuid</i>]</p>
<p style="margin-left:17%;">Prints help message with aList container&rsquo;sbrief list of possible optionssnapshots.</p>
<p style="margin-left:1117%;margin-top: 1em">You cansuppress displaying header using <b>--versionH</b>option.</p>
<p style="margin-left:17%;margin-top: 1em">Prints You can use the<b>vzctl-o</b>option to display only the specified<i>field</i>(s). List of available fields can be obtainedversionusing <b>-L</b> option.</p>
== ACTION SCRIPTS = Performing container actions ===
<p styletable width="margin-left:11100%; margin-top: 1em"><b>vzctl</b>border="0" rules="none" frame="void"has an ability to execute user-defined scripts when aspecific <b cellspacing="0" cellpadding="0">vzctl</b> command is run for a container. Thefollowing <btr valign="top" align="left">vzctl</b> commands can trigger execution ofaction scripts: <btd width="11%">start</btd>, <b>stop</b>, <b>restart</b>,<b>mount</b> and <b>umount</b>.</ptd width="9%">
<p style="margin-left:11%; margin-top: 1em">Action scriptsare located in the <b>/etc/vz/conf/create</b> directory. There areglobal and per-CT scripts. Global scripts have a literalprefix of <b/p>vps.</btd> and are executed for all containers.Per-CT scripts have a <itd width="2%">CTID</itd> numeric prefix and areexecuted for the given container only.</ptd width="78%">
<p style="margin-lefttop:11%1em"><i>CTID</i>[<b>--ostemplate&nbsp;</b><i>name</i>][<b>--config&nbsp; margin</b><i>name</i>][<b>--toplayout&nbsp;simfs</b>|<b>ploop</b>[<b>: 1em"</b>{<b>expanded</b>|<b>plain</b>|<b>raw</b>}]][<b>--diskspace&nbsp;</b><i>kbytes</i>][<b>--diskinodes&nbsp;</b><i>num</i>][<b>--private&nbsp;</b><i>path</i>][<b>--root&nbsp;</b><i>path</i>][<b>--ipadd&nbsp;</b><i>addr</i>Please note]scripts are executed in a host system (CT0) context, with[<b>--hostname&nbsp;</b><i>name</i>]the exception of [<b>.start--name&nbsp;</b> and <i>name</i>][<b>.stop--local_uid&nbsp;</b> scripts,<i>uid</i>]which are executed in a container context.[<b>--local_gid&nbsp;</b><i>gid</i>]</p> </td></tr></table>
<p style="margin-left:1117%; margin-top: 1em">The followingCreates a newaction scripts are currently defined: <b><br>vpscontainer area.premount</b>This operation should be done once, <i>CTID</i><b>beforethe first start of the container.premount</b></p>
<p style="margin-left:2217%;margin-top: 1em">Global and per-CT mount scriptsBy default, anOS template denoted by <b>DEF_OSTEMPLATE</b> parameter ofwhich are executed for [[Man/vz.conf.5|<b>vz.conf</b>(5)]] is used to create a container before it is mounted.This can beScripts are executed in the host system context, while a CTis not yet mounted or running. Global script, if exists, isexecuted firstoverwritten by <b>--ostemplate</b> option.</p>
<p style="margin-left:1117%;margin-top: 1em">By default, anew container configuration file is created from a sampleconfiguration denoted by value of <b>vps.mountCONFIGFILE</b>,<i>CTID<parameter of [[Man/i>vz.conf.5|<b>vz.mountconf</b>(5)]]. If the containerconfiguration file already exists, it will not bemodified.</p>
<p style="margin-left:2217%;margin-top: 1em">Global and per-CT mount scriptsThe value ofwhich are executed for a container right after it is<b>CONFIGFILE</b> can be overwritten by using themounted. Otherwise they are the same as <b>.premount--config</b><i>name</i> option. This option can not bescriptsused if the container configuration file already exists.</p>
<p style="margin-left:1117%;margin-top: 1em">A new containercan either be created using <ib>simfs</b> filesystem or on a<b>ploop</b> device. The default is set by value of<b>VE_LAYOUT</b> parameter of [[Man/vz.conf.5|<b>vz.conf</b>(5)]] and can beoverwritten by <b>--layout</b> option. In case <b>CTIDploop</ib>is used, one can additionally specify ploop disk imageformat after a colon. Possible ploop formats are<b>expanded</b>, <b>plain</b> and <b>raw</b>. Default is<b>expanded</b>.startUsing value other than <b>expanded</b>isnot recommended and is currently not supported.</p>
<p style="margin-left:2217%;margin-top: 1em">Right after You can use<b>vzctl--diskspace</b> hasand <b>--diskinodes</b> options tostarted a specify containerfile system size. Note that for<b>ploop</b> layout, it executes this script in a containeryou will not be able to change inodescontextvalue later.</p>
<p style="margin-left:1117%;margin-top: 1em">If<ib>CTIDDISKSPACE</ib>is not specified either in the sampleconfiguration file used for creation or in globalconfiguration file [[Man/vz.conf.5|<b>vz.stopconf</b>(5)]], <b>--diskspace</b>parameter is required for <b>ploop</b>layout.</p>
<p style="margin-left:2217%;margin-top: 1em">Right before Suffixes<b>vzctlG</b> has, <b>M</b>, <b>K</b> can also be specified (seestopped a container, it executes this script in a container<b>Resource limits</b> section for more info oncontextsuffixes).</p>
<p style="margin-left:1117%;margin-top: 1em">You can use<b>--root</b> <i>path</i> option to sets the path to themount point for the container root directory (default is<b>VE_ROOT</b> specified in [[Man/vz.conf.5|<b>vz.conf</b>vps(5)]] file).umountArgument can contain literal string <b>$VEID</b>,which willbe substituted with the numeric CT ID.</p> <p style="margin-left:17%; margin-top: 1em">You can use<b>--private</b> <i>CTIDpath</i>option to set the path todirectory in which all the files and directories specific tothis very container are stored (default is <b>VE_PRIVATE</b>specified in [[Man/vz.conf.5|<b>vz.conf</b>(5)]] file).umountArgument can containliteral string <b>$VEID</b>, which will be substituted withthe numeric CT ID.</p> <p style="margin-left:17%; margin-top: 1em">You can use<b>--ipadd</b> <i>addr</i> option to assign an IP address toa container. Note that this option can be used multipletimes.</p>
<p style="margin-left:2217%;margin-top: 1em">Global and perYou can use<b>-CT umountscripts which are executed for -hostname</b> <i>name</i> option to set a container before it isunmounted. Scripts are executed in the host system context,name forwhile a CT is mounted. Global script, if exists, is executedfirstcontainer.</p>
<p style="margin-left:1117%;margin-top: 1em">When runningwith an upstream Linux Kernel that supports user namespaces(&gt;= 3.8), the parameters <b>--local_uid</b> and<b>vps.postumount--local_gid</b>,can be used to select which <i>uid</i>and <i>CTIDgid</i>respectively will be used as a base user inthe host system. Note that user namespaces provide a 1:1mapping between container users and host users. If theseoptions are not specified, the values <b>LOCAL_UID</b>and<b>LOCAL_GID</b> from global configuration file[[Man/vz.conf.5|<b>vz.conf</b>(5)]] are used.postumountAn explicit <b>--local_uid</b>value of 0 will disable user namespace support, and run thecontainer as a privileged user. In this case,<b>--local_gid</b> is ignored.</p>
<p style="margin-left:2217%;margin-top: 1em">Global <b>Warning:</b>use <b>--local_uid</b> and per-CT umountscripts which are executed for a container right after it isunmounted. Otherwise they are the same as <b>.umount--local_gid</b>with care,scriptsspecially when migrating containers. In all situations, thecontainer&rsquo;s files in the filesystem needs to becorrectly owned by the host-side users.</p>
<p style="margin-left:11%; margin-top: 1em">The environmentpassed to all the <b>*mountdestroy</b> scripts is the standardenvironment of the parent (i.e. | <b>vzctldelete</b>) with twoadditional variables: <bi>$VEIDCTID</b> and <b>$VE_CONFFILE</bi>.The first one holds the ID of the container, and the secondone holds the full path to the container configuration file.If the script needs to get other CT configurationparameters, such as <b>$VE_ROOT</b>, it needs to get thosefrom global and per-CT configuration files.</p>
<p style="margin-left:1117%; margin-top: 1em">Here is anRemoves a container privateexample of a mount scriptarea by deleting all files, which makes host system&rsquo;sdirectories and the/mnt/disk available to configuration file of this container(s). Script name can eitherbe <b>/etc/vz/conf/vps.mount</b> or<b>/etc/vz/conf/</b><i>CTID</i><b>.mount</b>.</p>
<pre p style="margin-left:11%; margin-top: 1em"> # If one of these files does not exist then something<b>start</b> <i>CTID</i> # is really broken [ <b>--f wait</etcb>] [<b>--force</sysconfig/vz b>] || exit 1 [ <b>--f $VE_CONFFILE skip-fsck</b>] || exit 1 # Source both files. Note the order is important. . /etc/vz/vz.conf . $VE_CONFFILE SRC=/mnt/disk DST=/mnt/disk mount [<b>-n -t simfs $SRC ${VE_ROOT}${DST} skip-o $SRCremount</b>]</prep>
<p style== EXIT STATUS =="margin-left:17%;">Mounts (if necessary) andstarts a container. Unless <b>--wait</b> option isspecified, <b>vzctl</b> will return immediately; otherwisean attempt to wait till the default runlevel is reached willbe made by <b>vzctl</b>.</p> <p style="margin-left:1117%; margin-top: 1em">Returns 0 uponSpecifysuccess, or an appropriate error code in case of an<b>--force</b> if you want to start a container which iserror:disabled (see <b>--disabled</b>).</p>
<table widthp style="100margin-left:17%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="; margin-top" align="left: 1em">Specify<td width="11%"b>--skip-fsck</tdb>to skip fsck for ploop-based containerfilesystem (this option is used by vz initscript).<td width="4%"/p>
<p>1</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">By default, ifa container to be started happens to be already mounted, itis unmounted and mounted again. This behavior can be turnedoff by using <b>--skip-remount</tdb>flag.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Failed Note that thiscommand can lead to set a UBC parameterexecution of <b>premount</pb>,<b>mount</tdb>and <b>start</trb>action scripts (see <tr valign="top" align="left"b>ACTIONSCRIPTS<td width="11%"/b>below).</td><td width="4%"p>
<pstyle="margin-left:11%;">2<b>stop</pb> <i>CTID</tdi>[<b>--fast<td width="7%"/b>] [<b>--skip-umount</tdb>]<td width="78%"/p>
<pstyle="margin-left:17%;">Failed to set Stops a fair scheduler parametercontainer and unmountsit (unless <b>--skip-umount</pb> is given). Normally,<b>halt</tdb>(8) is executed inside a container; option<b>--fast</trb>makes <b>vzctl<tr valign="top" align="left"/b>use <td width="11%"b>reboot</tdb>(2)syscall instead which is faster but can lead to uncleancontainer shutdown.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Note that<b>3vzctl stop</pb> is not asyncronous, in other words vzctlwaits for container&rsquo;s init to exit (unless<b>--fast</b> is given), which can take up to a few minutes.Default wait timeout is 120 seconds; it can be changedglobally, by setting <b>STOP_TIMEOUT</tdb>in[[Man/vz.conf.5|<b>vz.conf</b>(5)]], or per container (<td width="7%"b>STOP_TIMEOUT</tdb>in[[Man/ctid.conf.5|<b>ctid.conf<td width="78%"/b>(5)]], see <b>--stop-timeout</b>).</p>
<pstyle="margin-left:17%; margin-top: 1em">Note that thiscommand can lead to execution of <b>Generic system errorstop</pb>, </tdb>umount</trb>and <tr valign="top" align="left"b>postumount</b>action scripts (see <td width="11%"b>ACTIONSCRIPTS</tdb>below).<td width="4%"/p>
<pstyle="margin-left:11%;">5<b>restart</pb> <i>CTID</tdi>[<b>--wait</b>] [<b>--force</b>] [<td width="7%"b>--fast</tdb>][<b>--skip-fsck<td width="78%"/b>]</p>
<pstyle="margin-left:17%;">The Restarts a container, i.e.stops it if it is running kernel is not an OpenVZ kernel (or some, and starts again. Accepts all theOpenVZ modules are not loaded)</pb>start</tdb>and </trb>stop<tr valign="top" align="left"><td width="11%"/b>options.</td><td width="4%"p>
<p>6</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">Note that thiscommand can lead to execution of some action scripts (see<b>ACTION SCRIPTS</tdb>below).<td width="78%"/p>
<pstyle="margin-left:11%;">Not enough system resources</pb>status</tdb></tri>CTID<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<p>7</p></td><td widthstyle="7margin-left:17%;">Shows a container status. Thisis a line with five or six words, separated by spaces.</td><td width="78%"p>
<p><b>ENV_CREATE</b> ioctl failed</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">First word isliterally <td width="11%"b>CTID</tdb>.<td width="4%"/p>
<p>8</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">Second word isthe numeric <i>CT ID</tdi>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Command executed by Third word isshowing whether this container exists or not, it can beeither <b>vzctl execexist</b> returned non-zeroexit codeor </pb>deleted</tdb>.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">9Fourth word isshowing the status of the container filesystem, it can beeither </pb>mounted</tdb>or <td width="7%"b>unmounted</tdb>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Container Fifth wordshows if the container is locked by another running, it can be either<b>vzctlrunning</b>invocationor </pb> down</tdb>.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">10Sixth word, ifexists, is </pb>suspended</tdb>. It appears if a dump fileexists for a stopped container (see <td width="7%"b>suspend</tdb>).<td width="78%"/p>
<p>Global OpenVZ configuration file [[Man/vz.conf.5|<b>vz.conf</b>(5)]] notfound</p> </td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">This command<td width="11%">can also be usable from scripts.</td><td width="4%"p>
<pstyle="margin-left:11%;">11</pb>mount</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">A vzctl helper script file not foundMounts container private area.Note that this command can lead to execution of</pb>premount</tdb>and </trb>mount<tr valign="top" align="left"/b>action scripts (see<td width="11%"b>ACTION SCRIPTS</tdb>below).<td width="4%"/p>
<pstyle="margin-left:11%;">12</pb>umount</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Permission deniedUnmounts container privatearea. Note that this command can lead to execution of</pb>umount</tdb>and </trb>postumount<tr valign="top" align="left"/b>action scripts (see<td width="11%"b>ACTION SCRIPTS</tdb>below).<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">13Note that</pb>stop</tdb>does <td width="7%"b>umount</tdb>automatically.<td width="78%"/p>
<pstyle="margin-left:11%;"><b>Capability setting failedconvert</pb></tdi>CTID</tri>[<tr valign="top" align="left"b>--layoutploop</b>[<b>:<td width="11%"/b>{<b>expanded</b>|<b>plain</b>|<b>raw</tdb>}]]<td width="4%"/p>
<p>14</p></td><td widthstyle="7margin-left:17%;">Convert CT private area toreside on a ploop device (available in kernel version042stab052.8 and greater). Conversion should be performedwhen a container is stopped, plus disk space quota should beset.</td><td width="78%"p>
<pstyle="margin-left:11%;">Container configuration file [[Man/ctid.conf.5|<b>ctid.confcompact</b>(5)]] notfound</pi> CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<p>15</p></td><td widthstyle="7margin-left:17%;">Compact container image. Thisonly makes sense for ploop layout.</td><td width="78%"p>
<pstyle="margin-left:11%;">Timeout on <b>vzctl execquotaon</b></pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">16Turn disk quota on. Not that</pb>mount</tdb>and <td width="7%"b>start</tdb>does that automatically.<td width="78%"/p>
<pstyle="margin-left:11%;">Error during <b>vzctl chkpntquotaoff</b></pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">17Turn disk quota off. Not that</pb>umount</tdb>and <td width="7%"b>stop</tdb>does that automatically.<td width="78%"/p>
<pstyle="margin-left:11%;">Error during <b>vzctl restorequotainit</b></pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">18Initialize disk quota (i.e. run</pb>vzquota init</tdb>) with the parameters taken from the CTconfiguration file [[Man/ctid.conf.5|<td width="7%"b>ctid.conf</tdb>(5)]].<td width="78%"/p>
<pstyle="margin-left:11%;">Error from <b>setluid()exec</b> syscall</pi>CTIDcommand</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">Executes <i>20command</pi> in acontainer. Environment variables are not set inside thecontainer. Signal handlers may differ from default settings.If <i>command</tdi>is <td width="7%"b>-</tdb>, commands are read fromstdin.<td width="78%"/p>
<pstyle="margin-left:11%;">Invalid command line parameter</pb>exec2</tdb></tri>CTIDcommand<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">21The same as </pb>exec</tdb>, butreturn code is that of <td width="7%"i>command</tdi>.<td width="78%"/p>
<pstyle="margin-left:11%;">Invalid value for command line parameter</pb>runscript</tdb></tri>CTIDscript<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">22Run specified shell script inthe container. Argument </pi>script</tdi>is a file on the hostsystem which contents is read by vzctl and executed in thecontext of the container. For a running container, thecommand jumps into the container and executes the script.For a stopped container, it enters the container, mountscontainer&rsquo;s root filesystem, executes the script, andunmounts CT root. In the latter case, the container is notreally started, no file systems other than root (such as<td width="7%"b>/proc</tdb>) are mounted, no startup scripts are executedetc. Thus the environment in which the script is running isfar from normal and is only usable for very basicoperations.<td width="78%"/p>
<pstyle="margin-left:11%;">Container root directory (<b>VE_ROOTenter</b>) not set<i>CTID</pi>[<b>--exec</tdb></tri>command<tr valign="top" align="left"/i>[<td width="11%"i>arg</tdi>...]]<td width="4%"/p>
<pstyle="margin-left:17%;">Enters into a container (givinga container&rsquo;s root shell). This option is a back-doorfor host root only. The proper way to have CT root shell isto use <b>23ssh</pb>(1).</tdp> <td widthp style="7margin-left:17%; margin-top: 1em">Option<b>--exec</tdb>is used to run <i>command</i> with argumentsafter entering into container. This is useful if command tobe run requires a terminal (so <b>vzctl exec</b> can not beused) and for some reason you can not use <td width="78%"b>ssh</b>(1).</p>
<pstyle="margin-left:17%; margin-top: 1em">Container private directory You need to logout manually from the shell to finish session (even if youspecified <b>VE_PRIVATE--exec</b>) notset.</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%">
<pstyle="margin-left:11%;"><b>24console</pb> <i>CTID</tdi>[<td width="7%"i>ttynum</tdi>]<td width="78%"/p>
<pstyle="margin-left:17%;">Attach to a container console.Optional <i>ttynum</i>Container template directory argument is tty number (such as<b>TEMPLATE4</b>) notsetfor </pb> tty4</tdb>), default is </trb>1<tr valign="top" align="left"/b>which is usedfor container&rsquo;s <td width="11%"b>/dev/console</tdb>.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">28Note theconsoles are persistent, meaning that: </pbr>&bull; it can be attached to even if the container is notrunning; </tdbr>&bull; there is no automatic detachment upon the containerstop; <td width="7%"br>&bull; detaching from the console leaves anything running inthis console as is.</td><td width="78%"p>
<pstyle="margin-left:17%; margin-top: 1em">Not all required UBC parameters The followingescape sequences are set, unable to startcontainerrecognized by </pb> vzctl console</tdb>.Note that these sequences are only recognized at thebeginning of a line.</trp> <tr valignp style="margin-left:17%; margin-top" align="left: 1em">&bull;<td width="11%"b>Esc</b> then <b>.</tdb>to detach from the console.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">29&bull;</pb>Esc</tdb>then <td width="7%"b>!</tdb>to kill anything running on theconsole (SAK). This is helpful when one expects a loginprompt but there isn&rsquo;t one.<td width="78%"/p>
<p>OS template is not specified, unable to createcontainer</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td widthOther options ==="4%">
<p>31</p></td><td widthstyle="7margin-left:11%;"><b>--help</tdb><td width="78%"/p>
<p>Container not running</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Prints help message with a<td width="11%">brief list of possible options.</td><td width="4%"p>
<p>32</p></td><td widthstyle="7margin-left:11%;"><b>--version</tdb><td width="78%"/p>
<p>Container already running</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Prints <td width="11%"b>vzctl</tdb>version.<td width="4%"/p>
<p>33</p></td><td width="7%"></td><td width="78%">ACTION SCRIPTS ==
<pstyle="margin-left:11%; margin-top: 1em">Unable <b>vzctl</b>has an ability to stop execute user-defined scripts when aspecific <b>vzctl</b> command is run for a container. Thefollowing <b>vzctl</pb> commands can trigger execution ofaction scripts: <b>start</b>, <b>stop</tdb>, <b>restart</trb>,<tr valign="top" align="left"b>mount</b>and <td width="11%"b>umount</tdb>.<td width="4%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Action scriptsare located in the <b>34/etc/vz/conf/</pb> directory. There areglobal and per-CT scripts. Global scripts have a literalprefix of <b>vps.</tdb>and are executed for all containers.Per-CT scripts have a <td width="7%"i>CTID</i><b>.</tdb>numeric prefix andare executed for the given container only.<td width="78%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Unable to add IP address to containerPlease notescripts are executed in a host system (CT0) context, withthe exception of <b>.start</pb> and <b>.stop</tdb>scripts,which are executed in a container context.</trp> <tr valignp style="margin-left:11%; margin-top: 1em" align="left">The followingaction scripts are currently defined: <b><br>vps.premount</b>, <i>CTID</i><td width="11%"b>.premount</tdb><td width="4%"/p>
<p>40</p></td><td widthstyle="7margin-left:22%;">Global and per-CT mount scriptswhich are executed for a container before it is mounted.Scripts are executed in the host system context, while a CTis not yet mounted or running. Global script, if exists, isexecuted first.</td><td width="78%"p>
<pstyle="margin-left:11%;">Container not mounted</pb>vps.mount</tdb>,</tri>CTID<tr valign="top" align="left"/i><td width="11%"b>.mount</tdb><td width="4%"/p>
<p>41</p></td><td widthstyle="7margin-left:22%;">Global and per-CT mount scriptswhich are executed for a container right after it ismounted. Otherwise they are the same as <b>.premount</tdb>scripts.<td width="78%"/p>
<pstyle="margin-left:11%;">Container already mounted</pi>CTID</tdi></trb>.start<tr valign="top" align="left"><td width="11%"/b></td><td width="4%"p>
<p>43</p></td><td widthstyle="7margin-left:22%;">Right after <b>vzctl</tdb>hasstarted a container, it executes this script in a containercontext.<td width="78%"/p>
<pstyle="margin-left:11%;">Container private area not found</pi>CTID</tdi></trb>.stop<tr valign="top" align="left"><td width="11%"/b></td><td width="4%"p>
<p>44</p></td><td widthstyle="7margin-left:22%;">Right before <b>vzctl</tdb>hasstopped a container, it executes this script in a containercontext.<td width="78%"/p>
<pstyle="margin-left:11%;">Container private area already exists</pb>vps.umount</tdb>,</tri>CTID<tr valign="top" align="left"/i><td width="11%"b>.umount</tdb><td width="4%"/p>
<p>46</p></td><td widthstyle="7margin-left:22%;">Global and per-CT umountscripts which are executed for a container before it isunmounted. Scripts are executed in the host system context,while a CT is mounted. Global script, if exists, is executedfirst.</td><td width="78%"p>
<pstyle="margin-left:11%;">Not enough disk space</pb>vps.postumount</tdb>,</tri>CTID<tr valign="top" align="left"/i><td width="11%"b>.postumount</tdb><td width="4%"/p>
<p>47</p></td><td widthstyle="7margin-left:22%;">Global and per-CT umountscripts which are executed for a container right after it isunmounted. Otherwise they are the same as <b>.umount</tdb>scripts.<td width="78%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Bad/broken container (The environmentpassed to all the <b>/sbin/init*mount</b> orscripts is the standardenvironment of the parent (i.e. <b>/bin/shvzctl</b> not found)with twoadditional variables: <b>$VEID</pb>and </tdb>$VE_CONFFILE</trb>.The first one holds the ID of the container, and the secondone holds the full path to the container configuration file.<tr valign="top" align="left">If the script needs to get other CT configurationparameters, such as <td width="11%"b>$VE_ROOT</tdb>, it needs to get thosefrom global and per-CT configuration files.<td width="4%"/p>
<pstyle="margin-left:11%; margin-top: 1em">48Here is anexample of a mount script, which makes host system&rsquo;s/mnt/disk available to container(s). Script name can eitherbe <b>/petc/vz/conf/vps.mount</b> or<b>/etc/vz/conf/</b><i>CTID</i><b>.mount</b>.</tdp> <td widthpre style="7margin-left:11%; margin-top: 1em"> # If one of these files does not exist then something # is really broken [ -f /etc/vz/vz.conf ] || exit 1 [ -f $VE_CONFFILE ] || exit 1 # Source both files. Note the order is important. . /etc/vz/vz.conf . $VE_CONFFILE SRC=/mnt/disk DST=/mnt/disk mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC</tdpre== EXIT STATUS == <td widthp style="78margin-left:11%; margin-top: 1em">Returns 0 uponsuccess, or an appropriate error code in case of anerror:</p>
<p>Unable to create a new container private area</p></td></trtable width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>491</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Failed to create set a new container root areaUBC parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>502</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Failed to mount containerset a fair scheduler parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>513</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to unmount containerGeneric system error</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>525</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to delete a containerThe running kernel is not an OpenVZ kernel (or someOpenVZ modules are not loaded)</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>536</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container private area not existNot enough system resources</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>607</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota onENV_CREATE</b> ioctl failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>618</p></td>
<td width="7%"></td>
<td width="78%">
<p>Command executed by <b>vzquota initvzctl exec</b> failedreturned non-zeroexit code</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>629</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container is locked by another <b>vzquota setlimitvzctl</b> failedinvocation</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6310</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter Global OpenVZ configuration file [[Man/vz.conf.5|<b>DISKSPACEvz.conf</b> (5)]] not setfound</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6411</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter <b>DISKINODES</b> A vzctl helper script file not setfound</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6512</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting second-level (ugid) quotaPermission denied</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6613</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota off</b> Capability setting failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6714</p></td>
<td width="7%"></td>
<td width="78%">
<p>ugid quota Container configuration file [[Man/ctid.conf.5|<b>ctid.conf</b>(5)]] not initializedfound</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7115</p></td>
<td width="7%"></td>
<td width="78%">
<p>Incorrect IP address formatTimeout on <b>vzctl exec</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7416</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error changing passwordduring <b>vzctl suspend</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7817</p></td>
<td width="7%"></td>
<td width="78%">
<p>IP address already in useError during <b>vzctl resume</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7918</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container action script returned an errorError from <b>setluid()</b> syscall</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8220</p></td>
<td width="7%"></td>
<td width="78%">
<p>Config file copying errorInvalid command line parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8621</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting devices (<b>--devices</b> or<b>--devnodes</b>)Invalid value for command line parameter</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8922</p></td>
<td width="7%"></td>
<td width="78%">
<p>IP address Container root directory (<b>VE_ROOT</b>) not availableset</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>9123</p></td>
<td width="7%"></td>
<td width="78%">
<p>OS template Container private directory (<b>VE_PRIVATE</b>) not foundset</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10024</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to find container IP addressContainer template directory (<b>TEMPLATE</b>) notset</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10428</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>VE_NETDEV</b> ioctl errorNot all required UBC parameters are set, unable to startcontainer</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10529</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container start disabledOS template is not specified, unable to createcontainer</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10631</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to set iptables on a Container not running container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10732</p></td>
<td width="7%"></td>
<td width="78%">
<p>Distribution-specific configuration file not foundContainer already running</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10933</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to apply a configstop container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>12934</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to set meminfo parameteradd IP address to container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13040</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting veth interfaceContainer not mounted</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13141</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting container nameContainer already mounted</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13343</p></td>
<td width="7%"></td>
<td width="78%">
<p>Waiting for container start failedContainer private area not found</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13944</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error saving container configuration fileContainer private area already exists</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>14846</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting container IO parameters (ioprio)Not enough disk space</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15047</p></td><td width="7%"></td><td width="78%"> <p>Bad/broken container (<b>/sbin/init</b> or<b>/bin/sh</b> not found)</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>48</p></td>
<td width="7%"></td>
<td width="78%">
<p>Ploop image file not foundUnable to create a new container private area</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15149</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error creating ploop imageUnable to create a new container root area</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15250</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error mounting ploop imageUnable to mount container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15351</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error unmounting ploop imageUnable to unmount container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15452</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to delete a container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>53</p></td><td width="7%"></td><td width="78%"> <p>Container private area not exist</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>60</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota on</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>61</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota init</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>62</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota setlimit</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>63</p></td><td width="7%"></td><td width="78%"> <p>Parameter <b>DISKSPACE</b> not set</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>64</p></td><td width="7%"></td><td width="78%"> <p>Parameter <b>DISKINODES</b> not set</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>65</p></td><td width="7%"></td><td width="78%"> <p>Error setting in-container disk quotas</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>66</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota off</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>67</p></td><td width="7%"></td><td width="78%"> <p>ugid quota not initialized</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>71</p></td><td width="7%"></td><td width="78%"> <p>Incorrect IP address format</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>74</p></td><td width="7%"></td><td width="78%"> <p>Error changing password</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>78</p></td><td width="7%"></td><td width="78%"> <p>IP address already in use</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>79</p></td><td width="7%"></td><td width="78%"> <p>Container action script returned an error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>82</p></td><td width="7%"></td><td width="78%"> <p>Config file copying error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>86</p></td><td width="7%"></td><td width="78%"> <p>Error setting devices (<b>--devices</b> or<b>--devnodes</b>)</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>89</p></td><td width="7%"></td><td width="78%"> <p>IP address not available</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>91</p></td><td width="7%"></td><td width="78%"> <p>OS template not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>99</p></td><td width="7%"></td><td width="78%"> <p>Ploop is not supported by either the running kernel orvzctl.</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>100</p></td><td width="7%"></td><td width="78%"> <p>Unable to find container IP address</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>104</p></td><td width="7%"></td><td width="78%"> <p><b>VE_NETDEV</b> ioctl error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>105</p></td><td width="7%"></td><td width="78%"> <p>Container start disabled</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>106</p></td><td width="7%"></td><td width="78%"> <p>Unable to set iptables on a running container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>107</p></td><td width="7%"></td><td width="78%"> <p>Distribution-specific configuration file not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>109</p></td><td width="7%"></td><td width="78%"> <p>Unable to apply a config</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>129</p></td><td width="7%"></td><td width="78%"> <p>Unable to set meminfo parameter</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>130</p></td><td width="7%"></td><td width="78%"> <p>Error setting veth interface</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>131</p></td><td width="7%"></td><td width="78%"> <p>Error setting container name</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>133</p></td><td width="7%"></td><td width="78%"> <p>Waiting for container start failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>139</p></td><td width="7%"></td><td width="78%"> <p>Error saving container configuration file</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>148</p></td><td width="7%"></td><td width="78%"> <p>Error setting container IO parameters (ioprio)</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>150</p></td><td width="7%"></td><td width="78%"> <p>Ploop image file not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>151</p></td><td width="7%"></td><td width="78%"> <p>Error creating ploop image</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>152</p></td><td width="7%"></td><td width="78%"> <p>Error mounting ploop image</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>153</p></td><td width="7%"></td><td width="78%"> <p>Error unmounting ploop image</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>154</p></td><td width="7%"></td><td width="78%"> <p>Error resizing ploop image</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>155</p></td><td width="7%"></td><td width="78%"> <p>Error converting container to ploop layout</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>156</p></td><td width="7%"></td><td width="78%"> <p>Error creating ploop snapshot</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>157</p></td><td width="7%"></td><td width="78%"> <p>Error merging ploop snapshot</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>158</p></td><td width="7%"></td><td width="78%"> <p>Error deleting ploop snapshot</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>159</p></td><td width="7%"></td><td width="78%"> <p>Error switching ploop snapshot</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>158166</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error deleting compacting ploop snapshotimage</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>159167</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error switching listing ploop snapshotsnapsots</p></td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2000-20112013, Parallels, Inc. Licensed under GNU GPL.</p>
2,253
edits

Navigation menu