Changes

Jump to: navigation, search

Man/vzctl.8

16,065 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 containershould be created before using this option. If you want to remove all devices, use</p> <p style="margin-left:11%;"><b>all--disabled yes</b> |<b>no</b>.</p>
<p style==== veth interface configuration ===="margin-left:17%;">Disable container start. Toforce the start of a disabled container, use <b>vzctl start--force</b>.</p>
<p style="margin-left:11%; margin-top: 1em">The followingoptions can be used to reconfigure the already-createdvirtual Ethernet interface. To select the interface toconfigure, use <b>--ifnamename</b> <i>name</i> option. <b><br>--mac</b> <i>XX:XX:XX:XX:XX:XX</i></p>
<p style="margin-left:2217%;">MAC address Add a name for a container. The<i>name</i> can later be used in subsequent calls to<b>vzctl</b> in place of interface inside<i>CTID</i>. Note this option cana containernot be used without <b>--save</b>.</p>
<p style="margin-left:11%;"><b>--host_ifnamedescription</b><i>namestring</i></p>
<p style="margin-left:2217%;">interface name Add a textual description for virtualainterface in the host systemcontainer.</p>
<p style="margin-left:11%;"><b>--host_macostemplate</b><i>XX:XX:XX:XX:XX:XXstring</i></p>
<p style="margin-left:2217%;">MAC address Sets a new value of interface <b>OSTEMPLATE</b> parameter in container configuration file[[Man/ctid.conf.5|<b>ctid.conf</b>(5)]]. Requires <b>--save</b> flag. Usefulafter a change/upgrade of a distribution running insidecontainer, as vzctl uses thevalue of OSTEMPLATE to runhost systemdistribution-specific scripts.</p>
<p style="margin-left:2211%; margin"><b>--stop-top: 1em"timeout</b>If you want anindependent communication with the Container through thebridge, you should specify a multicast MAC address here(FE:FF:FF:FF:FF:FF).<i>seconds</i></p>
<p style="margin-left:1117%;">Sets a time to wait forcontainer to stop on <b>--bridgevzctl stop</b> before forciblykilling it, in seconds. Note this option can not be usedwithout <ib>name--save</ib>flag.</p>
<p style="margin-left:2217%;margin-top: 1em">Bridge name. Custom networkstart scripts can use this Special value to automatically add theinterface of <b>0</b> means to a bridgeuse compiled-in default.</p>
<p style="margin-left:11%;"><b>--mac_filter on</b> |<b>off</b></p>=== Networking ====
<p style="margin-left:2211%;">Enables<b>--ipadd</disables MAC addressfiltering for the Container veth device and the possibilityof configuring the MAC address of this device from insidethe Container. If the filtering is turned on: b> <bri>&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); addr<br/i>&bull; it is impossible to modify the veth MAC address frominside the Container.</p>
<p style="margin-left:2217%; margin-top: 1em">By default,Adds an IP address <i>addr</i>to a given container. Address can optionally have a netmaskspecified in the CIDR notation (e.g. <b>10.1.2.3/25</b>).Note that this functionality option is enabled for all veth devices incremental, so <i>addr</i> areadded to already existinginside the Containerones.</p>
<p style==== VSwap limits ===="margin-left:11%;"><b>--ipdel</b> <i>addr</i> |<b>all</b></p>
<p style="margin-left:1117%; margin-top: 1em">The followingRemoves IP address <i>addr</i>from a container. If you want to remove all the addresses,options sets memory and swap limits for VSwapuse <b>--enabledkernels (kernel version 042stab042 or greater)ipdel all</b>.</p>
<p style="margin-left:11%; margin"><b>--top: 1em"hostname</b>Argument is inbytes, unless otherwise specified by an optional suffix.Available suffixes are:<i>name</i></p>
<p style="margin-left:1117%; margin-top: 1em">&bull;Sets container hostname.<b>Tvzctl</b>, <b>t</b> - terabytes; <br>writes it to the appropriate file inside a&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 container (archdistribution-specific,usually 4KBdependent); <br>&bull; <b>B</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>--physpagesnameserver</b> limit (the barrier is set to0).<i>addr</i></p>
<p style="margin-left:1117%;">Sets DNS server IP address fora container. If you want to set several nameservers, youshould do it at once, so use <b>--swapnameserver</b> optionmultiple times in one call to <ib>bytesvzctl</ib></p> <p style="margin-left:22%;">Set swap space available to acontainer. Actually, as all the option is a shortcut for settingnameserver values set in previous calls to <b>--swappagesvzctl</b> limit (the barrier is set to 0)areoverwritten.</p>
<p style="margin-left:1117%; margin-top: 1em">Here is anA special valueexample of setting container 777 <b>inherit</b> can be used to have 512 megabytes ofauto-propagate nameservervalue(s) from the host system&rsquo;sRAM and 1 gigabyte of swap:<b>/etc/resolv.conf</b> file.</p>
<pre p style="margin-left:11%;"> vzctl set 777 <b>--ram 512M --swap 1G --savesearchdomain</b><i>name</i></prep>
<p style==== User Beancounter limits ===="margin-left:17%;">Sets DNS search domains for acontainer. If you want to set several search domains, youshould do it at once, so use <b>--searchdomain</b> optionmultiple times in one call to <b>vzctl</b>, as all thesearch domain values set in previous calls to <b>vzctl</b>are overwritten.</p>
<p style="margin-left:1117%; margin-top: 1em">The followingA special valueoptions sets barrier and limit for various userof <b>inherit</b> can be used to auto-propagate searchbeancountersdomain value(s) from the host system&rsquo;s<b>/etc/resolv.conf</b> file.</p>
<p style="margin-left:11%; margin-top: 1em">Note that forVSwap-enabled kernels (version 042stab042 or greater) theselimits are optional, you must only set <b>--ramnetif_add</b> and<bi>ifname[</i>,<i>mac</i>,<i>host_ifname</i>,<i>--swaphost_mac</bi> (see above). For older kernels, these limitsare obligatory.<i>bridge]</i></p>
<p style="margin-left:1117%; margin-top: 1em">Each optionAdds a virtual Ethernet devicerequires one or two arguments(veth) to a given container. In case of one argumentHere <i>ifname</i> is theEthernet device name in the container,<i>mac</i> is its MACaddress, <bi>vzctlhost_ifname</bi> sets barrier and limit to is the same value. InEthernet device name oncase of two colon-separated argumentsthe host, the first and <i>host_mac</i> is aits MAC address. MACbarrier, and addresses should be in the second is a limitformat like XX:XX:XX:XX:XX:XX. Each argument <i>bridge</i> is eitheran optional parameter which can be used incustom network start scripts to automatically add theinterface to a number, a number with a suffix, or a special valuebridge. All parameters except <bi>unlimitedifname</bi>are optional and are automatically generated if notspecified.</p>
<p style="margin-left:11%; margin-top: 1em">Arguments arein items, pages or bytes. Note that page size isarchitecture<b>--specific, it is 4096 bytes on x86 and x86_64netif_del</b>platforms.<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 User Beancounter parameters(except for those 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 <b>--numprocturned on: </bbr>. 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 from<b>kmemsize</b> usage under inside the limitContainer.</p>
<p style="margin-left:1122%;margin-top: 1em"><b>--tcpsndbuf</b>By default,this functionality is enabled for all veth devices existing<i>bytes</i>[:<i>bytes</i>]inside the Container.</p>
<p style="margin-left:22%;">Maximum size of TCP sendbuffers. Barrier should be not less than 64 KB, anddifference between barrier and limit should be equal to ormore than value of <b>numtcpsock</b> multiplied by 2.5KB.</p>=== VSwap limits ====
<p style="margin-left:11%;margin-top: 1em"><b>The followingoptions sets memory and swap limits for VSwap--tcprcvbuf</b>enabled<i>bytes</i>[:<i>bytes</i>]kernels (kernel version 042stab042 or greater).</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size of TCP receiveArgument is inbuffers. Barrier should be not less than 64 KBbytes, anddifference between barrier and limit should be equal to ormore than value of <b>numtcpsock</b> multiplied unless otherwise specified by 2an optional suffix.5KB.Available 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> -othersockbufkilobytes; <br>&bull; <b>P</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>&bull; <b>B</b>, <ib>b</b>- bytes(this is the default).<b><br>--ram</ib>[:<i>bytes</i>]</p>
<p style="margin-left:22%;">Maximum size of other Sets physical memory (non-TCPRAM)socket send buffersavailable to a container. If container&rsquo;s processes needs tosend very large datagramsActually, the barrier should be setoption is a shortcutaccordingly. Increased for setting <b>--physpages</b> limit (the barrier is necessary for highset toperformance of communications through local (UNIX-domain0)sockets.</p>
<p style="margin-left:11%;"><b>--dgramrcvbufswap</b><i>bytes</i>[</p> <p style="margin-left:22%;">Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>--swappages</b> limit (the barrier is set to 0).</p> <p style="margin-left:11%;"><b>--vm_overcommit</b><i>bytesfloat</i>]</p>
<p style="margin-left:22%;">Maximum size of other (non-TCP)Set VM overcommitment value tosocket receive buffers<i>float</i>. If container&rsquo;s processes needsset, it is used to calculateto receive very large datagrams, the barrier should be <b>privmmpages</b> parameter in case it is not setaccordinglyexplicitly (see below). The difference between the barrier and theDefault value is <b>0</b>, meaninglimit is not neededunlimited privvmpages.</p>
<p style="margin-left:11%;margin-top: 1em"><b>--oomguarpagesvzctl</b>checks if running kernel is VSwap capable, and refuses touse these parameters otherwise. This behavior can beoverriden by using <ib>pages--force</ib>[:<i>pages</i>]flag beforeparameters.</p>
<p style="margin-left:2211%;margin-top: 1em">Guarantees against OOM kill.In VSwap mode,Under this beancounter the kernel accounts the total amountof memory all beancounters other than RAM and swap space used by the container&rsquo;sprocessesbecome optional. The barrier of this parameter is theout-of-memory guarantee. If the <b>oomguarpages</b> usage isbelow the barrier, processes of this container Note though that if some optional beancounters areguaranteed not to be killed in out-of-memory situations. Theset,meaning of limit is currently unspecified; it should be they are calculated and setby vzctl implicitly, using theto <b>unlimited</b>.following formulae:</p>
<p style="margin-left:11%;margin-top: 1em"><b>--&bull;lockedpages.barrier = oomguarpages.barrier = ram</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of pagesacquired by <b>mlock&bull;lockedpages.limit = oomguarpages.limit = unlimited</b>(2).</p>
<p style="margin-left:11%;margin-top: 1em"><b>--privvmpages&bull;vmguarpages.barrier = vmguarpages.limit = ram + swap</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 (mappedas <b>MAP_SHARED</b>) pages, each container really using amemory page is charged for the fraction of the page&bull;privvmpages.barrier = privvmpages.limit = (depending on the number of others using itram + swap). For*&quot;potentially private&quot; pages (mapped as<b>MAP_PRIVATEvm_overcommit</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:2211%; margin-top: 1em">The barrier and(ifthe limit of this parameter control the upper boundary ofthe total size of allocated memory. Note that this upperboundary does <b>vm_overcommit</b> is <b>0</b> or not guarantee that container will be able toset,allocate that much memory. The primary mechanism to controlmemory allocation is the <b>--vmguarpagesprivvmpages</b> guarantee.is set to &quot;unlimited&quot;)</p>
<p style="margin-left:11%;margin-top: 1em"><b>--shmpages</b>Here is anexample of setting container 777 to have 512 megabytes of<i>pages</i>[RAM and 1 gigabyte of swap:<i>pages</i>]</p>
<p pre style="margin-left:2211%;">Maximum IPC SHM segment size.Setting the barrier and the limit to different values doesnot make practical sense. vzctl set 777 --ram 512M --swap 1G --save</ppre>
<p style="margin-left:11%;"><b>--numfile</b><i>items</i>[:<i>items</i>]</p>=== User Beancounter limits ====
<p style="margin-left:2211%;margin-top: 1em">Maximum number of open files.The followingIn most cases the options sets barrier and the limit should be set to thesame value. Setting the barrier to <b>0</b> effectivelydisables pre-charging optimization for this beancounter inthe kernel, which leads to the held value being precise butvarious usercould slightly degrade file open performancebeancounters.</p>
<p style="margin-left:11%;margin-top: 1em">Note that forVSwap-enabled kernels (version 042stab042 or greater) theselimits are optional, you must only set <b>--numflockram</b>and<ib>items--swap</ib>[:<i>items</i>](see above). For older kernels, these limitsare obligatory.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number Each optionrequires one or two arguments. In case of file locksone argument,<b>vzctl</b> sets barrier and limit to the same value.Incase of two colon-separated arguments, the first is aSafety gap should be between barrier , and the second is a limit. Each argument is eithera number, a number with a suffix, or a special value<b>unlimited</b>.</p>
<p style="margin-left:11%;margin-top: 1em"><b>-Arguments arein items, pages or bytes. Note that page size isarchitecture-numpty</b>specific, it is 4096 bytes on x86 and x86_64<i>items</i>[:<i>items</i>]platforms.</p>
<p style="margin-left:2211%; margin-top: 1em">You can alsospecify different suffixes for User Beancounter parameters(except for those which names start with <b>num</b>). Forexample, <b>vzctl set</b> <i>CTID</i> <b>--privvmpages5M:6M</b> should set <b>privvmpages</b>&rsquo; barrier to 5megabytes and its limit to 6 megabytes.</p> <p style="margin-left:11%; margin-top: 1em">Availablesuffixes are:</p> <p style="margin-left:11%;margin-top: 1em">Number of pseudo&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> -terminalskilobytes; <br>&bull; <b>P</b>, <b>p</b> - memory pages (PTYarch-specific,usually 4KB); <br>&bull; <b>B</b>, <b>b</b> - bytes. Note </p> <p style="margin-left:11%; margin-top: 1em">You can alsospecify the literal word <b>unlimited</b> in place of anumber. In that in OpenVZ each container can have not morecase 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:22%;">Maximum number of processes andthan 255 PTYskernel-level threads. Setting the barrier and the limit to
different values does not make practical sense.</p>
<p style="margin-left:11%;"><b>--numsiginfonumtcpsock</b>
<i>items</i>[:<i>items</i>]</p>
<p style="margin-left:22%;">Number Maximum number of siginfo structuresTCP 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 to different values doesnot make practical sense.</p> <p style="margin-left:11%;"><b>--dcachesize</b><i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:2211%;">Maximum size offilesystem<b>--related caches, such as directory entry and inodenumothersock</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:1122%;"><b>Maximum number of non--numiptent</b>TCPsockets (local sockets, UDP and other types of sockets).Setting the barrier and the limit to different values does<i>num</i>[:<i>num</i>]not make practical sense.</p>
<p style="margin-left:22%;">Number of iptables (netfilter)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 CPUs availablein memory and swap space used by the container&rsquo;sprocesses.</p>The barrier of this parameter is the <p style="marginout-of-left:11%;">memory guarantee. If the <b>--cpumaskoomguarpages</b> <i>cpus</i> |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>allunlimited</b>.</p>
<p style="margin-left:2211%;">sets list of allowed CPUs forthe container. Input format is a comma<b>-separated list ofdecimal numbers and ranges. Consecutively set bits are shownas two hyphen-separated decimal numbers, the smallest andlockedpages</b>largest bit numbers set in the range. For example, if youwant the container to execute on CPUs 0, 1, 2, 7, you shouldpass <bi>0-2,7pages</bi>. Default value is [:<bi>allpages</bi> (thecontainer can execute on any CPU).]</p>
<p style==== Memory output parameters ===="margin-left:22%;">Maximum number of pagesacquired by <b>mlock</b>(2).</p>
<p style="margin-left:11%; margin-top: 1em">ForVSwap<b>--enabled kernels (042stab042 or greater), thisprivvmpages</b>parameter is ignored. For older kernels, it controls theoutput of /proc<i>pages</meminfo inside a container. <bi>[:<bri>--meminfo nonepages</bi>]</p>
<p style="margin-left:22%;">No Allows controlling the amountof memory allocated by the applications. For shared (mappedas <b>MAP_SHARED</proc/meminfo virtualizationb>) pages, each container really using amemory page is charged for the fraction of the page(depending on the same number of others using it). For&quot;potentially private&quot; pages (mapped as on host system<b>MAP_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:1122%;margin-top: 1em">The 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 controlmemory allocation is the <b>--meminfovmguarpages</b><i>mode</i>:<i>value</i>guarantee.</p>
<p style="margin-left:2211%;">Configure total memory outputin a container. Reported free memory is evaluatedaccordingly to the mode being set. Reported swap isevaluated according to the settings of <b>--swappagesshmpages</b>parameter.<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%; margin-top: 1em">You can use Maximum IPC SHM segment size.Setting thebarrier and the limit to different values doesfollowing modes for <i>mode</i>: <br>&bull; <b>pages</b>:<i>value</i> - sets total memory inpages; <br>&bull; <b>privvmpages</b>:<i>value</i> - sets total memoryas <b>privvmpages</b> * <i>value</i>not make practical sense.</p>
<p style="margin-left:2211%; margin"><b>-top: 1em"-numfile</b>Default is<bi>items</i>privvmpages[:1<i>items</bi>.]</p>
==== iptables control parameters ==== <p style="margin-left:1122%;">Maximum number of open files.In most cases the barrier and the limit should be set to thesame value. Setting the barrier to <b>--iptables0</b>effectivelydisables pre-charging optimization for this beancounter in<i>name</i>the kernel, which leads to the held value being precise butcould slightly degrade file open performance.</p>
<p style="margin-left:2211%;">Allow to use the functionality<b>--numflock</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 Maximum number of enabled iptables modules is specified by thefile locks.<b>IPTABLES</b> variable in [[Man/vz.conf.5|<b>vz.conf</b>(5)]]Safety gap should be between barrier and limit.</p>
<p style="margin-left:2211%; margin-top: 1em">You can use thefollowing values for <i>name</i>: <b>iptable_filter--numpty</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 pseudo-terminals(PTY). Note that in OpenVZ each container can have not morethan 255 PTYs. Setting the barrier and the limit todifferent values does not make practical sense.</p>
<p style="margin-left:11%;"><b>--netdev_addnumsiginfo</b><i>nameitems</i>[:<i>items</i>]</p>
<p style="margin-left:22%;">move network device from Number of siginfo structures.Setting the barrier and thelimit to different values doeshost system to a specified containernot make practical sense.</p>
<p style="margin-left:11%;"><b>--netdev_deldcachesize</b><i>namebytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%;">delete network device Maximum size offilesystem-related caches, such as directory entry and inodecaches. Exists as a separate parameter to impose a limitcausing file operations to sense memory shortage and returnan errno to applications, protecting from amemory shortagesduring critical operations that should not fail. Safety gapspecified containershould be between barrier and limit.</p>
<p style==== Disk quota parameters ===="margin-left:11%;"><b>--numiptent</b><i>num</i>[:<i>num</i>]</p>
<p style="margin-left:1122%;"><b>--diskquota yes</b> |Number of iptables (netfilter)entries. Setting the barrier and the limit to different<b>no</b>values does not make practical sense.</p>
<p style="margin-left:2211%;">allows to enable or disabledisk quota for a container. By default, a global value(<b>DISK_QUOTA--physpages</b>) from <i>pages</i>[[Man/vz.conf.5|:<bi>vz.confpages</bi>(5)]] is used.</p>
<p style="margin-left:22%; margin-top: 1em">Note that On VSwap-enabled kernels, thisparameter is ignored for limits the amount of physical memory (RAM) available to acontainer. The barrier should be set to <b>ploop0</b> layout, and thelimit to a total size of RAM that can be used used by acontainer.</p>
<p style="margin-left:1122%;margin-top: 1em">For olderkernels, this is an accounting-only parameter, showing theusage of RAM by this container. Barrier should be set to<b>--diskspace0</b>, and limit should be set to <ib>numunlimited</i>[:<i>num</ib>].</p>
<p style="margin-left:2211%;">For <b>simfs--swappages</b> layout, setssoft and hard disk quota limits, in blocks. First parameteris soft limit, second is hard limit. One block is currentlyequal to 1Kb.<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%; margin-top: 1em">ForVSwap-enabled kernels(042stab042 or greater), this parameter limits the amount ofswap space available to a container. The barrier should beset to <b>ploop0</b> layout, sets and the limit to a total size of the ploop image file,swap thatin kilobytescan be used by a container.</p>
<p style="margin-left:22%; margin-top: 1em">SuffixesFor older<b>G</b>(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>Munlimited</b>, <b>K</b> can also meaning total swap will be specified (see<b>Resource limits</b> section for more info onreported assuffixes)0.</p>
<p style="margin-left:11%;"><b>--diskinodes</b><i>num</i>[:<i>num</i>]</p>=== CPU fair scheduler parameters ====
<p style="margin-left:2211%;margin-top: 1em">sets soft and hard disk quotaTheselimits, in i-nodesparameters control CPU usage by container. First parameter is soft limit, second is<b><br>hard limit.--cpuunits</b> <i>num</i></p>
<p style="margin-left:22%; margin-top: 1em">Note that 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 thiscontainer gets. Maximum value is 500000,parameter minimal is 8. Number is ignored for relative to weights of all the otherrunning containers. If <b>ploopcpuunits</b> layoutare not specified,default value of 1000 is used.</p>
<p style="margin-left:1122%;margin-top: 1em">You can set CPUweight for CT0 (host system itself) as well (use <b>vzctlset 0 --quotatimecpuunits</b><i>secondsnum</i>). Usually, OpenVZ initscript(<b>/etc/init.d/vz</b>) takes care of setting this.</p>
<p style="margin-left:2211%;">sets quota grace period.<b>--cpulimit</b>Container is permitted to exceed its soft limits for thegrace period, but once it has expired, the soft limit isenforced as a hard limit.<i>num</i>[<b>%</b>]</p>
<p style="margin-left:22%; ">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>0</b>(no CPU limit).</p> <p style="margin-topleft: 1em11%;">Note that thisparameter is ignored for <b>ploop--cpus</b> layout<i>num</i></p> <p style="margin-left:22%;">sets number of CPUs availablein 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), thisupdate inode access times) on filesystemparameter is ignored. For older kernels, it controls theoutput 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>: <bbr>chown</b>,&bull; <b>dac_overridepages</b>, :<bi>dac_read_searchvalue</bi>, <b>fowner</b>,- sets total memory inpages; <b>fsetid</b>, <b>kill</bbr>, <b>setgid</b>, <b>setuid</b>,&bull; <b>setpcapprivvmpages</b>, :<bi>linux_immutablevalue</bi>,- sets total memoryas <b>net_bind_serviceprivvmpages</b>, * <bi>net_broadcastvalue</b>,<b>net_admin</b>, <b>net_raw</b>, <b>ipc_lock</b>,<b>ipc_owner</b>, <b>sys_module</b>, <b>sys_rawio</b>,<b>sys_chroot</b>, <b>sys_ptrace</b>, <b>sys_pacct</b>,<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>capabilities</bi>(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 whatDefault isyou are doing. Also note that setting <b>setpcapprivvmpages:on1</b> fora container will most probably lead to inability to startit.</p>
==== Device access management Netfilter (iptables) control parameters ====
<p style="margin-left:11%;"><b>--devnodesnetfilter&nbsp;disabled</b><i>device</i>:[|<b>rstateless</b>][<b>w</b>][|<b>qstateful</b>]|<b>nonefull</b></p>
<p style="margin-left:22%;">Give the container an Restrict accessto(<b>r<netfilter/b> - read, <b>w</b> - write, <b>q</b> - disk quotamanagement, <b>none</b> - no access) to iptables modules for a device designatedby the special file /dev/<i>device</i>container. Device file isThis optioncreated in a container by replaces obsoleted <b>vzctl--iptables</b>. Example:</p>
<pre p style="margin-left:22%;margin-top: 1em"> vzctl set 777 Note thatchanging this parameter requires container restart, soconsider using <b>--devnodes sdb:rwqsetmode</b> option.</prep>
<p style="margin-left:1122%;margin-top: 1em"><b>--devicesThe followingb</b>|<b>c</b>arguments can be used:<i>major</i>:<i>minor</i>|<b>all</bbr>:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>none&bull; disabled</b></p>
<p style="margin-left:2232%;">Give the container an access toa <b>b</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.no modules are allowed</p>
<p style==== PCI device management ===="margin-left:22%;"><b>&bull; stateless</b></p>
<p style="margin-left:1132%;"><b>--pci_add</b>all modules except NAT and[<conntracks are allowed (i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>func</i>e. filter and mangle); this is thedefault</p>
<p style="margin-left:22%;">Give the container an access toa specified PCI device. All numbers are hexadecimal (asprinted by <b>lspci&bull; stateful</b>(8) in the first column).</p>
<p style="margin-left:1132%;"><b>--pci_del</b>all modules except NAT are[<i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>func</i>allowed</p>
<p styletable width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="margin-left:"><td width="22%;">Delete a PCI device from the</td>container.</ptd width="9%">
<p style="margin-left:22%; margin-top: 1em">Note that<b>vps-pci&bull; full</b> configuration script is executed by<b/p>vzctl</btd> then configuring PCI devices. The script isusually located at <btd width="1%">/usr/lib[64]/vzctl/scripts/</btd>.</ptd width="36%">
<p>all modules are allowed</p></td><td width==== Features management ===="32%"></td></tr></table>
<p style="margin-left:11%;"><b>--featuresiptables</b><i>name</i>:[<b>on</b>|<b>off,</b>...]</p>
<p style="margin-left:22%;">Enable or disable a specificcontainer feature. Known features are: <b>sysfs</b>,<b>nfs</b>, <b>sit</b>, <b>ipipNote</b>, <b>ppp</b>,this option is<b>ipgre</b>, <b>bridge</b>obsoleted, <b>nfsd--netfilter</b>should be used instead.</p>
<p style="margin-left:22%; margin-top: 1em">Allow to usethe functionality of <i>name</i> iptables module inside thecontainer. Multiple comma-separated <i>name</i>s can bespecified.</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>iptable_filter</b>,<b>iptable_mangle</b>, <b>ipt_limit</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>--applyconfigip_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>,<ib>xt_mac</b>, <b>ipt_recent</b>, <b>nameipt_owner</ib>.</p>
<p style="margin-left:22%;">Read container === Network devices control parameters fromthe container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>name</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:11%;"><b>--applyconfig_mapnetdev_add</b><i>groupname</i></p>
<p style="margin-left:22%;">Apply container configparameters selected by <i>group</i>. Now move network device from the only possiblevalue for <i>group</i> is <b>name</b>: host system to restore a specified containername based on <b>NAME</b> variable in containerconfiguration file.</p>
<p style==== I"margin-left:11%;"><b>--netdev_del</b><i>name</i></O priority management ====p>
<p style="margin-left:1122%;"><b>--ioprio</b>delete network device from a<i>priority</i>specified container</p>
<p style="margin-left:22%;">Assigns I/O priority tocontainer. <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>=== Disk quota parameters ====
<p style=== Checkpointing and restore ==="margin-left:11%;"><b>--diskquota yes</b> |<b>no</b></p>
<p style="margin-topleft: 1em22%;">Checkpointing is a feature ofOpenVZ kernel which allows to save enable or disabledisk quota for a complete state of container. By default, aglobal valuerunning container, and to restore it later(<b>DISK_QUOTA</b>) from [[Man/vz.conf.5|<b>vz.conf</b>(5)]] is used.</p>
<p style="margin-left:1122%;margin-top: 1em"><b>chkpnt</b> <i>CTID</i>Note that this[parameter is ignored for <b>--dumpfileploop</b> <i>name</i>]layout.</p>
<p style="margin-left:1711%;">This command saves a completestate of a running container to a dump file, and stops thecontainer. If an option <b>--dumpfilediskspace</b> is not set,default dump file name <bi>/vz/dump/Dump.num</bi>[:<i>CTIDnum</i> isused.]</p>
<p style="margin-left:1122%;">For <b>restoresimfs</b> <i>CTID</i>layout, setssoft and hard disk quota limits. First parameter is soft[<b>--dumpfile</b> <i>name</i>]limit, second is hard limit.</p>
<p style="margin-left:1722%;margin-top: 1em">This command restores aForcontainer from <b>ploop</b> layout, initiates the dump procedure of resizing theploop image file created by to the new size. Since there is nosoft/hard limit concept in ploop, second <bi>chkpntnum</bi>, ifcommandspecified, is ignored.</p>
<p style=== Snapshotting ==="margin-left:22%; margin-top: 1em">By default,ploop resize is done online, i.e. on a mounted ploop. Thisis a preferred way of doing resize. Although, in a rare casea container was using lots of disk space and should now beresized to a much smaller size, an offline resize might bemore appropriate. In this case, make sure the container isstopped and unmounted and use additional<b>--offline-resize</b> option</p>
<p style="margin-left:22%; margin-top: 1em">Snapshotting Note that ploopresize is a feature basedNOT performed on checkpointing and ploop shapshots. It allows to save acomplete state of container file system. Plusstart, if theso forcontainer is running, it&rsquo;s inconsistency <b>--memory state (as indiskspace</b> must be used together withcheckpointing). Note that snapshot functionality is onlyworking for containers on ploop device<b>--save</b> flag.</p>
<p style="margin-left:1122%;margin-top: 1em">Suffixes<b>snapshotG</b> |, <b>snapshot-createM</b> , <ib>CTIDK</ib> [can also be specified (see<b>--idResource limits</b>section for more info on suffixes).<i>uuid</i>]If suffix is not specified, value is in kilobytes.</p>
<p style="margin-left:1711%;">Creates a container snapshot.<b>--diskinodes</b>If <i>uuidnum</i> is not specified, it is auto-generated. If acontainer is running, it&rsquo;s checkpointed and thenrestored. If a container is not running, only file systemstate is saved.[:<i>num</i>]</p>
<p style="margin-left:1122%;"><b>snapshot-switch</b>sets soft and hard disk quota<limits, in i>CTID</i> <b>--id</b> <i>uuid</i>nodes. First parameter is soft limit, second ishard limit.</p>
<p style="margin-left:1722%;margin-top: 1em">Switches the container to aNote that thissnapshot identified by parameter is ignored for <ib>uuidploop</ib>. Note that the currentcontainer state and its file system state is lost! If givensnapshot contains CT memory dump, it is restored, otherwiseit is stoppedlayout.</p>
<p style="margin-left:11%;"><b>snapshot-delete-quotatime</b><i>CTID</i> <b>--id</b> <i>uuidseconds</i></p>
<p style="margin-left:1722%;">Removes 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 specifiedsnapshothard limit.</p>
<p style="margin-left:22%; margin-top: 1em">Note that thisparameter is ignored for <b>ploop</b> layout.</p> <p style="margin-left:11%;"><b>snapshot-list-quotaugidlimit</b><i>CTIDnum</i></p>
<p style="margin-left:1722%;">Lists all snapshotsEnables or disablesin-container per-user and per-group disk quotas. ActiveIf thesnapshot value is marked with set to <b>*0</b> signor not set, disk quotas inside thecontainer is disabled and not accounted.</p>
<p style=== Performing container actions ==="margin-left:22%; margin-top: 1em">For<b>simfs</b> layout containers, non-zero value sets maximumnumber of user/group IDs for which disk quota isaccounted.</p>
<table widthp style="100margin-left:22%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="; margin-top" align="left: 1em">For<td width="11%"b>ploop</tdb>layout containers, any non-zero value enablesdisk quota inside the container; the number of user/groupIDs used by disk quota is not limited by OpenVZ.<td width="9%"/p>
<p style="margin-left:22%; margin-top: 1em">Note thatenabling or disabling in-container disk quotas requirescontainer restart, so consider using <b>create--setmode</b>option.</p></td><td width="2%"></td><td width="78%">
<p style="margin-top: 1em"><i>CTID</i>[<b>--ostemplate&nbsp;</b><i>name</i>][<b>--config&nbsp;</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>--private&nbsp;</b><i>path</i>][<b>--root&nbsp;</b><i>path</i>][<b>--ipadd&nbsp;</b><i>addr</i>][<b>--hostname&nbsp;</b><i>name</i>][<b>--name&nbsp;</b><i>name</i>]</p> </td></tr></table>=== Capability option ====
<p style="margin-left:1711%; margin"><b>-top-capability</b><i>capname</i>: 1em"<b>on</b>|<b>off</b>[<b>,</b>Creates a newcontainer area. This operation should be done once, beforethe first start of the container..]</p>
<p style="margin-left:1722%; margin-top: 1em">By default, anSets a capability for aOS 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 Multiple comma-separated capabilities can beoverwritten by <b>--ostemplate</b> optionspecified.</p>
<p style="margin-left:1722%; margin-top: 1em">By default, Note thatsetting acapability when the container is running does notnew take immediate effect; restart the container configuration file is created from a samplein order forconfiguration denoted by value of the changes to take effect (consider using <b>CONFIGFILE--setmode</b>parameter of [[Man/vz.conf.5|<b>vz.conf</b>(5option)]]. If the containerconfiguration file already exists, it will not bemodified.</p>
<p style="margin-left:1722%; margin-top: 1em">The value A container hasthe default set ofcapabilities, thus any operation on<b>CONFIGFILE</b> can be overwritten by using capabilities is &quot;logical AND&quot; with thedefault<b>--config</b> <i>name</i> option. This option can not beused if the container configuration file already existscapability mask.</p>
<p style="margin-left:1722%; margin-top: 1em">A new containerYou can use thefollowing 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>,can either be created using <b>simfssetpcap</b>, <b>linux_immutable</b> filesystem or on a,<b>ploopnet_bind_service</b> device. The default is set by value of, <b>net_broadcast</b>,<b>VE_LAYOUTnet_admin</b> parameter of [[Man, <b>net_raw</vz.conf.5|b>, <b>vz.confipc_lock</b>(5)]] and can be,overwritten by <b>--layoutipc_owner</b>, <b>sys_module</b> option. In case , <b>ploopsys_rawio</b>,is used<b>sys_chroot</b>, <b>sys_ptrace</b>, <b>sys_pacct</b>, one can additionally specify ploop disk imageformat after a colon. Possible ploop formats are<b>sys_admin</b>, <b>sys_boot</b>, <b>sys_nice</b>,<b>expandedsys_resource</b>, <b>plainsys_time</b> and , <b>rawsys_tty_config</b>. Default is,<b>expandedmknod</b>, <b>lease</b>, <b>setveid</b>, <b>ve_admin</b>. Using For detailed description, see <b>rawcapabilities</b> is not recommended and isnot supported(7).</p>
<p style="margin-left:1722%; margin-top: 1em">You can use<b>--diskspaceWARNING</b> option to specify container file system:setting some of those capabilities may have far reachingsize. Suffixes <b>G</b>, <b>M</b>security implications, <b>K</b> can also beso do not do it unless you know whatspecified (see you are doing. Also note that setting <b>Resource limitssetpcap:on</b> section for more infoon suffixes)a container will most probably lead to inability to startit.</p>
<p style="margin-left:17%; 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>(5)]] file).Argument can contain literal string <b>$VEID</b>, which willbe substituted with the numeric CT ID.</p>=== Device access management ====
<p style="margin-left:1711%; margin-top: 1em">You can use<b>--privatedevnodes</b> <i>pathdevice</i> option to set the path todirectory in which all the files and directories specific tothis very container are stored (default is :[<b>VE_PRIVATEr</b>specified in ][<b>w</b>][Man/vz.conf.5|<b>vz.confq</b>(5)]] file). Argument can containliteral string |<b>$VEIDnone</b>, which will be substituted withthe numeric CT ID.</p>
<p style="margin-left:1722%; margin-top: 1em">You can useGive the container an access(<b>r</b>-read, <b>w</b> -ipaddwrite, <b>q</b> - disk quotamanagement, <b>none</b> - no access) to a device designatedby the special file /dev/<i>addrdevice</i> option to assign an IP address to. Device file iscreated in a containerby <b>vzctl</b>. Note that this option can be used multipletimes.Example:</p>
<p pre style="margin-left:1722%; margin-top: 1em">You can use<b> vzctl set 777 --hostname</b> <i>name</i> option to set a host name fora container.devnodes sdb:rwq</ppre>
<p style="margin-left:11%;"><b>destroy--devicesb</b> | <b>deletec</b>:<i>major</i>:<i>CTIDminor</i>|<b>all</b>:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>none</b></p>
<p style="margin-left:1722%;">Removes a Give the container privatean access toarea a <b>b</b>lock or <b>c</b>haracter device designated by deleting all files, directories its<i>major</i> and the<i>minor</i> numbers. Device file have toconfiguration file of this containerbe created manually.</p>
<p style="margin-left:11%;"><b>start</b> <i>CTID</i>[<b>--wait</b>] [<b>--force</b>]</p>=== PCI device management ====
<p style="margin-left:1711%;">Mounts (if necessary) andstarts a container. Unless <b>--waitpci_add</b> option isspecified, [<i>domain</i>:]<bi>vzctlbus</bi> will return immediately; otherwisean attempt to wait till the default runlevel is reached willbe made by :<bi>vzctlslot</bi>.<i>func</i></p>
<p style="margin-left:1722%; margin-top: 1em">SpecifyGive the container an access to<b>--force</b> if you want to start a container which isspecified PCI device. All numbers are hexadecimal (asdisabled (see printed by <b>--disabledlspci</b>(8) in the first column).</p>
<p style="margin-left:1711%; margin-top: 1em">Note that thiscommand can lead to execution of <b>premount--pci_del</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>Delete a PCI device from the[<b>--fast</b>]container.</p>
<p style="margin-left:1722%;margin-top: 1em">Stops and unmounts a container.Note thatNormally, <b>haltvps-pci</b>(8) configuration script is executed inside a container;byoption <b>--fastvzctl</b> makes then configuring PCI devices. The script isusually located at <b>/usr/libexec/vzctl</b> use <b>rebootscripts/</b>(2)syscall instead which is faster but can lead to uncleancontainer shutdown.</p>
<p style="margin-left:17%; margin-top: 1em">Note that thiscommand can lead to execution of <b>stop</b>, <b>umount</b>and <b>postumount</b> action scripts (see <b>ACTIONSCRIPTS</b> below).</p>=== Features management ====
<p style="margin-left:11%;"><b>restart--features</b> <i>CTIDname</i>[:<b>--waiton</b>] [|<b>--forceoff</b>] [<b>--fast,</b>...]</p>
<p style="margin-left:1722%;">Restarts Enable or disable a specificcontainerfeature. Known features are: <b>sysfs</b>, i.e.stops it if it is running<b>nfs</b>, <b>sit</b>, <b>ipip</b>, <b>ppp</b>, and starts again. Accepts all the<b>startipgre</b> and , <b>stopbridge</b> options, <b>nfsd</b>. A few features canbe specified at once, comma-separated.</p>
<p style="margin-left:17%; margin-top: 1em">Note that thiscommand can lead to execution of some action scripts (see<b>ACTION SCRIPTS</b> below).</p>=== Apply config ====
<p style="margin-left:11%;"><b>status--applyconfig</b> <i>CTIDname</i></p>
<p style="margin-left:1722%;">Shows a Read container statusparameters fromthe container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>name</i><tt>.conf-sample</tt>,and apply them, if <b>--save</b> option specified save tothe container config file. ThisThe following parameters are notchanged: <b>HOSTNAME</b>, <b>IP_ADDRESS</b>,is a line with five or six words<b>OSTEMPLATE</b>, <b>VE_ROOT</b>, separated by spacesand<b>VE_PRIVATE</b>.</p>
<p style="margin-left:1711%; margin-top: 1em">First word isliterally <b>CTID--applyconfig_map</b>.<i>group</i></p>
<p style="margin-left:1722%; margin-top: 1em">Second word isApply container configparameters selected by <i>group</i>. Now the numeric only possiblevalue for <i>CT IDgroup</i>is <b>name</b>: to restore containername based on <b>NAME</b> variable in containerconfiguration file.</p>
<p style="margin-left:17%; margin-top: 1em">Third word isshowing whether this container exists or not, it can beeither <b>exist<=== I/b> or <b>deleted</b>.</p>O scheduling ====
<p style="margin-left:1711%; "><b>--ioprio</b><i>priority</i></p> <p style="margin-topleft: 1em22%;">Fourth word Assigns disk I/O priority tocontainer. <i>Priority</i> range is<b>0-7</b>. The greatershowing <i>priority</i> is, the status more time for I/O activity containerhas. By default each container has <i>priority</i> of the container filesystem, it can beeither <b>mounted4</b>.</p> <p style="margin-left:11%;"><b>--iolimit</b><i>limit</i>[<b>B</b> or |<b>unmountedK</b>.|<b>M</b>|<b>G</b>]</p>
<p style="margin-left:1722%; margin-top: 1em">Fifth wordAssigns disk I/O bandwidthshows if the limit for a container . Value is running, it can be eithera number with anoptional suffix, or a literal string <b>runningunlimited</b> or . Valueof <b>down0</b>means &quot;unlimited&quot;. By default acontainer has no I/O limit. Maximum allowed limit is 2gigabytes per second; values exceeding the limit aretruncated.</p>
<p style="margin-left:1722%; margin-top: 1em">Sixth wordIf no suffix isprovided, ifthe <i>limit</i> is assumed to be in megabytes perexistssecond. Available suffixes are: <br>&bull; <b>b</b>, <b>B</b> -- bytes per second; <br>&bull; <b>k</b>, is <b>suspendedK</b>. It appears if both a container-- kilobytes per second; <br>and its dump file exist &bull; <b>m</b>, <b>M</b> -- megabytes per second (see default);<br>&bull; <b>g</b>, <b>chkpntG</b>).-- gigabytes per second;</p>
<p style="margin-left:1711%; margin"><b>-top: 1em"-iopslimit</b>This commandcan also be usable from scripts.<i>iops</i></p>
<p style="margin-left:1122%;">Assigns IOPS limit for acontainer, in number of input/output operations per second.Value is a number or a literal string <b>mountunlimited</b> .Value of <ib>CTID0</ib>means &quot;unlimited&quot;. By default acontainer has no IOPS limit.</p>
<p style="margin-left:17%;">Mounts container private area.Note that this command can lead to execution of<b>premount</b> == Suspending and <b>mount</b> action scripts (see<b>ACTION SCRIPTS</b> below).</p>resuming ===
<p style="margin-lefttop:11%;1em"><b>umount</b> <i>CTID</i>Checkpointing is a feature ofOpenVZ kernel which allows to save a complete in-kernelstate of a running container, and to restore it later.</p>
<p style="margin-left:1711%;">Unmounts container privatearea. Note that this command can lead to execution of<b>umountsuspend</b> and |<b>postumountchkpnt</b> action scripts (see<i>CTID</i> [<b>ACTION SCRIPTS--dumpfile</b> below).<i>name</i>]</p>
<p style="margin-left:17%; margin-top: 1em">Note thatThis command suspends acontainer to a dump file If an option <b>stop--dumpfile</b> does isnot set, default dump file name<b>umount/vz/dump/Dump.</b> automatically<i>CTID</i> is used.</p>
<p style="margin-left:11%;"><b>convertresume</b> |<ib>CTIDrestore</ib>[<bi>--layoutploopCTID</bi>[<b>:--dumpfile</b>{<bi>expandedname</b>|<b>plain</b>|<b>raw</bi>}]]</p>
<p style="margin-left:17%;">Convert CT private area toreside on This command restores a ploop device (available in kernel version042stab052.8 and greater). Conversion should be performedwhen a container is stopped, plus disk space quota should befrom the dump file created by the <b>suspend</b>setcommand.</p>
<p style="margin-left:11%;"><b>quotaon</b> <i>CTID</i></p>== Snapshotting ===
<p style="margin-lefttop:17%;1em">Turn disk quota Snapshotting is a feature basedoncheckpointing 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). Not Note thatsnapshot functionality is only<b>mount</b> and <b>start</b> does that automaticallyworking for containers on ploop device.</p>
<p style="margin-left:11%;"><b>quotaoffsnapshot</b> <i>CTID</i>[<b>--id</b> <i>uuid</i>] [<b>--name</b> <i>name</i>][<b>--description</b> <i>desc</i>] <br>[<b>--skip-suspend</b>] [<b>--skip-config</b>]</p>
<p style="margin-left:17%;">Turn disk quota offCreates a container snapshot,i. Not thate. saves the current container state, including its file<b>umount</b> system state, running processes state, and <b>stop</b> does that automaticallyconfigurationfile.</p>
<p style="margin-left:1117%;margin-top: 1em">If a containeris running, and <b>quotainit--skip-suspend</b>option is notspecified, a container is checkpointed and then restored,<i>CTID</i>and CT memory dump becomes the part of snapshot.</p>
<p style="margin-left:17%;margin-top: 1em">Initialize disk quota (i.e. runUnless<b>vzquota init--skip-config</b>) with the parameters taken from the CToption is given, containerconfiguration file [[Man/ctid.conf.5|<b>ctid.conf</b>(5)]]is saved to the snapshot.</p>
<p style="margin-left:1117%;margin-top: 1em">If <i>uuid</i>is not specified, it is auto-generated. Options<b>exec--name</b> and <ib>--description</b>CTIDcan be used tospecify the snapshot name and description, respectively.commandName is displayed by <b>snapshot-list</ib>.</p>
<p style="margin-left:1711%;">Executes <ib>commandsnapshot-switch</ib> in acontainer. Environment variables are not set inside thecontainer. Signal handlers may differ from default settings.If <i>commandCTID</i> is [<b>--skip-resume</b> | <b>--must-resume</b>][<b>--skip-config</b>, commands are read from] <b><br>stdin.--id</b> <i>uuid</i></p>
<p style="margin-left:1117%;">Switches the container to asnapshot identified by <bi>exec2uuid</b> <i>CTID, restoring its filecommand</i>system state, configuration (if available) and its runningstate (if available).</p>
<p style="margin-left:17%;margin-top: 1em">The same as <b>exec</b>, butNote thatthe current state of a container (including its file systemreturn code state and its configuration file) is that of <i>commandlost!</ib>.</p>
<p style="margin-left:1117%;margin-top: 1em">Option<b>runscript--skip-resume</b> is used to ignore a CT memory dump filein a snapshot, as a result the container will end up beingin a stopped state (same as if a snapshot has been takenwith <ib>CTIDscript--skip-suspend</ib>).</p>
<p style="margin-left:17%;margin-top: 1em">Run specified shell script inIf optionthe container. Argument <ib>script--must-resume</ib> is set, absense of a file on the hostsystem which contents memory dump is read by vzctl and executed in thecontext of the container. For a running containertreated as an error, thecommand jumps into the container and executes the script.For a stopped container, it enters inability to restore from the container, mountscontainer&rsquo;s root filesystem, executes the script, andunmounts CT root. In the latter case, the container memory dump is notreally started, no file systems other treated as an error rather than root (such as<b>/proc</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 basicoperationswarning.</p>
<p style="margin-left:1117%;margin-top: 1em"><b>enter</b> <i>CTID</i>Option option[<b>--execskip-config</b> <i>command</is used to ignore the CT configurationfile in a snapshot, i> [<i>arg</i> .e.the current configuration file willbe left as is.]]</p>
<p style="margin-left:1711%;">Enters into a container (givinga container&rsquo;s root shell). This option is a back<b>snapshot-doordelete</b>for host root only. The proper way to have CT root shell isto use <i>CTID</i> <b>ssh--id</b>(1).<i>uuid</i></p>
<p style="margin-left:17%; ">Removes a specifiedsnapshot.</p> <p style="margin-topleft: 1em11%;">Option<b>snapshot-mount</b><i>CTID</i> <b>--execid</b> is used to run <i>commanduuid</i> with argumentsafter entering into container. This is useful if command tobe run requires a terminal (so <b>vzctl exec--target</b> can not beused) and for some reason you can not use <bi>sshdirectory</bi>(1).</p>
<p style="margin-left:17%; margin-top: 1em">You need to logMounts a snapshot specified byout manually from the shell <i>uuid</i> to finish session (even if youspecified a <bi>--execdirectory</bi>). Note this mount isread-only.</p>
<p style="margin-left:11%;"><b>consolesnapshot-umount</b> <i>CTID</i> <b>--id</b> <i>uuid</i></p>
<p style="margin-left:17%;">Attach to the container&rsquo;sUnmounts a specifiedconsole. 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 isstoppedsnapshot.</p>
<p style="margin-left:1711%; margin-top: 1em">Type <b>Escsnapshot-list</b>then <i>CTID</i> [<b>.-H</b> to detach from the console. Type ] [<b>Esc-o</b>then <bi>field</i>[,<i>field</bi> to detach without killing anything. Note thatthese sequences are only recognized after ..] [<b>Enter--id</b>.<i>uuid</i>]</p>
<p style=== Other options ==="margin-left:17%;">List container&rsquo;ssnapshots.</p>
<p style="margin-left:1117%;margin-top: 1em">You cansuppress displaying header using <b>--helpH</b>option.</p>
<p style="margin-left:17%;margin-top: 1em">Prints help message with aYou can use thebrief list <b>-o</b> option to display only the specified<i>field</i>(s). List of possible optionsavailable fields can be obtainedusing <b>-L</b> option.</p>
<p style="margin-left:11%;"><b>--version</b></p>== Performing container actions ===
<p styletable width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="margin-left:17%;">Prints <btd width="11%">vzctl</btd>version.</ptd width="9%">
<p style="margin-top: 1em"><b>create</b></p></td><td width= ACTION SCRIPTS ="2%"></td><td width="78%">
<p style="margin-lefttop:11%1em"><i>CTID</i>[<b>--ostemplate&nbsp; margin</b><i>name</i>][<b>--config&nbsp;</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>vzctl--diskspace&nbsp;</b><i>kbytes</i>]has an ability to execute user[<b>--defined scripts when adiskinodes&nbsp;</b><i>num</i>]specific [<b>vzctl--private&nbsp;</b> command is run for a container. The<i>path</i>]following [<b>vzctl--root&nbsp;</b> commands can trigger execution of<i>path</i>]action scripts: [<b>start--ipadd&nbsp;</b>, <i>addr</i>][<b>stop--hostname&nbsp;</b>, <i>name</i>][<b>restart--name&nbsp;</b>,<i>name</i>][<b>mount--local_uid&nbsp;</b> and <i>uid</i>][<b>umount--local_gid&nbsp;</b>.<i>gid</i>]</p> </td></tr></table>
<p style="margin-left:1117%; margin-top: 1em">Action scriptsCreates a neware located in the <b>/etc/vz/conf/</b> directorycontainer area. There areThis operation should be done once, beforeglobal and per-CT scripts. Global scripts have a literalprefix the first start of <b>vps.</b> and are executed for all containers.Per-CT scripts have a <i>CTID</i> numeric prefix and areexecuted for the given container only.</p>
<p style="margin-left:1117%; margin-top: 1em">Please notescripts are executed in a host system (CT0) contextBy default, withanthe exception of OS template denoted by <b>.startDEF_OSTEMPLATE</b> and parameter of[[Man/vz.conf.5|<b>vz.stopconf</b> scripts,which are executed in (5)]] is used to create a container context. This can beoverwritten by <b>--ostemplate</b> option.</p>
<p style="margin-left:1117%; margin-top: 1em">The followingBy default, aaction scripts are currently defined: new container configuration file is created from a sampleconfiguration denoted by value of <b><br>vps.premountCONFIGFILE</b>, <i>CTID<parameter of [[Man/i>vz.conf.5|<b>vz.premountconf</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 before it is mounted.Scripts are executed in <b>CONFIGFILE</b> can be overwritten by using the host system context, while a CTis <b>--config</b> <i>name</i> option. This option can not yet mounted or running. Global script, beused if the container configuration file already exists, isexecuted first.</p>
<p style="margin-left:1117%;margin-top: 1em">A new containercan either be created using <b>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>vpsvz.mountconf</b>(5)]] and can beoverwritten by <b>--layout</b> option. In case <b>ploop</b>is used,one can additionally specify ploop disk imageformat after a colon. Possible ploop formats are<ib>CTIDexpanded</ib>, <b>plain</b> and <b>raw</b>. Default is<b>expanded</b>.mountUsing value other than <b>expanded</b>isnot recommended and is currently not supported.</p>
<p style="margin-left:2217%;margin-top: 1em">Global You can use<b>--diskspace</b> and per<b>--CT mount scriptsdiskinodes</b> options towhich are executed specify container file system size. Note that for a container right after it ismounted. Otherwise they are the same as <b>.premountploop</b>layout, you will not be able to change inodesscriptsvalue 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.startconf</b>(5)]], <b>--diskspace</b>parameter is required for <b>ploop</b>layout.</p>
<p style="margin-left:2217%;margin-top: 1em">Right after Suffixes<b>vzctlG</b> has, <b>M</b>, <b>K</b> can also be specified (seestarted 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>CTIDpath</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.stopconf</b>(5)]] file).Argument can contain literal string <b>$VEID</b>, which willbe substituted with the numeric CT ID.</p>
<p style="margin-left:2217%;margin-top: 1em">Right before You can use<b>vzctl--private</b> has<i>path</i> option to set the path tostopped a directory in which all the files and directories specific tothis very containerare stored (default is <b>VE_PRIVATE</b>specified in [[Man/vz.conf.5|<b>vz.conf</b>(5)]] file). Argument can containliteral string <b>$VEID</b>, it executes this script in a containerwhich will be substituted withcontextthe numeric CT ID.</p>
<p style="margin-left:1117%;margin-top: 1em">You can use<b>vps.umount--ipadd</b>,<i>CTIDaddr</i><b>option to assign an IP address toa container. Note that this option can be used multipletimes.umount</b></p>
<p style="margin-left:2217%;margin-top: 1em">Global and perYou can use<b>--CT umounthostname</b> <i>name</i> option to set a host name forscripts which are executed for a container before it is.</p> <p style="margin-left:17%; margin-top: 1em">When runningwith an upstream Linux Kernel that supports user namespacesunmounted(&gt;= 3. Scripts are executed 8), the parameters <b>--local_uid</b> and<b>--local_gid</b> can be used to select which <i>uid</i>and <i>gid</i> respectively will be used as a base user in the host system context. 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> andwhile <b>LOCAL_GID</b> from global configuration file[[Man/vz.conf.5|<b>vz.conf</b>(5)]] are used. An explicit <b>--local_uid</b>value of 0 will disable user namespace support, and run thecontainer as a CT is mountedprivileged user. Global script, if existsIn this case, <b>--local_gid</b> is executedfirstignored.</p>
<p style="margin-left:1117%;margin-top: 1em"><b>vps.postumountWarning:</b>,use <ib>CTID--local_uid</ib>and <b>.postumount--local_gid</b>with care,specially 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:2211%;">Global and per-CT umountscripts which are executed for a container right after it isunmounted. Otherwise they are the same as <b>.umountdestroy</b> | <b>delete</b>scripts.<i>CTID</i></p>
<p style="margin-left:1117%; margin-top: 1em">The environmentRemoves a container privatepassed to area by deleting all the <b>*mount</b> scripts is the standardenvironment of the parent (i.e. <b>vzctl</b>) with twoadditional variables: <b>$VEID</b> and <b>$VE_CONFFILE</b>.The first one holds the ID of the containerfiles, directories 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 filesof this container.</p>
<p style="margin-left:11%; margin-top: 1em">Here is anexample of a mount script, which makes host system&rsquo;s<b>start</mntb> <i>CTID</disk available to container(s). Script name can eitheri>be [<b>/etc/vz/conf/vps.mount--wait</b> or] [<b>/etc/vz/conf/--force</b>] [<ib>CTID--skip-fsck</ib>][<b>.mount--skip-remount</b>.]</p>
<pre p style="margin-left:1117%; margin-top: 1em"> # If one of these files does not exist then somethingMounts (if necessary) and # starts a container. Unless <b>--wait</b> option is really broken [ -f specified, <b>vzctl</etc/sysconfig/vz ] || exit 1b> will return immediately; otherwise [ -f $VE_CONFFILE ] || exit 1 # Source both files. Note an attempt to wait till the order default runlevel is important.reached will . be made by <b>vzctl</etc/vz/vzb>.conf . $VE_CONFFILE SRC=/mnt/disk DST=/mnt/disk mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC</prep>
<p style== EXIT STATUS =="margin-left:17%; margin-top: 1em">Specify<b>--force</b> if you want to start a container which isdisabled (see <b>--disabled</b>).</p>
<p style="margin-left:1117%; margin-top: 1em">Returns 0 uponSpecifysuccess, or an appropriate error code in case of an<b>--skip-fsck</b> to skip fsck for ploop-based containererror:filesystem (this option is used by vz initscript).</p>
<table widthp style="100margin-left:17%; margin-top: 1em" border="0" rules="none" frame="void">By default, if cellspacing="0" cellpadding="0">a container to be started happens to be already mounted, it<tr valign="top" align="left">is unmounted and mounted again. This behavior can be turnedoff by using <td width="11%"b>--skip-remount</tdb>flag.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Note that thiscommand can lead to execution of <b>1premount</pb>,<b>mount</tdb>and <td width="7%"b>start</tdb> action scripts (see <b>ACTIONSCRIPTS<td width="78%"/b> below).</p>
<pstyle="margin-left:11%;"><b>Failed to set a UBC parameterstop</pb></tdi>CTID</tri>[<b>--fast<tr valign="top" align="left"/b>] [<td width="11%"b>--skip-umount</tdb>]<td width="4%"/p>
<pstyle="margin-left:17%;">2Stops a container and unmountsit (unless <b>--skip-umount</pb> is given). Normally,<b>halt</tdb>(8) is executed inside a container; option<td width="7%"b>--fast</b> makes <b>vzctl</b> use <b>reboot</tdb>(2)syscall instead which is faster but can lead to uncleancontainer shutdown.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Note that<b>vzctl stop</b> is not asyncronous, in other words vzctlwaits for container&rsquo;s init to exit (unless<b>Failed --fast</b> is given), which can take up to set a fair scheduler parameterfew minutes.Default wait timeout is 120 seconds; it can be changedglobally, by setting <b>STOP_TIMEOUT</pb> in[[Man/vz.conf.5|<b>vz.conf</tdb>(5)]], or per container (<b>STOP_TIMEOUT</trb>in[[Man/ctid.conf.5|<tr valign="top" align="left"b>ctid.conf</b>(5)]], see <td width="11%"b>--stop-timeout</tdb>).<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">3Note that thiscommand can lead to execution of <b>stop</pb>, <b>umount</tdb>and <td width="7%"b>postumount</tdb> action scripts (see <b>ACTIONSCRIPTS</b> below).<td width="78%"/p>
<pstyle="margin-left:11%;">Generic system error<b>restart</pb> <i>CTID</i>[<b>--wait</tdb>] [<b>--force</trb>] [<b>--fast<tr valign="top" align="left"/b>][<td width="11%"b>--skip-fsck</tdb>]<td width="4%"/p>
<pstyle="margin-left:17%;">5Restarts a container, i.e.stops it if it is running, and starts again. Accepts all the</pb>start</tdb>and <td width="7%"b>stop</tdb>options.<td width="78%"/p>
<p>The running kernel is not an OpenVZ kernel (or someOpenVZ modules are not loaded)</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">Note that thiscommand can lead to execution of some action scripts (see<td width="11%"b>ACTION SCRIPTS</tdb>below).<td width="4%"/p>
<pstyle="margin-left:11%;">6</pb>status</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<p>Not enough system resources</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Shows a container status. This<td width="11%">is a line with five or six words, separated by spaces.</td><td width="4%"p>
<p>7</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">First word isliterally <b>CTID</tdb>.<td width="78%"/p>
<p><b>ENV_CREATE</b> ioctl failed</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">Second word isthe numeric <td width="11%"i>CT ID</tdi>.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">8Third word isshowing whether this container exists or not, it can beeither </pb>exist</tdb>or <td width="7%"b>deleted</tdb>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Command executed by Fourth word isshowing the status of the container filesystem, it can beeither <b>vzctl execmounted</b> returned non-zeroexit codeor </pb>unmounted</tdb>.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">9Fifth wordshows if the container is running, it can be either</pb>running</tdb>or <td width="7%"b>down</tdb>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Container Sixth word, ifexists, is locked by another <b>vzctlsuspended</b>. It appears if a dump fileinvocationexists for a stopped container (see </pb> suspend</tdb>).</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<p>10</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">This commandcan also be usable from scripts.</td><td width="78%"p>
<pstyle="margin-left:11%;">Global OpenVZ configuration file [[Man/vz.conf.5|<b>vz.confmount</b>(5)]] notfound</pi> CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">11Mounts container private area.Note that this command can lead to execution of<b>premount</pb> and <b>mount</tdb>action scripts (see<td width="7%"b>ACTION SCRIPTS</tdb>below).<td width="78%"/p>
<pstyle="margin-left:11%;">A vzctl helper script file not found</pb>umount</tdb></tri>CTID<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">12Unmounts container privatearea. Note that this command can lead to execution of<b>umount</pb> and <b>postumount</tdb>action scripts (see<td width="7%"b>ACTION SCRIPTS</tdb>below).<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Permission deniedNote that</pb>stop</tdb>does </trb>umount<tr valign="top" align="left"><td width="11%"/b>automatically.</td><td width="4%"p>
<pstyle="margin-left:11%;">13<b>convert</pb> <i>CTID</tdi>[<td width="7%"b>--layoutploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b>|<b>raw</tdb>}]]<td width="78%"/p>
<p>Capability setting failed</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Convert CT private area toreside on a ploop device (available in kernel version<td width="11%">042stab052.8 and greater). Conversion should be performedwhen a container is stopped, plus disk space quota should beset.</td><td width="4%"p>
<pstyle="margin-left:11%;">14</pb>compact</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<p>Container configuration file [[Man/ctid.conf.5|<b>ctid.conf</b>(5)]] notfound</p> </td></tr><tr valign="top" alignstyle="margin-left:17%;">Compact container image. This<td width="11%">only makes sense for ploop layout.</td><td width="4%"p>
<pstyle="margin-left:11%;">15</pb>quotaon</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Timeout Turn disk quota on . Not that<b>vzctl execmount</b>and </pb>start</tdb>does that automatically.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:11%;">16</pb>quotaoff</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Error during Turn disk quota off. Not that<b>vzctl chkpntumount</b>and </pb>stop</tdb>does that automatically.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:11%;">17</pb>quotainit</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Error during Initialize disk quota (i.e. run<b>vzctl restorevzquota init</b><) with the parameters taken from the CTconfiguration file [[Man/p>ctid.conf.5|</tdb>ctid.conf</tr><tr valign="top" align="left"><td width="11%"b>(5)]].</td><td width="4%"p>
<pstyle="margin-left:11%;">18</pb>exec</tdb><td width="7%"i>CTIDcommand</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Error from Executes <bi>setluid()command</bi> syscallin acontainer. Environment variables are not set inside thecontainer. Signal handlers may differ from default settings.If </pi>command</tdi>is </trb>-<tr valign="top" align="left"/b>, commands are read from<td width="11%">stdin.</td><td width="4%"p>
<pstyle="margin-left:11%;">20</pb>exec2</tdb><td width="7%"i>CTIDcommand</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Invalid command line parameterThe same as </pb>exec</td></trb>, butreturn code is that of <tr valign="top" align="left"i>command<td width="11%"/i>.</td><td width="4%"p>
<pstyle="margin-left:11%;">21</pb>runscript</tdb><td width="7%"i>CTIDscript</tdi><td width="78%"/p>
<p>Invalid value for command line parameter</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Run specified shell script inthe container. Argument <td width="11%"i>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, and<td width="4%">unmounts CT root. In the latter case, the container is notreally started, no file systems other than root (such as<pb>22</p>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 basic<td width="7%">operations.</td><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>
<p>23</p></td><td widthstyle="7margin-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>ssh</tdb>(1).<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Container private directory (Option<b>VE_PRIVATE--exec</b>) notsetis used to run </pi> command</tdi>with argumentsafter entering into container. This is useful if command tobe run requires a terminal (so </trb>vzctl exec<tr valign="top" align="left"/b>can not beused) and for some reason you can not use <td width="11%"b>ssh</tdb>(1).<td width="4%"/p>
<p>24</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">You need to logout manually from the shell to finish session (even if youspecified <b>--exec</tdb>).<td width="78%"/p>
<pstyle="margin-left:11%;">Container template directory (<b>TEMPLATEconsole</b>) notset</pi> CTID</td></tr><tr valign="top" align="left"i>[<td width="11%"i>ttynum</tdi>]<td width="4%"/p>
<pstyle="margin-left:17%;">Attach to a container console.Optional <i>ttynum</i> argument is tty number (such as<b>4</b> for <b>28tty4</pb>), default is <b>1</tdb>which is usedfor container&rsquo;s <td width="7%"b>/dev/console</tdb>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Not all required UBC parameters Note theconsoles are setpersistent, unable meaning that: <br>&bull; it can be attached to starteven if the container is notcontainerrunning; </pbr> &bull; there is no automatic detachment upon the containerstop; </td></trbr><tr valign="top" align="left">&bull; detaching from the console leaves anything running in<td width="11%">this console as is.</td><td width="4%"p>
<p>29</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">The followingescape sequences are recognized by <b>vzctl console</tdb>.Note that these sequences are only recognized at thebeginning of a line.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">OS template is not specified, unable to create&bull;container</pb> Esc</tdb>then </trb>.<tr valign="top" align="left"><td width="11%"/b>to detach from the console.</td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">31&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>Container not running</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td widthOther options ==="4%">
<p>32</p></td><td widthstyle="7margin-left:11%;"><b>--help</tdb><td width="78%"/p>
<p>Container already 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>33</p></td><td widthstyle="7margin-left:11%;"><b>--version</tdb><td width="78%"/p>
<p>Unable to stop container</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Prints <td width="11%"b>vzctl</tdb>version.<td width="4%"/p>
<p>34</p></td><td width="7%"></td><td width="78%">ACTION SCRIPTS ==
<pstyle="margin-left:11%; margin-top: 1em">Unable to add IP address <b>vzctl</b>has an ability to execute user-defined scripts when aspecific <b>vzctl</b> command is run for a container. Thefollowing <b>vzctl</b> commands can trigger execution ofaction scripts: <b>start</pb>, <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>40/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">Container not mountedPlease notescripts are executed in a host system (CT0) context, withthe exception of </pb>.start</tdb>and </trb>.stop<tr valign="top" align="left"/b>scripts,<td width="11%">which are executed in a container context.</td><td width="4%"p>
<pstyle="margin-left:11%; margin-top: 1em">41The followingaction scripts are currently defined: <b><br>vps.premount</pb>, <i>CTID</tdi><td width="7%"b>.premount</tdb><td width="78%"/p>
<p>Container already mounted</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Global and per-CT mount scripts<td width="11%">which 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="4%"p>
<pstyle="margin-left:11%;">43<b>vps.mount</pb>,<i>CTID</tdi><td width="7%"b>.mount</tdb><td width="78%"/p>
<p>Container private area not found</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Global and per-CT mount scriptswhich are executed for a container right after it ismounted. Otherwise they are the same as <td width="11%"b>.premount</tdb>scripts.<td width="4%"/p>
<pstyle="margin-left:11%;">44</pi>CTID</tdi><td width="7%"b>.start</tdb><td width="78%"/p>
<p>Container private area already exists</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Right after <td width="11%"b>vzctl</tdb>hasstarted a container, it executes this script in a containercontext.<td width="4%"/p>
<pstyle="margin-left:11%;">46</pi>CTID</tdi><td width="7%"b>.stop</tdb><td width="78%"/p>
<p>Not enough disk space</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Right before <td width="11%"b>vzctl</tdb>hasstopped a container, it executes this script in a containercontext.<td width="4%"/p>
<pstyle="margin-left:11%;">47<b>vps.umount</pb>,<i>CTID</tdi><td width="7%"b>.umount</tdb><td width="78%"/p>
<p>Bad/broken container (<b>/sbin/init</b> or<b>/bin/sh</b> not found)</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Global and per-CT umountscripts which are executed for a container before it isunmounted. Scripts are executed in the host system context,<td width="11%">while a CT is mounted. Global script, if exists, is executedfirst.</td><td width="4%"p>
<pstyle="margin-left:11%;">48<b>vps.postumount</pb>,<i>CTID</tdi><td width="7%"b>.postumount</tdb><td width="78%"/p>
<p>Unable to create a new container private area</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Global and per-CT umountscripts which are executed for a container right after it isunmounted. Otherwise they are the same as <td width="11%"b>.umount</tdb>scripts.<td width="4%"/p>
<pstyle="margin-left:11%; margin-top: 1em">The environmentpassed to all the <b>*mount</b>49scripts is the standardenvironment of the parent (i.e. <b>vzctl</pb>) with twoadditional variables: <b>$VEID</b> and <b>$VE_CONFFILE</tdb>.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 <td width="7%"b>$VE_ROOT</tdb>, it needs to get thosefrom global and per-CT configuration files.<td width="78%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Unable Here is anexample of a mount script, which makes host system&rsquo;s/mnt/disk available to create a new container root area(s). Script name can eitherbe <b>/etc/pvz/conf/vps.mount</b> or<b>/etc/vz/conf/</tdb></tri>CTID<tr valign="top" align="left"/i><td width="11%"b>.mount</tdb>.<td width="4%"/p>
<ppre style="margin-left:11%; margin-top: 1em">50< # 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=/p><mnt/td>disk<td width DST="7%"></td>mnt/disk mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC<td width="78%"/pre>
== EXIT STATUS == <pstyle="margin-left:11%; margin-top: 1em">Unable to mount containerReturns 0 uponsuccess, or an appropriate error code in case of anerror:</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>511</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Failed to unmount containerset a UBC parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>522</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Failed to delete set a containerfair scheduler parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>533</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container private area not existGeneric system error</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>605</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota on</b> failedThe 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>616</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota init</b> failedNot enough system resources</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>627</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota setlimitENV_CREATE</b> ioctl failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>638</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter Command executed by <b>DISKSPACEvzctl exec</b> not setreturned non-zeroexit code</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>649</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter Container is locked by another <b>DISKINODESvzctl</b> not setinvocation</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6510</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting second-level Global OpenVZ configuration file [[Man/vz.conf.5|<b>vz.conf</b>(ugid5) quota]] notfound</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6611</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota off</b> failedA vzctl helper script file not found</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6712</p></td>
<td width="7%"></td>
<td width="78%">
<p>ugid quota not initializedPermission denied</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7113</p></td>
<td width="7%"></td>
<td width="78%">
<p>Incorrect IP address formatCapability setting failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7414</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error changing passwordContainer configuration file [[Man/ctid.conf.5|<b>ctid.conf</b>(5)]] notfound</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7815</p></td>
<td width="7%"></td>
<td width="78%">
<p>IP address already in useTimeout on <b>vzctl exec</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7916</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container action script returned an errorError during <b>vzctl suspend</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8217</p></td>
<td width="7%"></td>
<td width="78%">
<p>Config file copying errorError during <b>vzctl resume</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8618</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting devices (from <b>--devicessetluid()</b> or<b>--devnodes</b>)syscall</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8920</p></td>
<td width="7%"></td>
<td width="78%">
<p>IP address not availableInvalid command line parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>9121</p></td>
<td width="7%"></td>
<td width="78%">
<p>OS template not foundInvalid value for command line parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10022</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to find container IP addressContainer root directory (<b>VE_ROOT</b>) not set</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10423</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container private directory (<b>VE_NETDEVVE_PRIVATE</b> ioctl error) notset</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10524</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container start disabledtemplate directory (<b>TEMPLATE</b>) notset</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10628</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Not all required UBC parameters are set, unable to set iptables on a running startcontainer</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10729</p></td>
<td width="7%"></td>
<td width="78%">
<p>Distribution-specific configuration file OS template is not foundspecified, unable to createcontainer</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10931</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to apply a configContainer not running</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>12932</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to set meminfo parameterContainer already running</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13033</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting veth interfaceUnable to stop container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13134</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting Unable to add IP address to container name</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13340</p></td>
<td width="7%"></td>
<td width="78%">
<p>Waiting for container start failedContainer not mounted</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13941</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error saving container configuration fileContainer already mounted</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>14843</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting container IO parameters (ioprio)Container private area not found</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15044</p></td>
<td width="7%"></td>
<td width="78%">
<p>Ploop image file not foundContainer private area already exists</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15146</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error creating ploop imageNot enough disk space</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15247</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error mounting ploop imageBad/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>15348</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error unmounting ploop imageUnable to create a new container private area</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15449</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to create a new container root area</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>50</p></td><td width="7%"></td><td width="78%"> <p>Unable to mount container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>51</p></td><td width="7%"></td><td width="78%"> <p>Unable to unmount container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>52</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