Changes

Jump to: navigation, search

Man/vzctl.8

19,831 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</i> [<b>--ostemplate&nbsp;</b><i>name</i>][<b>--config&nbsp;</b><i>name</i>][<b>--root&nbsp;parameter value</b><i>path</i>][<b>--private&nbsp;</b><i>path</i>][<b>--ipadd&nbsp;</b><i>addr</i>][<b>--hostname&nbsp;</b><i>name</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>setsnapshot</b> <i>CTID</i> [<b>--save</b>][<b>--setmode&nbsp;restart</b>|<b>ignore</b>][<b>--onboot&nbsp;yes</b>|<b>no</b>][<b>--bootorderid&nbsp;</b><i>number</i>][<b>--root&nbsp;uuid</b><i>path</i>][<b>--private&nbsp;</b><i>path</i>][<b>--userpasswd&nbsp;</b><i>user</i>:<i>pass</i>][<b>--disabled&nbsp;yes</b>|<b>no</b>]
[<b>--name&nbsp;</b><i>name</i>]
[<b>--description&nbsp;</b><i>stringdesc</i>][<b>--ipadd&nbsp;skip-suspend</b><i>addr</i>][<b>--ipdel&nbsp;skip-config</b>]<i/p>addr</itd>|<b/tr>all</btr valign="top" align="left">][<btd width="11%">--hostname&nbsp;</btd><itd width="7%">name</i>][<bp>--nameserver&nbsp;</b><i>addrvzctl</i>][<b>--searchdomain&nbsp;</b><ip>name</itd>][<btd width="2%">--netif_add&nbsp;</btd><itd width="80%">dev </ip>[,<i>paramsflags</i>...]][<b>snapshot--netif_del&nbsp;switch</b><i>devCTID</i>|<b>all</b>][<b>--ifnameskip-resume</b> <i>dev</i>[| <b>--mac&nbsp;must-resume</b><i>hwaddr</i>][<b>--host_ifname&nbsp;skip-config</b><i>dev</i>][<b>--host_mac&nbsp;id</b><i>hwaddruuid</i>][<b/p>--bridge&nbsp;</btd><i/tr>name</itr valign="top" align="left">][<btd width="11%">--mac_filter&nbsp;on</btd>|<btd width="7%">off</b>]][<bp>--numproc&nbsp;</b><i>itemsvzctl</i>][<b>--numtcpsock&nbsp;</bp><i>items</itd>][<btd width="2%">--numothersock&nbsp;</btd><itd width="80%">items </ip>][<b>--vmguarpages&nbsp;</b><i>pagesflags</i>][<b>snapshot--kmemsize&nbsp;delete</b><i>bytesCTID</i>][<b>--tcpsndbuf&nbsp;id</b><i>bytesuuid</i>][<b/p>--tcprcvbuf&nbsp;</b><itd>bytes</itr>][<btr valign="top" align="left">--othersockbuf&nbsp;</btd width="11%"><i>bytes</itd>][<btd width="7%">--dgramrcvbuf&nbsp;</b><i>bytes</i>][<bp>--oomguarpages&nbsp;</b><i>pagesvzctl</i>][<b>--lockedpages&nbsp;</b><ip>pages</itd>][<btd width="2%">--privvmpages&nbsp;</btd><itd width="80%">pages </ip>][<b>--shmpages&nbsp;</b><i>pagesflags</i>][<b>snapshot--numfile&nbsp;mount</b><i>itemsCTID</i>][<b>--numflock&nbsp;id</b><i>itemsuuid</i>][<b>--numpty&nbsp;target</b><i>itemsdir</i>][<b/p>--numsiginfo&nbsp;</b><itd>items</itr>][<btr valign="top" align="left">--dcachesize&nbsp;</btd width="11%"><i>bytes</itd>][<btd width="7%">--numiptent&nbsp;</b><i>num</i>][<bp>--physpages&nbsp;</b><i>pagesvzctl</i>][<b>--swappages&nbsp;</bp><i>pages</itd>][<btd width="2%">--ram&nbsp;</btd><itd width="80%">bytes </ip>][<b>--swap&nbsp;</b><i>bytesflags</i>][<b>snapshot--cpuunits&nbsp;umount</b><i>numCTID</i>][<b>--cpulimit&nbsp;id</b><i>numuuid</i>][<b/p>--cpus&nbsp;</btd><i>num</itr>][<b>--cpumask&nbsp;</btr valign="top" align="left"><itd width="11%">cpus</itd>|<btd width="7%">all </bp>][<b>--meminfo&nbsp;nonevzctl</b>|<i>mode</i>:<ip>value</itd>][<btd width="2%">--iptables&nbsp;</btd><itd width="80%">name </ip>][<b>--netdev_add&nbsp;</b><i>ifnameflags</i>][<b>snapshot--netdev_del&nbsp;list</b><i>ifnameCTID</i>][<b>--diskquota&nbsp;yes</b>|<b>noH</b>][<b>--diskspace&nbsp;o</b><i>numfield</i>][<b>--diskinodes&nbsp;</b>,<i>numfield</i>...][<b>--quotatime&nbsp;id</b><i>secondsuuid</i>][<b/p>--quotaugidlimit&nbsp;</btd><i/tr>num</itr valign="top" align="left">][<btd width="11%">--noatime&nbsp;yes</btd>|<btd width="7%">no </bp>][<b>--capability&nbsp;vzctl</b><i>capname</i>:<bp>on</btd>|<btd width="2%">off</btd>][<btd width="80%">--devnodes&nbsp; </bp>[<i>paramflags</i>][<b>--devices&nbsp;set</b><i>param</i>][<b>CTID --pci_add&nbsp;parameter value</b><i>dev</i>][<b>--pci_del&nbsp;</b><i>dev</i>...][<b>--features&nbsp;</b><i>param</i>:<b>on</b>|<b>offsave</b>][<b>--applyconfig&nbsp;force</b><i>name</i>][<b>--applyconfig_mapsetmode&nbsp;restart</b><i>group</i>][|<b>--ioprio&nbsp;ignore</b><i>num</i>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>destroyset</b> | <bi>deleteCTID</b> |<b>mount</b> | <b>umount</b> | <b>status</b> |<b>quotaon</b> | <b>quotaoff</b> | <b>quotainit</bi> |<b>console</b> | <b>convert--reset_ub</b> <i>CTID</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>execdestroy</b> | <b>exec2delete</b> |<ib>mount</b> | <b>umount</b> | <b>status</b>CTID|command<b>quotaon</b> | <b>quotaoff</b> | <b>quotainit</ib> [<i>argCTID</i> ...]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>enterconsole</b> <i>CTID</i>[<b>--exec&nbsp;</b><i>command&nbsp;</i>[<i>arg&nbsp;ttynum</i>...]]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>runscriptconvert</b> <i>CTID script</i>[<b>--layout&nbsp;ploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b>|<b>raw</b>}]]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>--helpcompact</b> | <bi>--versionCTID</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>[<i>flags</i>] <b>exec</b> | <b>exec2</b> <i>CTIDcommand</i> [<i>arg</i> ...]</p></td></tr><tr valign="top" align="margin-left:11%; margin-top: 1em">Utility<btd width="11%">vzctl</btd> runs on the host system (otherwise known asHardware Node, or HN) and performs direct manipulations withcontainers (CTs).</ptd 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>enter</b> <i>CTID</i>[<b>--exec&nbsp;</b><i>command&nbsp;</i>[<i>arg&nbsp;</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="80%"> <p>[<i>flags</i>] <b>runscript</b> <i>CTID script</i></p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="7%"> <p><b>vzctl</b></p></td><td width="2%"></td><td width="80%"> <p><b>--help</b> | <b>--version</b></p></td></tr></table> == DESCRIPTION == <p style="margin-left:11%; margin-top: 1em">Utility<b>vzctl</b> runs on the host system (otherwise known asHardware Node, or HN) and performs direct manipulations withcontainers (CTs).</p> <p style="margin-left:11%; margin-top: 1em">Containers canbe referred to by either numeric <i>CTID</i> or by name (see<b>--name</b> option). Note that CT ID &lt;= 100 arereserved for OpenVZ internal purposes. A numeric ID shouldnot be more than <b>2147483644</b>.</p> == OPTIONS == === Flags ===
<p style="margin-top: 1em">These flags come before a
=== Setting container parameters ===
<p styletable width="margin-left:11100%;"><b>set</b> <i>CTIDborder="0" rules="none" frame="void"parameters</i> [<b>--save</b>] [<b>--force</b>]</p cellspacing="0" cellpadding="0"> <p styletr valign="top" align="margin-left:17%;">This command sets variouscontainer parameters. If a <btd width="11%">--save</btd> flag is given,parameters are saved in container configuration file[[Man/ctid.conf.5|<b>ctid.conf</b>(5)]]. Use <b>--force</b> to save theparameters even if the current kernel doesn&rsquo;t supportOpenVZ. If the container is currently running, <b>vzctl</b>applies these parameters to the container.</ptd width="4%">
<p style="margin-left:17%; margin-top: 1em">The followingparameters can be used with <b>set</b> command.</p></td><td width="2%"></td><td width="83%">
==== Miscellaneous ==== <p style="margin-lefttop:11%;1em"><i>CTID</i>[<b>--onboot &nbsp;yes</b> |<b>no</b>][<b>--bootorder&nbsp;</b><i>number</i>][<b>--root&nbsp;</b><i>path</i>][<b>--private&nbsp;</b><i>path</i>][<b>--mount_opts&nbsp;</b><i>options</i>][<b>--userpasswd&nbsp;</b><i>user</i>:<i>pass</i>][<b>--disabled&nbsp;yes</b>|<b>no</b>][<b>--name&nbsp;</b><i>name</i>][<b>--description&nbsp;</b><i>string</i>][<b>--ostemplate&nbsp;</pb><i>string</i>][<b>--stop-timeout&nbsp;</b><i>seconds</i>][<b>--ipadd&nbsp;</b><i>addr</i>][<b>--ipdel&nbsp;</b><i>addr</i>|<b>all</b>][<b>--hostname&nbsp;</b><i>name</i>][<b>--nameserver&nbsp;<p style="margin/b><i>addr</i>][<b>--left:17%searchdomain&nbsp;"</b><i>name</i>Sets whether the container will]be started during system boot[<b>--netif_add&nbsp;</b><i>dev</i>[,<i>params</i>... The container will not be]][<b>--netif_del&nbsp;</b><i>dev</i>|<b>all</b>][<b>--ifname</b> <i>dev</i>[<b>--mac&nbsp;</b><i>hwaddr</i>]auto[<b>--started unless this parameter is set to host_ifname&nbsp;</b><i>dev</i>][<b>yes--host_mac&nbsp;</b>.<i>hwaddr</pi>][<b>--bridge&nbsp;</b><i>name</i>][<p style="marginb>--left:11%mac_filter&nbsp;"on</b>|<b>off</b>]][<b>--bootordernumproc&nbsp;</b><i>items</i>][<b>--numtcpsock&nbsp;</b><i>numberitems</i>][<b>--numothersock&nbsp;</pb><i>items</i>][<b>--vmguarpages&nbsp;</b><i>pages</i>][<p style="marginb>--left:17%kmemsize&nbsp;"</b><i>bytes</i>Sets the boot order priority]for this CT. The higher the [<b>--tcpsndbuf&nbsp;</b><i>numberbytes</i> is, the earlier in]the boot process this container starts. By default this[<b>--tcprcvbuf&nbsp;</b><i>bytes</i>]parameter is unset, which is considered to be the lowest[<b>--othersockbuf&nbsp;</b><i>bytes</i>]priority, so containers with unset [<b>bootorder--dgramrcvbuf&nbsp;</b> will<i>bytes</i>]start last.[<b>--oomguarpages&nbsp;</b><i>pages</pi>][<b>--lockedpages&nbsp;</b><i>pages</i>][<p style="marginb>--left:11%privvmpages&nbsp;"</b><i>pages</i>][<b>--rootshmpages&nbsp;</b> <i>pathpages</i>][<b>--numfile&nbsp;</b><i>items</pi>][<b>--numflock&nbsp;</b><i>items</i>][<p style="marginb>--left:17%numpty&nbsp;"</b><i>items</i>Sets the path to root directory]([<b>VE_ROOT--numsiginfo&nbsp;</b>) for this container. This is essentially a<i>items</i>]mount point for container[<b>--dcachesize&rsquonbsp;s root directory. Argument</b><i>bytes</i>]can contain literal string [<b>$VEID--numiptent&nbsp;</b>, which will be<i>num</i>]substituted with the numeric CT ID.[<b>--physpages&nbsp;</b><i>pages</pi>][<b>--swappages&nbsp;</b><i>pages</i>][<p style="marginb>--left:11%ram&nbsp;"</b><i>bytes</i>][<b>--privateswap&nbsp;</b><i>bytes</i>][<b>--vm_overcommit&nbsp;</b><i>pathfloat</i>][<b>--cpuunits&nbsp;</b><i>num</pi>][<b>--cpulimit&nbsp;</b><i>num</i>][<p style="marginb>--left:17%cpus&nbsp;"</b><i>num</i>Sets the path to private]directory ([<b>VE_PRIVATE--cpumask&nbsp;</b><i>cpus</i>|<b>auto</b>|<b>all</b>) for this container. This is a]directory in which [<b>--nodemask&nbsp;</b><i>nodes</i>|<b>all the container</b>][<b>--meminfo&rsquonbsp;s files arenone</b>|<i>mode</i>:<i>value</i>]stored[<b>--iptables&nbsp;</b><i>name</i>[<b>,</b>... Argument can contain literal string ]][<b>--netfilter&nbsp;disabled</b>|<b>stateless</b>|<b>stateful</b>|<b>full</b>][<b>--netdev_add&nbsp;</b><i>ifname</i>][<b>--netdev_del&nbsp;</b><i>ifname</i>][<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>--userpasswdquotaugidlimit&nbsp;</b><i>num</i>][<b>--capability&nbsp;</b><i>usercapname</i>:<b>on</b>|<b>off</b>[<b>,</b>...]][<b>--devnodes&nbsp;</b><i>param</i>][<b>--devices&nbsp;</b><i>param</i>password][<b>--pci_add&nbsp;</b><i>dev</pi>][<b>--pci_del&nbsp;</b><i>dev</i>][<p style="marginb>--leftfeatures&nbsp;</b><i>name</i>:17%<b>on</b>|<b>off</b>[<b>,</b>...]][<b>--applyconfig&nbsp;</b><i>name</i>][<b>--applyconfig_map&nbsp;"</b><i>group</i>Sets password for the given]user in a container, creating the user if it does not[<b>--ioprio&nbsp;</b><i>num</i>]exists. Note that this option is not saved in configuration[<b>--iolimit&nbsp;</b><i>mbps</i>]file at all (so [<b>--iopslimit&nbsp;</b><i>iops</i>] [<b>--save</b> flag is useless), it is]applied to the container (by modifying its [<b>--force</etcb>] [<b>--reset_ub</passwd andb>][<b>--setmode&nbsp;restart</etcb>|<b>ignore</shadow files).b>]</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"></td><td width="2%"></td><p styletd width="margin-left:1783%; margin-top: 1em">In case <p>This command sets various container parameters. If thecontainer root filesystem is not mountedcurrently running, it is<b>vzctl</b> applies theseautomatically mounted, then all parameters to the appropriate file changescontainer. The following options can beare applied, then it is unmountedused with <b>set</b> command.</p></td></tr></table>
<p style="margin-left:17%; margin-top: 1em">Note thatcontainer should be created before using this option.</p>=== Flags ====
<p style="margin-left:11%;"><b>--disabled yes</b> |<b>nosave</b></p>
<p style="margin-left:17%;">Disable If this flag is given,parameters are saved in container startconfiguration file[[Man/ctid.conf. Toforce the start of a disabled container, use 5|<b>vzctl start--forcectid.conf</b>(5)]].</p>
<p style="margin-left:11%;"><b>--nameforce</b> <i>name</i></p>
<p style="margin-left:17%;">Add a name for a container. TheIf this flag is given togetherwith <ib>name--save</ib> can later be used in subsequent calls to, parameters are saved even if the currentkernel doesn&rsquo;t support OpenVZ. Note this flag does notmake sense without <b>vzctl--save</b> in place of , so <ib>CTID--save</ib>isrequired.</p>
<p style="margin-left:11%;"><b>--descriptionreset_ub</b><i>string</i></p>
<p style="margin-left:17%;">Add a textual description for If this flag is given,<b>vzctl</b> applies all User Beancounter parameters fromthe configuration file to arunning container. This ishelpful in case configuration file is modified manually.Please note this flag is exclusive, i.e. it can not becontainercombined with any other options or flags.</p>
<p style="margin-left:11%;"><b>--setmoderestart</b>|<b>ignore</b></p>
<p style="margin-left:17%;">Whether to restart a A few parameters can only beapplied by restarting the container. By default,after applying <b>vzctl</b> prints a warning if such parameters that require the aresupplied and a container is running. Use <b>--setmoderestart</b> together with <b>--save</b> flag to berestart arestarted container in order such a case, or <b>--setmode ignore</b> to take effectsuppress the warning.</p>
==== Networking Miscellaneous ====
<p style="margin-left:11%;"><b>--ipaddonboot yes</b> |<ib>addrno</ib></p>
<p style="margin-left:17%;">Adds an IP address Sets whether the container willbe started during system boot. The container will be startedon boot by <ib>addrvz</ib>initscript if either this parameter isset to a given container. Address can optionally have a netmaskspecified in the CIDR notation (e.g. <b>10.1.2.3/25yes</b>)., or the container was running just beforeNote that last reboot, and this option parameter is incremental, so not set to <ib>addrno</ib> are.added to already existing onesDefault value is unset, meaning the container will bestarted if it was running before the last reboot.</p>
<p style="margin-left:11%;"><b>--ipdelbootorder</b> <i>addrnumber</i> |<b>all</b></p>
<p style="margin-left:17%;">Removes IP address Sets the boot order priorityfor this CT. The higher the <i>addrnumber</i>is, the earlier infrom a the boot process this containerstarts. If you want By default thisparameter is unset, which is considered to remove all be the addresseslowestpriority,use so containers with unset <b>--ipdel allbootorder</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. This is essentially amount point for container&rsquo;s root directory. Argumentcan contain literal string <b>$VEID</b>, which will besubstituted with the numeric CT ID.</p>
<p style="margin-left:1711%;">Sets container hostname.<b>vzctl--private</b> writes it to the appropriate file inside acontainer (distribution-dependent).<i>path</i></p>
<p style="margin-left:1117%;">Sets the path to privatedirectory (<b>--nameserverVE_PRIVATE</b>) for this container. This is adirectory in which all the container&rsquo;s files arestored. Argument can contain literal string <ib>addr$VEID</ib>,which will be substituted with the numeric CT ID.</p>
<p style="margin-left:1711%;">Sets DNS server IP address fora container. If you want to set several nameservers, youshould do it at once, so use <b>--nameservermount_opts</b> optionmultiple times in one call to <bi>vzctloption</i>[<b>, as all the nameserver values set in previous calls to </b>vzctl<i>option</bi> areoverwritten...]</p>
<p style="margin-left:1117%;">Sets additional mount optionsfor container file system. Only applicable for <b>--searchdomainploop</b><i>name</i>layout, ignored otherwise.</p>
<p style="margin-left:1711%;">Sets DNS search domains for acontainer. If you want to set several search domains, youshould do it at once, so use <b>--searchdomainuserpasswd</b> optionmultiple times in one call to <bi>vzctluser</bi>, as all thesearch domain values set in previous calls to :<bi>vzctlpassword</bi>are overwritten.</p>
<p style="margin-left:1117%;">Sets password for the givenuser in a container, creating the user if it does notexists. Note that this option is not saved in configurationfile at all (so <b>--netif_addsave</b>flag is useless), it is<i>ifname[</i>applied directly to the container,<i>mac</i>,<i>host_ifname</i>,<i>host_mac</i>,<i>bridge]</i>by runningdistribution-specific programs inside the container. It isnot recommended to combine this option with any otheroptions.</p>
<p style="margin-left:17%;margin-top: 1em">Adds a virtual Ethernet deviceIn case(veth) to a given container. Here <i>ifname</i> is theEthernet device name in the container, <i>mac</i> is its MACaddresswas not running, <i>host_ifname</i> it is the Ethernet device name onautomatically started thenall the hostappropriate changes are applied, and <i>host_mac</i> then it is its MAC address. MACaddresses should be in the format like XX:XX:XX:XX:XX:XX.<i>bridge</i> is an optional parameter which can be used incustom network start scripts to automatically add theinterface to a bridge. All parameters except <i>ifname</i>are optional and are automatically generated if notspecifiedstopped.</p>
<p style="margin-left:1117%;margin-top: 1em"><b>--netif_del</b>Note that<i>dev_name</i> | <b>all</b>container should be created before using this option.</p>
<p style="margin-left:1711%;">Removes virtual Ethernet devicefrom a container. If you want to remove all devices, use<b>--disabled yes</b> |<b>allno</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:11%;"><b>--bridgestop-timeout</b> <i>nameseconds</i></p>
<p style="margin-left:2217%;">Bridge nameSets a time to wait forcontainer to stop on <b>vzctl stop</b> before forciblykilling it, in seconds. Custom networkstart scripts Note this option can use this value to automatically add thenot be usedinterface to a bridgewithout <b>--save</b> flag.</p>
<p style="margin-left:1117%;margin-top: 1em"><b>--mac_filter on</b> |Special valueof <b>off0</b>means to use compiled-in default.</p>
<p style="margin-left:22%;">Enables/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: <br>&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); <br>&bull; it is impossible to modify the veth MAC address frominside the Container.</p>=== Networking ====
<p style="margin-left:2211%; margin"><b>-top: 1em"-ipadd</b> <i>addr</i>By default,this functionality is enabled for all veth devices existinginside the Container.</p>
<p style==== VSwap limits ===="margin-left:17%;">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 option is incremental, so <i>addr</i> areadded to already existing ones.</p>
<p style="margin-left:11%; margin-top: 1em">The followingoptions sets memory and swap limits for VSwap<b>--enabledipdel</b> <i>addr</i> |kernels (kernel version 042stab042 or greater).<b>all</b></p>
<p style="margin-left:1117%; margin-top: 1em">Argument is inRemoves IP address <i>addr</i>bytesfrom a container. If you want to remove all the addresses, with an optional suffixuse <b>--ipdel all</b>. Available suffixes are:</p>
<table widthp style="100margin-left:11%;" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left"b>--hostname</b><td width="11%"i>name</tdi><td width="6%"/p>
<pstyle="margin-left:17%;">Sets container hostname.<b>T</b>, <b>tvzctl</b>writes it to the appropriate file inside acontainer (distribution-dependent).</p></td><td width="5%"></td><td width="44%">
<p>terabytes;</p></td><td widthstyle="34margin-left:11%;"></tdb>--nameserver</tr><tr valign="top" align="left"b><td width="11%"i>addr</tdi><td width="6%"/p>
<pstyle="margin-left:17%;">Sets DNS server IP address fora container. If you want to set several nameservers, youshould do it at once, so use <b>G--nameserver</b>, optionmultiple times in one call to <b>gvzctl</b>, as all the nameserver values set in previous calls to </pb>vzctl</tdb>are<td width="5%">overwritten.</td><td width="44%"p>
<p>gigabytes;</p></td><td widthstyle="34margin-left:17%; margin-top: 1em">A special valueof </tdb>inherit</trb>can be used to auto-propagate nameserver<tr valign="top" align="left">value(s) from the host system&rsquo;s<td width="11%"b>/etc/resolv.conf</tdb>file.<td width="6%"/p>
<pstyle="margin-left:11%;"><b>M--searchdomain</b>, <bi>mname</bi></p></td><td width="5%"></td><td width="44%">
<p>megabytes;</p></td><td widthstyle="34margin-left:17%;">Sets DNS search domains for acontainer. If you want to set several search domains, youshould do it at once, so use </tdb>--searchdomain</trb>optionmultiple times in one call to <b>vzctl<tr valign="top" align="left"/b>, as all thesearch domain values set in previous calls to <td width="11%"b>vzctl</tdb>are overwritten.<td width="6%"/p>
<pstyle="margin-left:17%; margin-top: 1em">A special valueof <b>Kinherit</b>, can be used to auto-propagate searchdomain value(s) from the host system&rsquo;s<b>k/etc/resolv.conf</b>file.</p></td><td width="5%"></td><td width="44%">
<pstyle="margin-left:11%;"><b>kilobytes;--netif_add</pb><i>ifname[</tdi>,<td width="34%"i>mac</tdi>,<i>host_ifname</tri>,<i>host_mac<tr valign="top" align="left"/i>,<td width="11%"i>bridge]</tdi><td width="6%"/p>
<pstyle="margin-left:17%;">Adds a virtual Ethernet device(veth) to a given container. Here <i>ifname</i>is theEthernet device name in the container, <bi>Pmac</bi>is its MACaddress, <bi>phost_ifname</bi>is the Ethernet device name onthe host, and <i>host_mac</pi> is its MAC address. MACaddresses should be in the format like XX:XX:XX:XX:XX:XX.<i>bridge</tdi>is an optional parameter which can be used incustom network start scripts to automatically add theinterface to a bridge. All parameters except <td width="5%"i>ifname</tdi>are optional and are automatically generated if notspecified.<td width="44%"/p>
<pstyle="margin-left:11%;">memory pages (arch-specific).</pb>--netif_del</tdb><td width="34%"i>dev_name</tdi>| <b>all</trb></tablep>
<p style="margin-left:1117%;">Removes virtual Ethernet devicefrom a container. If you want to remove all devices, use<b>--ramall</b> <i>bytes</i>.</p>
==== veth interface configuration ==== <p style="margin-left:2211%;margin-top: 1em">Sets physical memory (RAM)The followingavailable options can be used to a containerreconfigure the already-createdvirtual Ethernet interface. Actually, To select the option is a shortcutinterface tofor setting configure, use <b>--physpagesifname</b> limit (the barrier is set to<i>name</i> option. <b><br>0).--mac</b> <i>XX:XX:XX:XX:XX:XX</i></p>
<p style="margin-left:1122%;"><b>--swap</b> <i>bytes</i>MAC address of interface insidea container.</p>
<p style="margin-left:2211%;">Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>--swappageshost_ifname</b> limit (the barrier is set to 0).<i>name</i></p>
<p style="margin-left:1122%; margin-top: 1em">Here is aninterface name for virtualexample of setting container 777 to have 512 megabytes ofRAM and 1 gigabyte of swap:interface in the host system.</p>
<pre p style="margin-left:11%;"> vzctl set 777 <b>--ram 512M --swap 1G --savehost_mac</b><i>XX:XX:XX:XX:XX:XX</i></prep>
<p style==== User Beancounter limits ===="margin-left:22%;">MAC address of interface in thehost system.</p>
<p style="margin-left:1122%; margin-top: 1em">The followingIf you want anoptions sets barrier and limit for various userindependent communication with the Container through thebeancountersbridge, you should specify a multicast MAC address here(FE:FF:FF:FF:FF:FF).</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>--rambridge</b> and--swap (see above). For older kernels, these limits areobligatory.<i>name</i></p>
<p style="margin-left:1122%; margin-top: 1em">Each optionrequires one or two argumentsBridge name. In case of one argument,Custom network<b>vzctl</b> sets barrier and limit start scripts can use this value to automatically add the same value. Incase of two colon-separated arguments, the first is interface to abarrier, and the second is a limit. Each argument is eithera number, a number with a suffix, or a special value<b>unlimited</b>bridge.</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 mac_filter on x86 and x86_64</b> |platforms.<b>off</b></p>
<p style="margin-left:1122%; margin-top: 1em">You can alsospecify different suffixes for <b>set<Enables/b> parameters (exceptdisables MAC addressfiltering for the parameters which names start with <b>num</b>). ForContainer veth device and the possibilityexample, <b>vzctl set</b> <i>CTID</i> <b>--privvmpagesof configuring the MAC address of this device from inside5Mthe Container. If the filtering is turned on:6M</b> should set <b>privvmpages</bbr>&rsquobull; barrier the veth device accepts only those packets that havea MAC address in their headers corresponding to 5that of thismegabytes device (excluding all broadcast and its limit to 6 megabytes.multicast packets); </pbr<p style="margin-left:11%&bull; margin-top: 1em">Availableit is impossible to modify the veth MAC address fromsuffixes are:inside the Container.</p>
<table widthp style="100margin-left:22%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0; margin-top: 1em">By default,<tr valign="top" align="left">this functionality is enabled for all veth devices existing<td width="11%">inside the Container.</td><td width="6%"p>
<p><b>T</b>, <b>t</b></p></td><td width="5%"></td><td width="44%">== VSwap limits ====
<p>terabytes;</p></td><td widthstyle="34margin-left:11%; margin-top: 1em">The following</td></tr>options sets memory and swap limits for VSwap-enabled<tr valign="top" align="left"><td width="11%">kernels (kernel version 042stab042 or greater).</td><td width="6%"p>
<p><b>G</b>, <b>g</b></p></td><td widthstyle="5margin-left:11%; margin-top: 1em">Argument is inbytes, unless otherwise specified by an optional suffix.Available suffixes are:</td><td width="44%"p>
<pstyle="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</pb>, <b>m</tdb> - megabytes; <br>&bull; <b>K</b>, <b>k<td width="34%"/b> - kilobytes; <br>&bull; <b>P</tdb>, <b>p</trb>- memory pages (arch-specific,usually 4KB); <tr valign="top" align="left"br>&bull; <b>B</b>, <td width="11%"b>b</tdb>- bytes (this is the default).<td width="6%"b><br>--ram</b> <i>bytes</i></p>
<pstyle="margin-left:22%;"><b>M</b>Sets physical memory (RAM)available to a container. Actually, the option is a shortcutfor setting <b>m--physpages</b>limit (the barrier is set to0).</p></td><td width="5%"></td><td width="44%">
<p>megabytes;</p></td><td widthstyle="34margin-left:11%;"></tdb>--swap</tr><tr valign="top" align="left"b><td width="11%"i>bytes</tdi><td width="6%"/p>
<pstyle="margin-left:22%;"><b>K</b>Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>k--swappages</b>limit (the barrier is set to 0).</p></td><td width="5%"></td><td width="44%">
<p>kilobytes;</p></td><td widthstyle="34margin-left:11%;"></tdb>--vm_overcommit</tr><tr valign="top" align="left"b><td width="11%"i>float</tdi><td width="6%"/p>
<pstyle="margin-left:22%;">Set VM overcommitment value to<bi>Pfloat</bi>. If set, it is used to calculate<b>pprivmmpages</b>parameter in case it is not setexplicitly (see below). Default value is </pb>0</tdb>, meaning<td width="5%">unlimited privvmpages.</td><td width="44%"p>
<pstyle="margin-left:11%; margin-top: 1em">memory pages (arch-specific).</pb>vzctl</tdb><td width="34%">checks if running kernel is VSwap capable, and refuses touse these parameters otherwise. This behavior can beoverriden by using </tdb>--force</trb>flag beforeparameters.</tablep>
<p style="margin-left:11%; margin-top: 1em">You can alsoIn VSwap mode,specify the literal word <b>unlimited</b> in place of aall beancounters other than RAM and swap become optional.number. In Note though that case the corresponding value will be if some optional beancounters are not set to,<b>LONG_MAX</b>they are calculated and set by vzctl implicitly, i. e. using the maximum possible value. <b><br>--numproc</b> <i>items</i>[following formulae:<i>items</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of processes and<b>&bull;kernel-level threadslockedpages. Setting the barrier and the limit todifferent values does not make practical sense= oomguarpages.barrier = ram</b></p>
<p style="margin-left:11%;margin-top: 1em"><b>--numtcpsock&bull;lockedpages.limit = oomguarpages.limit = unlimited</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of TCP sockets.<b>&bull;This parameter limits the number of TCP connections and,thus, the number of clients the server application canhandle in parallelvmguarpages. Setting the barrier and the = vmguarpages.limit todifferent values does not make practical sense.= ram + swap</b></p>
<p style="margin-left:11%;margin-top: 1em"><b>--numothersock&bull;privvmpages.barrier = privvmpages.limit = (ram + swap) *vm_overcommit</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of non-TCP(ifsockets (local sockets<b>vm_overcommit</b> is <b>0</b> or not set, UDP and other types of sockets).Setting the barrier and the limit <b>privvmpages</b> is set to different values doesnot make practical sense.&quot;unlimited&quot;)</p>
<p style="margin-left:11%;margin-top: 1em"><b>--vmguarpages</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%;">Memory allocation guarantee.This parameter controls how much memory 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 vzctl set to <b>unlimited</b>.777 --ram 512M --swap 1G --save</ppre>
<p style="margin-left:11%;"><b>--kmemsize</b><i>bytes</i>[:<i>bytes</i>]</p>=== User Beancounter limits ====
<p style="margin-left:2211%;margin-top: 1em">Maximum amount of kernel memoryused. This parameter is related to <b>--numproc</b>. Eachprocess 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: equalThe followingoptions sets barrier and limit may lead to the situation where the kernelfor various userwill need to kill container&rsquo;s applications to keep the<b>kmemsize</b> usage under the limitbeancounters.</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>--tcpsndbufram</b>and<ib>bytes--swap</ib>[:<i>bytes</i>](see above). For older kernels, these limitsare obligatory.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size Each optionrequires one or two arguments. In case of TCP sendone argument,buffers<b>vzctl</b> sets barrier and limit to the same value. Barrier should be not less than 64 KBIncase of two colon-separated arguments, andthe first is adifference between barrier , and the second is a limit should be equal to . Each argument is eithera number, a number with a suffix, ora special valuemore than value of <b>numtcpsockunlimited</b> multiplied by 2.5KB.</p>
<p style="margin-left:11%;margin-top: 1em"><b>--tcprcvbuf</b>Arguments are<i>in items, pages or bytes</i>[:<i>. Note that page size isarchitecture-specific, it is 4096 bytes</i>]on x86 and x86_64platforms.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size of TCP receiveYou can alsobuffersspecify different suffixes for User Beancounter parameters(except for those which names start with <b>num</b>). Barrier should be not less than 64 KBForexample, and<b>vzctl set</b> <i>CTID</i> <b>--privvmpagesdifference between barrier and limit 5M:6M</b> should be equal to ormore than value of set <b>numtcpsockprivvmpages</b> multiplied by 2.&rsquo; barrier to 5KBmegabytes and its limit to 6 megabytes.</p>
<p style="margin-left:11%;margin-top: 1em"><b>--othersockbuf</b>Available<i>bytes</i>[suffixes are:<i>bytes</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size of other (non&bull;<b>T</b>, <b>t</b> -TCP)terabytes; <br>socket send buffers. If container&rsquobull; <b>G</b>, <b>g</b> - gigabytes;s processes needs to<br>send very large datagrams&bull; <b>M</b>, the barrier should be set<b>m</b> - megabytes; <br>accordingly. Increased limit is necessary for high&bull; <b>K</b>, <b>k</b> - kilobytes; <br>performance of communications through local &bull; <b>P</b>, <b>p</b> - memory pages (UNIXarch-domainspecific,usually 4KB); <br>sockets&bull; <b>B</b>, <b>b</b> - bytes.</p>
<p style="margin-left:11%;margin-top: 1em">You can alsospecify the literal word <b>unlimited</b> in place of anumber. In that case the corresponding value will be set to<b>LONG_MAX</b>, i. e. the maximum possible value. <b><br>--dgramrcvbufnumproc</b><i>bytesitems</i>[:<i>bytesitems</i>]</p>
<p style="margin-left:22%;">Maximum size number of other (non-TCP)socket receive buffers. If container&rsquo;s processes needsandto receive very large datagrams, the barrier should be setaccordinglykernel-level threads. The difference between Setting the barrier and thelimit tolimit is different values does not neededmake practical sense.</p>
<p style="margin-left:11%;"><b>--oomguarpagesnumtcpsock</b><i>pagesitems</i>[:<i>pagesitems</i>]</p>
<p style="margin-left:22%;">Guarantees against OOM killMaximum number of TCP sockets.Under this beancounter the kernel accounts This parameter limits the total amountnumber of memory TCP connections and swap space used by ,thus, the container&rsquo;sprocesses. The barrier number of this parameter is clients theserver application canout-of-memory guaranteehandle in parallel. If Setting the <b>oomguarpages</b> usage isbelow barrier and the barrier, processes of this container arelimit toguaranteed different values does not to be killed in out-of-memory situations. Themeaning of limit is currently unspecified; it should be setto <b>unlimited</b>make practical sense.</p>
<p style="margin-left:11%;"><b>--lockedpagesnumothersock</b><i>pagesitems</i>[:<i>pagesitems</i>]</p>
<p style="margin-left:22%;">Maximum number of pagesnon-TCPacquired by <b>mlock</b>sockets (2local sockets, UDP and other types of sockets).Setting the barrier and the limit to different values doesnot make practical sense.</p>
<p style="margin-left:11%;"><b>--privvmpagesvmguarpages</b>
<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">Allows controlling the amountMemory allocation guarantee.of This parameter controls how much memory allocated by the applications. For shared (mappedis available to aas <b>MAP_SHARED</b>) pages, each container really using amemory page . The barrier is charged for the fraction amount of the page(depending on the number of others using it). Formemory thatcontainer&quotrsquo;potentially private&quots applications are guaranteed to be able toallocate. The meaning of the limit is currently unspecified; pages (mapped asit should be set to <b>MAP_PRIVATEunlimited</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 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>--vmguarpageskmemsize</b> guarantee.<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:1122%;">Maximum amount of kernel memoryused. This parameter is related to <b>--shmpagesnumproc</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%;">Maximum IPC SHM segment size.<b>--tcpsndbuf</b>Setting the barrier and the limit to different values doesnot make practical sense.<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:1122%;">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>--numfilenumtcpsock</b>multiplied by 2.5<i>items</i>[:<i>items</i>]KB.</p>
<p style="margin-left:2211%;">Maximum number of open files.In most cases the barrier and the limit should be set to thesame value. Setting the barrier to <b>0--tcprcvbuf</b> effectivelydisables pre-charging optimization for this beancounter inthe kernel, which leads to the held value being precise butcould slightly degrade file open performance.<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:1122%;">Maximum size of TCP receivebuffers. Barrier should be not less than 64 KB, anddifference between barrier and limit should be equal to ormore than value of <b>--numflocknumtcpsock</b>multiplied by 2.5<i>items</i>[:<i>items</i>]KB.</p>
<p style="margin-left:2211%;">Maximum number of file locks.<b>--othersockbuf</b>Safety gap should be between barrier and limit.<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:11%;"><b>--numpty</b><i>items</i>[:<i>items</i>]</p> <p style="margin-left:22%;">Number Maximum size of pseudoother (non-terminalsTCP)(PTY)socket send buffers. Note that in OpenVZ each If container can have not more&rsquo;s processes needs tothan 255 PTYs. Setting send very large datagrams, the barrier and the should be setaccordingly. Increased limit tois necessary for highperformance of communications through local (UNIX-domain)different values does not make practical sensesockets.</p>
<p style="margin-left:11%;"><b>--numsiginfodgramrcvbuf</b><i>itemsbytes</i>[:<i>itemsbytes</i>]</p>
<p style="margin-left:22%;">Number Maximum size of siginfo structuresother (non-TCP)socket receive buffers.If container&rsquo;s processes needsSetting to receive very large datagrams, the barrier should be setaccordingly. The difference between the barrier and the limit to different values doesis not make practical senseneeded.</p>
<p style="margin-left:11%;"><b>--dcachesizeoomguarpages</b><i>bytespages</i>[:<i>bytespages</i>]</p>
<p style="margin-left:22%;">Maximum size Guarantees against OOM kill.Under this beancounter the kernel accounts the total amountoffilesystem-related caches, such as directory entry memory and inodeswap space used by the container&rsquo;scachesprocesses. Exists as a separate The barrier of this parameter to impose a limitis thecausing file operations to sense out-of-memory shortage and returnguarantee. If the <b>oomguarpages</b> usage isan errno to applicationsbelow the barrier, protecting from memory shortagesprocesses of this container areduring critical operations that should guaranteed not failto be killed in out-of-memory situations. Safety gapThemeaning of limit is currently unspecified; it should be between barrier and limitsetto <b>unlimited</b>.</p>
<p style="margin-left:11%;"><b>--numiptent</b><i>num</i>[:<i>num</i>]</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>--physpageslockedpages</b>
<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">On VSwap-enabled kernels, thislimits the amount Maximum number of physical memory (RAM) available to apagescontainer. The barrier should be set to acquired by <b>0mlock</b>, and thelimit to a total size of RAM that can be used used by acontainer(2).</p>
<p style="margin-left:22%; margin-top: 1em">For olderkernels, this is an accounting-only parameter, showing theusage of RAM by this container. Barrier should be set to<b>0</b>, and limit should be set to <b>unlimited</b>.</p> <p style="margin-left:11%;"><b>--swappagesprivvmpages</b>
<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">Allows controlling the amountof memory allocated by the applications. For VSwap-enabled kernelsshared (mapped(042stab042 or greateras <b>MAP_SHARED</b>)pages, this parameter limits each container really using amemory page is charged for the amount fraction ofthe pageswap space available to a container(depending on the number of others using it). The barrier should beFor&quot;potentially private&quot; pages (mapped asset to <b>0MAP_PRIVATE</b>), and container is charged either for afraction of the limit to a total size of swap thator for the full size if the allocatedaddress space. In the latter case, the physical pagescan associated with the allocated address space may be used by a containerinmemory, in swap or not physically allocated yet.</p>
<p style="margin-left:22%; margin-top: 1em">For olderThe barrier and(pre-VSwap) kernels, the limit is used to show a totalamount of swap space available inside this parameter control the container. Theupper boundary ofbarrier the total size of allocated memory. Note that this parameter is ignoredupperboundary does not guarantee that container will be able toallocate that much memory. The default value primary mechanism to controlmemory allocation isthe <b>unlimited--vmguarpages</b>, meaning total swap will be reported as0guarantee.</p>
<p style==== CPU fair scheduler parameters ===="margin-left:11%;"><b>--shmpages</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%; margin-top: 1em">TheseMaximum IPC SHM segment size.Setting the barrier and the limit to different values doesparameters control CPU usage by containernot make practical sense. <b><br>--cpuunits</b> <i>num</i></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--numfile</b> are not specified,default value of 1000 is used.<i>items</i>[:<i>items</i>]</p>
<p style="margin-left:22%; margin-top: 1em">You can Maximum number of open files.In most cases the barrier and the limit should be set CPUto theweight for CT0 (host system itself) as well (use same value. Setting the barrier to <b>vzctlset 0 --cpuunits</b> <i>num</i>). Usuallyeffectivelydisables pre-charging optimization for this beancounter inthe kernel, OpenVZ initscriptwhich leads to the held value being precise but(<b>/etc/init.d/vz</b>) takes care of setting thiscould slightly degrade file open performance.</p>
<p style="margin-left:11%;"><b>--cpulimitnumflock</b><i>numitems</i>[:<bi>%items</bi>]</p>
<p style="margin-left:22%;">Limit Maximum number of CPU usage for thecontainer, in per centfile locks. Note if the computer has 2 CPUs, ithas total of 200% CPU time. Default CPU limit is <b>0</b>(no CPU Safety gap should be between barrier and limit).</p>
<p style="margin-left:11%;"><b>--cpusnumpty</b> <i>numitems</i>[:<i>items</i>]</p>
<p style="margin-left:22%;">sets number Number of CPUs availablepseudo-terminals(PTY). Note that in OpenVZ each container can have not morethan 255 PTYs. Setting the containerbarrier and the limit todifferent values does not make practical sense.</p>
<p style="margin-left:11%;"><b>--cpumasknumsiginfo</b> <i>cpusitems</i> |[:<bi>allitems</bi>]</p>
<p style="margin-left:22%;">sets list Number of allowed CPUs forthe containersiginfo structures. Input format is a comma-separated list ofdecimal numbers and ranges. Consecutively set bits are shownas two hyphen-separated decimal numbers, Setting the smallest barrier andlargest bit numbers set in the range. For example, if youwant the container limit to execute on CPUs 0, 1, 2, 7, you shouldpass <b>0-2,7</b>. Default value is <b>all</b> (thedifferent values doescontainer can execute on any CPU)not make practical sense.</p>
<p style==== Memory output parameters ===="margin-left:11%;"><b>--dcachesize</b><i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:1122%; margin-top: 1em">ForMaximum size ofVSwapfilesystem-enabled kernels (042stab042 or greater)related caches, thissuch as directory entry and inodecaches. Exists as a separate parameter is ignored. For older kernelsto impose a limitcausing file operations to sense memory shortage and returnan errno to applications, it controls theprotecting from memory shortagesoutput of /proc/meminfo inside a containerduring critical operations that should not fail. <b><br>Safety gap--meminfo none</b>should be between barrier and limit.</p>
<p style="margin-left:2211%;">No <b>--numiptent</procb><i>num</meminfo virtualization(the same as on host system).i>[:<i>num</i>]</p>
<p style="margin-left:1122%;"><b>--meminfo</b>Number of iptables (netfilter)entries. Setting the barrier and the limit to different<i>mode</i>:<i>value</i>values does not make practical sense.</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>--swappagesphyspages</b>parameter.<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%; margin-top: 1em">You can use On VSwap-enabled kernels, thislimits theamount of physical memory (RAM) available to afollowing modes for <i>mode</i>: <br>&bull; container. The barrier should be set to <b>pages0</b>:<i>value</i> - sets total memory inpages; <br>, and the&bull; <b>privvmpages</b>:<i>value</i> - sets limit to a total memorysize of RAM that can be used used by aas <b>privvmpages</b> * <i>value</i>container.</p>
<p style="margin-left:22%; margin-top: 1em">Default For olderkernels, this isan accounting-only parameter, showing theusage of RAM by this container. Barrier should be set to<b>privvmpages:10</b>, and limit should be set to <b>unlimited</b>.</p>
<p style==== iptables control parameters ===="margin-left:11%;"><b>--swappages</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%;">For VSwap-enabled kernels(042stab042 or greater), this parameter limits the amount ofswap space available to a container. The barrier should beset to <b>--iptables0</b>, and the limit to a total size of swap that<i>name</i>can be used by a container.</p>
<p style="margin-left:22%;margin-top: 1em">Allow For older(pre-VSwap) kernels, the limit is used to use the functionalityshow a totalamount of <i>name</i> iptables module swap space available inside the container. ToThebarrier of this parameter is ignored. The default value isspecify multiple <ib>nameunlimited</ib>s, repeat --iptables for each,or use space-separated list meaning total swap will be reported as an argument (enclosed insingle or double quotes to protect spaces)0.</p>
<p style="margin-left:22%; margin-top: 1em">The defaultlist of enabled iptables modules is specified by the<b>IPTABLES</b> variable in [[Man/vz.conf.5|<b>vz.conf</b>(5)]].</p>=== CPU fair scheduler parameters ====
<p style="margin-left:2211%; margin-top: 1em">You can use theThesefollowing values for <i>name</i>: parameters control CPU usage by container. <b>iptable_filter</bbr>,<b>iptable_mangle--cpuunits</b>, <bi>ipt_limitnum</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</bi>, <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</b>.</p>
<p style==== Network devices control parameters ===="margin-left:22%;">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</b> are 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 --netdev_addcpuunits</b><i>namenum</i>). Usually, OpenVZ initscript(<b>/etc/init.d/vz</b>) takes care of setting this.</p>
<p style="margin-left:2211%;">move network device from the<b>--cpulimit</b>host system to a specified container<i>num</i>[<b>%</b>]</p>
<p style="margin-left:1122%;">Limit of CPU usage for thecontainer, in per cent. Note if the computer has 2 CPUs, ithas total of 200% CPU time. Default CPU limit is <b>--netdev_del0</b><i>name</i>(no CPU limit).</p>
<p style="margin-left:2211%;">delete network device from aspecified container<b>--cpus</b> <i>num</i></p>
<p style==== Disk quota parameters ===="margin-left:22%;">sets number of CPUs availablein the container.</p>
<p style="margin-left:11%;"><b>--diskquota yescpumask</b> <i>cpus</i> |<b>noauto</b> | <b>all</b></p>
<p style="margin-left:22%;">allows to enable Sets list of allowed CPUs forthe container. Input format is a comma-separated list ofdecimal numbers and/or disableranges. Consecutively set bits areshown as two hyphen-separated decimal numbers, the smallestand largest bit numbers set in the range. For example, ifdisk quota for a you want the container. By defaultto execute on CPUs 0, 1, 2, 7, a global valueyou(should pass <b>DISK_QUOTA0-2,7</b>) from [[Man/vz.conf.5|Default value is <b>vz.confall</b>(5thecontainer can execute on any CPU)]] is . If usedwith the<b>--nodemask</b> option, value of <b>auto</b> assigns allCPUs from the specified NUMA node to a container.</p>
<p style="margin-left:11%;"><b>--diskspacenodemask</b><i>numnodes</i>[:| <ib>numall</ib>]</p>
<p style="margin-left:22%;">sets soft and hard disk quotaSets list of allowed NUMA nodeslimits, in blocksfor the container. First parameter is soft limit, second Input format ishard limit. One block is currently equal to 1Kb. Suffixesthe same as for<b>G--cpumask</b>, . Note that <b>M--nodemask</b>, <b>K</b> can also must be specified (seeusedwith the <b>Resource limits--cpumask</b> section for more info onsuffixes)option.</p>
<p style="margin-left:11%;"><b>--diskinodes</b><i>num</i>[:<i>num</i>]</p>=== Memory output parameters ====
<p style="margin-left:2211%;margin-top: 1em">sets soft and hard disk quotaForlimitsVSwap-enabled kernels (042stab042 or greater), in i-nodes. First thisparameter is soft limitignored. For older kernels, second isit controls thehard limitoutput of /proc/meminfo inside a container.<b><br>--meminfo none</b></p>
<p style="margin-left:22%;">No /proc/meminfo virtualization(the same as on host system).</p> <p style="margin-left:11%;"><b>--quotatimememinfo</b><i>secondsmode</i>:<i>value</i></p>
<p style="margin-left:22%;">sets quota grace periodConfigure total memory outputin a container.Reported free memory is evaluatedContainer is permitted accordingly to exceed its soft limits for themode being set. Reported swap isgrace period, but once it has expired, evaluated according to the soft limit issettings of <b>--swappages</b>enforced as a hard limitparameter.</p>
<p style="margin-left:1122%;margin-top: 1em">You can use thefollowing 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> -quotaugidlimitsets total memoryas <b>privvmpages</b>* <i>numvalue</i>.</p>
<p style="margin-left:22%;margin-top: 1em">sets maximum number ofuser/group IDs in a container for which disk quota insidethe container will be accounted. If this value Default is set to<b>0privvmpages:1</b>, user and group quotas inside the container willnot be accounted.</p>
<p style="margin-left:22%; margin-top: 1em">Note that ifyou have previously set value of this parameter to <b>0</b>,changing it while the container is running will not takeeffect.</p>=== Netfilter (iptables) control parameters ====
<p style==== Mount option ===="margin-left:11%;"><b>--netfilter&nbsp;disabled</b>|<b>stateless</b>|<b>stateful</b>|<b>full</b></p>
<p style="margin-left:1122%;">Restrict access tonetfilter/iptables modules for a container. This optionreplaces obsoleted <b>--noatime yes</b> |<b>noiptables</b>.</p>
<p style="margin-left:22%;margin-top: 1em">Sets noatime flag (do notNote thatupdate inode access times) on filesystemchanging this parameter requires container restart, soconsider using <b>--setmode</b> option.</p>
<p style==== Capability option ===="margin-left:22%; margin-top: 1em">The followingarguments can be used: <b><br>&bull; disabled</b></p>
<p style="margin-left:1132%;"><b>--capability</b><i>capname</i>:<b>on</b>|<b>off</b>no modules are allowed</p>
<p style="margin-left:22%;">Sets a capability for acontainer. Note that setting capability when the containeris running does not take immediate effect; restart thecontainer in order for the changes to take effect. Note acontainer has default set of capabilities, thus anyoperation on capabilities is &quot;logical and<b>&quotbull; withthe default capability mask.stateless</b></p>
<p style="margin-left:2232%; margin-top: 1em">You can use theall modules except NAT andfollowing values for <conntracks are allowed (i>capname</i>: <b>chown</b>,<b>dac_override</b>, <b>dac_read_search</b>, <b>fowner</b>,<b>fsetid</b>, <b>kill</b>, <b>setgid</b>, <b>setuid</b>,<b>setpcap</b>, <b>linux_immutable</b>,<b>net_bind_service</b>, <b>net_broadcast</b>,<b>net_admin</b>, <b>net_raw</b>, <b>ipc_lock</b>,<b>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>.e. filter and mangle); this is theFor detailed description, see <b>capabilities</b>(7).default</p>
<p style="margin-left:22%; margin-top: 1em"><b>WARNING&bull; stateful</b>:setting some of those capabilities may have far reachingsecurity implications, so do not do it unless you know whatyou are doing. Also note that setting <b>setpcap:on</b> fora container will most probably lead to inability to startit.</p>
<p style==== Device access management ===="margin-left:32%;">all modules except NAT areallowed</p>
<p styletable width="margin-left:11100%;" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><b>--devnodes</btr valign="top" align="left"><itd width="22%">device</itd>:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>none</b></ptd width="9%">
<p style="margin-left:22%;">Give the container an access(<b>r&bull; full</b> - read, <b>w</b> - write, <bp>q</btd> - disk quotamanagement, <btd width="1%">none</btd> - no access) to a device designatedby the special file /dev/<i>device</i>. Device file iscreated in a container by <b>vzctl</b>. Example:</ptd width="36%">
<pre stylep>all modules are allowed</p></td><td width="margin-left:2232%;"> vzctl set 777 --devnodes sdb:rwq</td></tr></pretable>
<p style="margin-left:11%;"><b>--devicesbiptables</b>|<b>c</b>:<i>majorname</i>:<i>minor</i>|<b>all</b>:[<b>r,</b>...][<b>w</b>][<b>q</b>]|<b>none</b></p>
<p style="margin-left:22%;">Give the container an access toa <b>bNote</b>lock or this option isobsoleted, <b>c--netfilter</b>haracter device designated by its<i>major</i> and <i>minor</i> numbers. Device file have toshould be created manuallyused instead.</p>
<p style==== PCI device management ===="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="margin-left:1122%;margin-top: 1em">The defaultlist of enabled iptables modules is defined by the<b>--pci_addIPTABLES</b>variable in [[Man/vz.conf.5|<ib>domainvz.conf</ib>:(5)]]<i>bus</i>:<i>slot</i>.<i>func</i></p>
<p style="margin-left:22%;margin-top: 1em">Give You can use the container an access toa specified PCI device. All numbers are hexadecimal (asfollowing 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>ip_conntrack_irc</b>, <b>ipt_conntrack</b>,printed by <b>lspciipt_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</b>(8) in the first column).</p>
==== Network devices control parameters ==== <p style="margin-left:11%;"><b>--pci_delnetdev_add</b>[<i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>funcname</i></p>
<p style="margin-left:22%;">Delete a PCI move network device from thehost system to a specified container.</p>
<p style="margin-left:2211%; margin-top: 1em">Note that<b>vps-pci</b> configuration script is executed by<b>vzctl-netdev_del</b> then configuring PCI devices. The script isusually located at <bi>/usr/lib[64]/vzctl/scripts/name</bi>.</p>
<p style==== Features management ===="margin-left:22%;">delete network device from aspecified container</p>
<p style="margin-left:11%;"><b>--features</b><i>name</i>:<b>on</b>|<b>off</b></p>=== Disk quota parameters ====
<p style="margin-left:2211%;">Enable or disable a specificcontainer feature. Known features are: <b>sysfs</b>,<b>nfs</b>, <b>sit</b>, <b>ipip--diskquota yes</b>, <b>ppp</b>,|<b>ipgre</b>, <b>bridge</b>, <b>nfsdno</b>.</p>
<p style==== Apply config ===="margin-left:22%;">allows to enable or disabledisk quota for a container. By default, a global value(<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">Note that thisparameter is ignored for <b>--applyconfigploop</b><i>name</i>layout.</p>
<p style="margin-left:2211%;">Read container parameters fromthe container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>name</i><tt>.conf-sample</tt>,and apply them, if <b>--savediskspace</b> option specified save tothe container config file. The following parameters are notchanged: <bi>HOSTNAMEnum</bi>, [:<bi>IP_ADDRESSnum</b>,<b>OSTEMPLATE</b>, <b>VE_ROOT</b>, and<b>VE_PRIVATE</bi>.]</p>
<p style="margin-left:1122%;">For <b>--applyconfig_mapsimfs</b>layout, sets<i>group</i>soft and hard disk quota limits. First parameter is softlimit, second is hard limit.</p>
<p style="margin-left:22%;margin-top: 1em">Apply container configForparameters selected by <ib>groupploop</ib>layout, initiates the procedure of resizing theploop image file to the new size. Now the only possibleSince there is novalue for soft/hard limit concept in ploop, second <i>groupnum</i> , ifspecified, is <b>name</b>: to restore containername based on <b>NAME</b> variable in containerconfiguration fileignored.</p>
<p style==== I"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</O priority management ====p>
<p style="margin-left:1122%;margin-top: 1em">Note that ploopresize is NOT performed on container start, so forconsistency <b>--iopriodiskspace</b>must be used together with<ib>priority--save</ib>flag.</p>
<p style="margin-left:22%;margin-top: 1em">Assigns I/O priority toSuffixescontainer. <ib>PriorityG</ib> range is , <b>0-7M</b>. The greater<i>priority</i> is, the more time for I/O activity containerhas. By default each container has <ib>priorityK</ib> ofcan also be specified (see<b>4Resource limits</b>section for more info on suffixes).If suffix is not specified, value is in kilobytes.</p>
<p style=== Checkpointing and restore ==="margin-left:11%;"><b>--diskinodes</b><i>num</i>[:<i>num</i>]</p>
<p style="margin-topleft: 1em22%;">Checkpointing sets soft and hard disk quotalimits, in i-nodes. First parameter is soft limit, second is a feature ofOpenVZ kernel which allows to save a complete state of arunning container, and to restore it laterhard limit.</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>--dumpfilequotatime</b> is not set,default dump file name <b>/vz/dump/Dump.</b><i>CTIDseconds</i> isused.</p>
<p style="margin-left:1122%;"><b>restore</b> <i>CTID</i>sets quota grace period.Container is permitted to exceed its soft limits for thegrace period, but once it has expired, the soft limit is[<b>--dumpfile</b> <i>name</i>]enforced as a hard limit.</p>
<p style="margin-left:1722%;margin-top: 1em">This command restores aNote that thiscontainer from the dump file created by the parameter is ignored for <b>chkpntploop</b>commandlayout.</p>
<p style=== Performing container actions ==="margin-left:11%;"><b>--quotaugidlimit</b><i>num</i></p>
<p style="margin-left:1122%;"><b>create</b> <i>CTID</i>Enables or disables[<b>in-container per-ostemplate</b> <i>name</i>] [<b>user and per--config</b>group disk quotas. If the<i>name</i>] [value is set to <b>--private0</b> <i>path</i>] <br>[<b>--root</b> <i>path</i>] [<b>--ipadd</b> <i>addr</i>]or not set, disk quotas inside the[<b>--hostname</b> <i>name</i>]container is disabled and not accounted.</p>
<p style="margin-left:1722%;margin-top: 1em">Creates a new container area.ForThis operation should be done once<b>simfs</b> layout containers, before the first startnon-zero value sets maximumnumber of the containeruser/group IDs for which disk quota isaccounted.</p>
<p style="margin-left:1722%; margin-top: 1em">By default, anForOS template denoted by <b>DEF_OSTEMPLATEploop</b> parameter layout containers, any non-zero value enablesdisk quota inside the container; the number ofuser/group[[Man/vz.conf.5|<b>vz.conf</b>(5)]] IDs used by disk quota is used to create a container. This can beoverwritten not limited by <b>--ostemplate</b> optionOpenVZ.</p>
<p style="margin-left:1722%; margin-top: 1em">By default, aNote thatnew enabling or disabling in-container configuration file is created from a sampledisk quotas requiresconfiguration denoted by value of container restart, so consider using <b>CONFIGFILE</b>parameter of [[Man/vz.conf.5|<b>vz.conf--setmode</b>(5)]]. If the containerconfiguration file already exists, it will not bemodifiedoption.</p>
<p style="margin-left:17%; margin-top: 1em">The value of<b>CONFIGFILE</b> can be overwritten by using the<b>--config</b><i>name</i> === Capability option. This option can not beused if the container configuration file already exists.</p>====
<p style="margin-left:1711%; margin-top: 1em">You can use<b>--rootcapability</b> <i>pathcapname</i> option to sets the path to themount point for the container root directory (default is:<b>VE_ROOTon</b> specified in [[Man/vz.conf.5|<b>vz.confoff</b>(5)]] file).Argument can contain literal string [<b>$VEID,</b>, which willbe substituted with the numeric CT ID...]</p>
<p style="margin-left:1722%; margin-top: 1em">You can use<b>--private</b> <i>path</i> option to set the path todirectory in which all the files and directories specific toSets a capability for athis very container are stored (default is <b>VE_PRIVATE</b>specified in [[Man/vz.conf.5|<b>vz.conf</b>(5)]] file). Argument Multiple comma-separated capabilities can containliteral string <b>$VEID</b>, which will be substituted withthe numeric CT IDspecified.</p>
<p style="margin-left:1722%; margin-top: 1em">You can useNote thatsetting a capability when the container is running does nottake immediate effect; restart the container in order forthe changes to take effect (consider using <b>--ipaddsetmode</b> <i>addr</i> option to assign an IP address toa container. Note that this option can be used multipletimes).</p>
<p style="margin-left:1722%; margin-top: 1em">You can useA container has<b>--hostname</b> <i>name</i> option to the default set a host name forof capabilities, thus any operation ona containercapabilities is &quot;logical AND&quot; with the defaultcapability mask.</p>
<p style="margin-left:1122%;margin-top: 1em">You 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>,<b>setpcap</b>, <b>linux_immutable</b>,<b>net_bind_service</b>, <b>net_broadcast</b>,<b>net_admin</b>, <b>net_raw</b>, <b>ipc_lock</b>,<b>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>destroyve_admin</b> |.For detailed description, see <b>deletecapabilities</b>(7).</p>
<p style="margin-left:1722%;margin-top: 1em">Removes a container private<b>WARNING</b>:setting some of those capabilities may have far reachingarea by deleting all filessecurity implications, directories and theso do not do it unless you know whatyou are doing. Also note that setting <b>setpcap:on</b> forconfiguration file of this a containerwill most probably lead to inability to startit.</p>
<p style="margin-left:11%;"><b>start</b> [<b>--wait</b>][<b>--force</b>]</p>=== Device access management ====
<p style="margin-left:1711%;">Mounts (if necessary) andstarts a container. Unless <b>--waitdevnodes</b> option isspecified, <i>device</i>:[<b>vzctlr</b> will return immediately; otherwisean attempt to wait till the default runlevel is reached willbe made by ][<b>w</b>][<b>q</b>]|<b>vzctlnone</b>.</p>
<p style="margin-left:1722%; margin-top: 1em">SpecifyGive the container an access(<b>r</b>-read, <b>w</b> - write, <b>q</b> -forcedisk quotamanagement, <b>none</b> if you want - no access) to start a container which device designatedby the special file /dev/<i>device</i>. Device file isdisabled (see created in a container by <b>--disabledvzctl</b>).Example:</p>
<p pre style="margin-left:1722%; margin"> vzctl set 777 --topdevnodes sdb: 1em">Note that thiscommand can lead to execution of <b>premount</b>,<b>mount</b> and <b>start</b> action scripts (see <b>ACTIONSCRIPTS</b> below).rwq</ppre>
<p style="margin-left:11%;"><b>stop--devicesb</b>|<b>c</b>:<i>major</i>:<i>minor</i>|<b>all</b>:[<b>r</b> ][<b>--fastw</b>][<b>q</b>]|<b>none</b></p>
<p style="margin-left:1722%;">Stops and unmounts a Give the container.an access toNormally, a <b>haltb</b>(8) is executed inside a container;option lock or <b>--fastc</b> makes haracter device designated by its<bi>vzctlmajor</bi> use and <bi>rebootminor</bi>(2)syscall instead which is faster but can lead numbers. Device file have to uncleancontainer shutdownbe created manually.</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>=== PCI device management ====
<p style="margin-left:11%;"><b>restart--pci_add</b> [<bi>--waitdomain</bi>:][<bi>bus</i>:<i>--forceslot</bi>] [.<bi>--fastfunc</bi>]</p>
<p style="margin-left:1722%;">Restarts a Give the container, i.e.an access tostops it if it is running, and starts againa specified PCI device. Accepts all theAll numbers are hexadecimal (asprinted by <b>startlspci</b> and <b>stop</b> options(8) in the first column).</p>
<p style="margin-left:1711%; margin-top: 1em">Note that thiscommand can lead to execution of some action scripts (see<b>ACTION SCRIPTS--pci_del</b> below)[<i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>func</i></p>
<p style="margin-left:1122%;"><b>status</b>Delete a PCI device from thecontainer.</p>
<p style="margin-left:1722%;margin-top: 1em">Shows a container status. ThisNote that<b>vps-pci</b> configuration script is a line with five or six words, separated executed by spaces<b>vzctl</b> then configuring PCI devices. The script isusually located at <b>/usr/libexec/vzctl/scripts/</b>.</p>
<p style="margin-left:17%; margin-top: 1em">First word isliterally <b>CTID</b>.</p>=== Features management ====
<p style="margin-left:1711%; margin"><b>-top: 1em"-features</b>Second word isthe numeric <i>CT IDname</i>:<b>on</b>|<b>off</b>[<b>,</b>...]</p>
<p style="margin-left:1722%; margin-top: 1em">Third word isEnable or disable a specificshowing whether this container exists or notfeature. Known features are: <b>sysfs</b>,<b>nfs</b>, <b>sit</b>, <b>ipip</b>, <b>ppp</b>, it can beeither <b>existipgre</b> or , <b>bridge</b>, <b>deletednfsd</b>. A few features canbe specified at once, comma-separated.</p>
<p style="margin-left:17%; margin-top: 1em">Fourth word isshowing the status of the container filesystem, it can beeither <b>mounted</b> or <b>unmounted</b>.</p>=== Apply config ====
<p style="margin-left:1711%; margin-top: 1em">Fifth wordshows if the container is running, it can be either<b>running--applyconfig</b> or <bi>downname</bi>.</p>
<p style="margin-left:1722%; margin">Read container parameters fromthe container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>name</i><tt>.conf-top: 1em"sample</tt>Sixth word,and apply them, if<b>--save</b> option specified save tothe container config file. The following parameters are notexistschanged: <b>HOSTNAME</b>, is <b>suspendedIP_ADDRESS</b>. It appears if both a container,<b>OSTEMPLATE</b>, <b>VE_ROOT</b>, and its dump file exist (see <b>chkpntVE_PRIVATE</b>).</p>
<p style="margin-left:1711%; margin"><b>-top: 1em"-applyconfig_map</b>This commandcan also be usable from scripts.<i>group</i></p>
<p style="margin-left:1122%;">Apply container configparameters selected by <i>group</i>. Now the only possiblevalue for <i>group</i> is <b>name</b>: to restore containername based on <b>mountNAME</b>variable in containerconfiguration file.</p>
<p style="margin-left:17%;">Mounts container private area.Note that this command can lead to execution of<b>premount<=== I/b> and <b>mount</b> action scripts (see<b>ACTION SCRIPTS</b> below).</p>O scheduling ====
<p style="margin-left:11%;"><b>umount--ioprio</b><i>priority</i></p>
<p style="margin-left:1722%;">Unmounts Assigns disk I/O priority tocontainer privatearea. Note that this command can lead to execution of<i>Priority</i> range is <b>umount0-7</b> and . The greater<bi>priority</i> is, the more time for I/O activity containerhas. By default each container has <i>postumountpriority</bi> action scripts (seeof<b>ACTION SCRIPTS4</b> below).</p>
<p style="margin-left:1711%; margin"><b>--top: 1em"iolimit</b>Note that<i>limit</i>[<b>B</b>|<b>K</b>|<b>stopM</b> does |<b>umountG</b> automatically.]</p>
<p style="margin-left:1122%;">Assigns disk I/O bandwidthlimit for a container. Value is either a number with anoptional suffix, or a literal string <b>convertunlimited</b> . Valueof <ib>CTID0</ib>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">Convert CT private area If no suffix isprovided, the <i>limit</i> is assumed tobe in megabytes perreside on a ploop device (available since 042stab052second.6Available suffixes are: <br>&bull; <b>b</b>, <b>B</b> -- bytes per second; <br>&bull; <b>k</b>, <b>K</b> -- kilobytes per second; <br>kernel&bull; <b>m</b>, <b>M</b> -- megabytes per second (default). Conversion should be performed when a container is;<br>stopped&bull; <b>g</b>, plus disk space quota should be set.<b>G</b> -- gigabytes per second;</p>
<p style="margin-left:11%;"><b>quotaon--iopslimit</b> <i>ctidiops</i></p>
<p style="margin-left:1722%;">Turn disk quota onAssigns IOPS limit for acontainer, in number of input/output operations per second. Not thatValue is a number or a literal string <b>mountunlimited</b> and .Value of <b>start0</b> does that automaticallymeans &quot;unlimited&quot;. By default acontainer has no IOPS limit.</p>
<p style="margin-left:11%;"><b>quotaoff</b> <i>ctid</i></p>== Suspending and resuming ===
<p style="margin-lefttop:17%;1em">Turn disk quota off. Not thatCheckpointing is a feature of<b>umount</b> OpenVZ kernel which allows to save a complete in-kernelstate of a running container, and <b>stop</b> does that automaticallyto restore it later.</p>
<p style="margin-left:11%;"><b>quotainitsuspend</b>|<b>chkpnt</b><i>ctidCTID</i> [<b>--dumpfile</b> <i>name</i>]</p>
<p style="margin-left:17%;">Initialize disk quota (i.e. runThis command suspends acontainer to a dump file If an option <b>vzquota init--dumpfile</b>) with the parameters taken from the CTisconfiguration not set, default dump file [[Manname<b>/vz/dump/ctidDump.conf.5|</b>ctid.conf<i>CTID</bi>(5)]]is used.</p>
<p style="margin-left:11%;"><b>execresume</b> |<b>restore</b><i>CTIDcommand</i>[<b>--dumpfile</b> <i>name</i>]</p>
<p style="margin-left:17%;">Executes <i>This command</i> in restores acontainer. Environment variables are not set inside from the dump file created by thecontainer. Signal handlers may differ from default settings.If <i>command</i> is <b>-suspend</b>, commands are read fromstdincommand.</p>
<p style="margin-left:11%;"><b>exec2</b> <i>CTIDcommand</i></p>== Snapshotting ===
<p style="margin-lefttop:17%;1em">The same as <b>exec</b>Snapshotting is a feature basedon checkpointing and ploop shapshots. It allows to save acomplete state of container file system. Plus, butif thereturn code container is running, it&rsquo;s in-memory state (as incheckpointing). Note that of <i>command</i>snapshot functionality is onlyworking for containers on ploop device.</p>
<p style="margin-left:11%;"><b>runscriptsnapshot</b> <i>CTID</i>[<b>--id</b> <i>uuid</i>] [<b>--name</b> <i>name</i>]script[<b>--description</b> <i>desc</i>] <br>[<b>--skip-suspend</b>] [<b>--skip-config</b>]</p>
<p style="margin-left:17%;">Run specified shell script inthe container. Argument <i>script</i> is Creates a file on the hostsystem which contents is read by vzctl and executed in thecontext of the container. For a running containersnapshot, thecommand jumps into the container and executes the scripti.For a stopped container, it enters the container, mountscontainer&rsquo;s root filesystem, executes the script, andunmounts CT roote. In the latter case, saves the current container is notreally startedstate, no including its file systems other than root (such as<b>/proc</b>) are mountedsystem state, no startup scripts are executedetc. Thus the environment in which the script is running isfar from normal processes state, and is only usable for very basicconfigurationoperationsfile.</p>
<p style="margin-left:1117%;margin-top: 1em">If a containeris running, and <b>enter</b> [<b>--execskip-suspend</b>option is not<i>command</i> [<i>arg</i> ..specified, a container is checkpointed and then restored,and CT memory dump becomes the part of snapshot.]]</p>
<p style="margin-left:17%;margin-top: 1em">Enters into a Unless<b>--skip-config</b> option is given, container (givinga container&rsquoconfiguration file is saved to the snapshot.</p> <p style="margin-left:17%;s root shell)margin-top: 1em">If <i>uuid</i>is not specified, it is auto-generated. This option is a backOptions<b>--name</b> and <b>--doordescription</b> can be used tofor host root onlyspecify the snapshot name and description, respectively. The proper way to have CT root shell Name isdisplayed by <b>snapshot-list</b>.</p> <p style="margin-left:11%;"><b>snapshot-switch</b>to use <i>CTID</i> [<b>--skip-resume</b> | <b>--must-resume</b>][<b>--skip-config</b>] <b>ssh<br>--id</b><i>uuid</i></p> <p style="margin-left:17%;">Switches the container to asnapshot identified by <i>uuid</i>, restoring its filesystem state, configuration (if available) and its runningstate (1if available).</p> <p style="margin-left:17%; margin-top: 1em"><b>Note thatthe current state of a container (including its file systemstate and its configuration file) is lost!</b></p>
<p style="margin-left:17%; margin-top: 1em">Option
<b>--execskip-resume</b> is used to run <i>command</i> with argumentsignore a CT memory dump fileafter entering into in a snapshot, as a result the container. This is useful if command towill end up beingbe run requires in a terminal stopped state (so same as if a snapshot has been takenwith <b>vzctl exec--skip-suspend</b> can not be).</p> <p style="margin-left:17%; margin-top: 1em">If optionused) and for some reason you can not use <b>ssh--must-resume</b>(1)is set, absense of a memory dump istreated as an error, and the inability to restore from thememory dump is treated as an error rather than warning.</p>
<p style="margin-left:17%; margin-top: 1em">You need to logOption optionout manually from the shell to finish session (even if youspecified <b>--execskip-config</b>)is used to ignore the CT configurationfile in a snapshot, i.e. the current configuration file willbe left as is.</p>
<p style="margin-left:11%;"><b>consolesnapshot-delete</b><i>CTID</i> <b>--id</b> <i>uuid</i></p>
<p style="margin-left:17%;">Attach to the container&rsquo;sRemoves 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-mount</b>then <i>CTID</i> <b>.--id</b> to detach from the console. Note that thissequence is only recognized after <i>uuid</i> <b>Enter--target</b>.<i>directory</i></p>
<p style=== Other options ==="margin-left:17%;">Mounts a snapshot specified by<i>uuid</i> to a <i>directory</i>. Note this mount isread-only.</p>
<p style="margin-left:11%;"><b>snapshot-umount</b><i>CTID</i><b>--helpid</b> <i>uuid</i></p>
<p style="margin-left:17%;">Prints help message with Unmounts aspecifiedbrief list of possible optionssnapshot.</p>
<p style="margin-left:11%;"><b>snapshot-list</b><i>CTID</i> [<b>-H</b>] [<b>-o</b><i>field</i>[,<i>field</i>...] [<b>-version-id</b><i>uuid</i>]</p>
<p style="margin-left:17%;">Prints <b>vzctl</b>List container&rsquo;sversionsnapshots.</p>
<p style== ACTION SCRIPTS =="margin-left:17%; margin-top: 1em">You cansuppress displaying header using <b>-H</b> option.</p>
<p style="margin-left:1117%; margin-top: 1em">You can use the<b>vzctl-o</b>has an ability option to execute user-defined scripts when adisplay only the specifiedspecific <bi>vzctlfield</bi> command is run for a container(s). Thefollowing <b>vzctl</b> commands List of available fields can trigger execution ofbe obtainedaction scripts: using <b>start</b>, <b>stop</b>, <b>restart</b>,<b>mount</b> and <b>umount-L</b>option.</p>
<p style="margin-left:11%; margin-top: 1em">Action scriptsare located in the <b>/etc/vz/conf/</b> directory. There areglobal and per-CT scripts. Global scripts have a literalprefix 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 == Performing container only.</p>actions ===
<p styletable width="margin-left:11100%; margin-top: 1em" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0">Please notescripts are executed in a host system (CT0) context, withthe exception of <btr valign="top" align="left">.start</b> and <btd width="11%">.stop</btd> scripts,which are executed in a container context.</ptd width="9%">
<p style="margin-left:11%; margin-top: 1em">The followingaction scripts are currently defined: <b><br>vps.premountcreate</b>, <i/p>CTID</itd><btd width="2%">.premount</btd></ptd width="78%">
<p style="margin-lefttop:22%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>--diskinodes&nbsp;</b><i>num</i>][<b>--private&nbsp;"</b><i>path</i>][<b>--root&nbsp;</b><i>path</i>][<b>Global and per-CT mount scripts-ipadd&nbsp;</b><i>addr</i>]which are executed for a container before it is mounted.[<b>--hostname&nbsp;</b><i>name</i>]Scripts are executed in the host system context, while a CT[<b>--name&nbsp;</b><i>name</i>]is not yet mounted or running. Global script, if exists, is[<b>--local_uid&nbsp;</b><i>uid</i>]executed first.[<b>--local_gid&nbsp;</b><i>gid</i>]</p> </td></tr></table>
<p style="margin-left:1117%;margin-top: 1em"><b>vpsCreates a newcontainer area.mount</b>This operation should be done once,before<i>CTID</i><b>the first start of the container.mount</b></p>
<p style="margin-left:2217%;margin-top: 1em">Global and per-CT mount scriptsBy default, anwhich are executed for a container right after it isOS template denoted by <b>DEF_OSTEMPLATE</b> parameter ofmounted[[Man/vz. Otherwise they are the same as conf.5|<b>vz.premountconf</b>(5)]] is used to create a container. This can bescriptsoverwritten by <b>--ostemplate</b> option.</p>
<p style="margin-left:1117%;margin-top: 1em">By default, anew container configuration file is created from a sampleconfiguration denoted by value of <ib>CTIDCONFIGFILE</ib>parameter of [[Man/vz.conf.5|<b>vz.startconf</b>(5)]]. If the containerconfiguration file already exists, it will not bemodified.</p>
<p style="margin-left:2217%;margin-top: 1em">Right after The value of<b>CONFIGFILE</b> can be overwritten by using the<b>vzctl--config</b> has<i>name</i> option. This option can not bestarted a container, it executes this script in a used if the containercontextconfiguration file already exists.</p>
<p style="margin-left:1117%;margin-top: 1em">A new containercan either be created using <ib>simfs</b> filesystem or on a<b>ploop</b> device. The default is set by value of<b>VE_LAYOUT</b> parameter of [[Man/vz.conf.5|<b>vz.conf</b>(5)]] and can beoverwritten by <b>--layout</b> option. In case <b>CTIDploop</ib>is used, one can additionally specify ploop disk imageformat after a colon. Possible ploop formats are<b>expanded</b>, <b>plain</b> and <b>raw</b>. Default is<b>expanded</b>.stopUsing value other than <b>expanded</b>isnot recommended and is currently not supported.</p>
<p style="margin-left:2217%;margin-top: 1em">Right before You can use<b>vzctl--diskspace</b> hasand <b>--diskinodes</b> options tostopped a specify containerfile system size. Note that for<b>ploop</b> layout, it executes this script in a containeryou will not be able to change inodescontextvalue later.</p>
<p style="margin-left:1117%;margin-top: 1em">If<b>vpsDISKSPACE</b> is not specified either in the sampleconfiguration file used for creation or in globalconfiguration file [[Man/vz.umountconf.5|<b>vz.conf</b>(5)]],<ib>CTID--diskspace</ib>parameter is required for <b>.umountploop</b>layout.</p>
<p style="margin-left:2217%;margin-top: 1em">Global and per-CT umountSuffixesscripts which are executed for a container before it isunmounted. Scripts are executed in the host system context<b>G</b>, <b>M</b>,<b>K</b> can also be specified (seewhile a CT is mounted. Global script, if exists, is executed<b>Resource limits</b> section for more info onfirstsuffixes).</p>
<p style="margin-left:1117%;margin-top: 1em">You can use<b>vps.postumount--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.conf</b>(5)]] file).postumountArgument can contain literal string <b>$VEID</b>, which willbe substituted with the numeric CT ID.</p>
<p style="margin-left:2217%;margin-top: 1em">Global and perYou can use<b>--CT umountprivate</b> <i>path</i> option to set the path toscripts directory in which all the files and directories specific tothis very container are executed for a container right after it stored (default is<b>VE_PRIVATE</b>unmountedspecified in [[Man/vz.conf. Otherwise they are the same as 5|<b>vz.conf</b>(5)]] file).umountArgument can containliteral string <b>$VEID</b>, which will be substituted withscriptsthe numeric CT ID.</p>
<p style="margin-left:1117%; margin-top: 1em">The environmentYou can usepassed to all the <b>*mount--ipadd</b> scripts is the standardenvironment of the parent (<i.e. <b>vzctladdr</bi>) with twooption to assign an IP address toadditional variables: <b>$VEID</b> and <b>$VE_CONFFILE</b>.The first one holds the ID of the a container, and the secondone holds the full path to the container configuration file.Note that this option can be used multipleIf the script needs to get other CT configurationparameters, such as <b>$VE_ROOT</b>, it needs to get thosefrom global and per-CT configuration filestimes.</p>
<p style="margin-left:1117%; margin-top: 1em">Here is anexample of a mount script, which makes host system&rsquo;s/mnt/disk available to container(s). Script name You can eitherusebe <b>/etc/vz/conf/vps.mount</b> or<b>/etc/vz/conf/--hostname</b><i>CTIDname</i><b>.mount</b>option to set a host name fora container.</p>
<pre p style="margin-left:1117%; margin-top: 1em"> # If one of these files does not exist then somethingWhen running # is really brokenwith an upstream Linux Kernel that supports user namespaces [ (&gt;= 3.8), the parameters <b>--f local_uid</etcb> and<b>--local_gid</sysconfigb> can be used to select which <i>uid</vz ] || exit 1i> [ -f $VE_CONFFILE ] || exit 1and <i>gid</i> respectively will be used as a base user in # Source both filesthe host system. Note the order is importantthat user namespaces provide a 1:1mapping between container users and host users.If these . options are not specified, the values <b>LOCAL_UID</etcb> and<b>LOCAL_GID</vzb> from global configuration file[[Man/vz.conf . $VE_CONFFILE SRC=5|<b>vz.conf</mntb>(5)]] are used. An explicit <b>--local_uid</diskb> DST=/mnt/diskvalue of 0 will disable user namespace support, and run thecontainer as a privileged user. In this case, mount <b>-n -t simfs $SRC ${VE_ROOT}${DST} -o $SRClocal_gid</b> is ignored.</prep>
<p style== EXIT STATUS =="margin-left:17%; margin-top: 1em"><b>Warning:</b>use <b>--local_uid</b> and <b>--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:11%; margin-top: 1em">Returns 0 upon<b>destroy</b> | <b>delete</b>success, or an appropriate error code in case of anerror:<i>CTID</i></p>
<table widthp style="100margin-left:17%;" border="0" rules="none" frame="void">Removes a container privatearea by deleting all files, directories and the cellspacing="0" cellpadding="0"configuration file of this container.</p> <tr valign="top" alignp style="margin-left:11%;"><b>start</b> <i>CTID</i>[<b>--wait</b>] [<b>--force</b>] [<td width="11%"b>--skip-fsck</tdb>][<b>--skip-remount<td width="4%"/b>]</p>
<pstyle="margin-left:17%;">Mounts (if necessary) andstarts a container. Unless <b>1--wait</pb> option isspecified, <b>vzctl</tdb>will return immediately; otherwisean attempt to wait till the default runlevel is reached willbe made by <td width="7%"b>vzctl</tdb>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Failed to set a UBC parameterSpecify</pb>--force</td></tr><tr valign="top" align="left"b>if you want to start a container which isdisabled (see <td width="11%"b>--disabled</tdb>).<td width="4%"/p>
<p>2</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">Specify<b>--skip-fsck</tdb>to skip fsck for ploop-based containerfilesystem (this option is used by vz initscript).<td width="78%"/p>
<p>Failed to set a fair scheduler parameter</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">By default, ifa container to be started happens to be already mounted, itis unmounted and mounted again. This behavior can be turnedoff by using <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>premount</b>,<b>3mount</pb> and <b>start</tdb>action scripts (see <b>ACTIONSCRIPTS<td width/b> below).</p> <p style="7margin-left:11%;"><b>stop</tdb> <i>CTID</i>[<b>--fast<td width="78%"/b>] [<b>--skip-umount</b>]</p>
<pstyle="margin-left:17%;">Generic system errorStops a container and unmountsit (unless <b>--skip-umount</pb> is given). Normally,<b>halt</tdb>(8) is executed inside a container; option<b>--fast</trb>makes <b>vzctl<tr valign="top" align="left"/b>use <td width="11%"b>reboot</tdb>(2)syscall instead which is faster but can lead to uncleancontainer shutdown.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Note that<b>vzctl stop</b> is not asyncronous, in other words vzctlwaits for container&rsquo;s init to exit (unless<b>--fast</b>is given), which can take up to a few minutes.Default wait timeout is 120 seconds; it can be changedglobally, by setting <b>STOP_TIMEOUT</b> in[[Man/vz.conf.5|<b>vz.conf</pb>(5)]], or per container (<b>STOP_TIMEOUT</tdb>in[[Man/ctid.conf.5|<b>ctid.conf<td width="7%"/b>(5)]], see <b>--stop-timeout</tdb>).<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">The running kernel is not an OpenVZ kernel (or someNote that thisOpenVZ modules are not loaded)command can lead to execution of <b>stop</pb>, </tdb>umount</trb>and <tr valign="top" align="left"b>postumount</b>action scripts (see <td width="11%"b>ACTIONSCRIPTS</tdb>below).<td width="4%"/p>
<pstyle="margin-left:11%;">6<b>restart</pb> <i>CTID</tdi>[<b>--wait</b>] [<b>--force</b>] [<td width="7%"b>--fast</tdb>][<b>--skip-fsck<td width="78%"/b>]</p>
<pstyle="margin-left:17%;">Not enough system resourcesRestarts a container, i.e.stops it if it is running, and starts again. Accepts all the</pb>start</tdb>and </trb>stop<tr valign="top" align="left"><td width="11%"/b>options.</td><td width="4%"p>
<p>7</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">Note that thiscommand can lead to execution of some action scripts (see<b>ACTION SCRIPTS</tdb>below).<td width="78%"/p>
<pstyle="margin-left:11%;"><b>ENV_CREATEstatus</b> ioctl failed</pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<p>8</p></td><td widthstyle="7margin-left:17%;">Shows a container status. Thisis a line with five or six words, separated by spaces.</td><td width="78%"p>
<p>Command executed by <b>vzctl exec</b> returned non-zeroexit code</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">First word isliterally <td width="11%"b>CTID</tdb>.<td width="4%"/p>
<p>9</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">Second word isthe numeric <i>CT ID</tdi>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Container Third word is locked by another showing whether this container exists or not, it can beeither <b>vzctlexist</b>invocationor </pb> deleted</tdb>.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">10Fourth word isshowing the status of the container filesystem, it can beeither </pb>mounted</tdb>or <td width="7%"b>unmounted</tdb>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Global OpenVZ configuration file [[Man/vz.conf.5|Fifth wordshows if the container is running, it can be either<b>vz.confrunning</b>(5)]] notfoundor </pb> down</tdb>.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">11Sixth word, ifexists, is </pb>suspended</tdb>. It appears if a dump fileexists for a stopped container (see <td width="7%"b>suspend</tdb>).<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">A vzctl helper script file not foundThis commandcan also be usable from scripts.</p></td></tr> <tr valign="top" alignp style="margin-left:11%;"><td width="11%"b>mount</b> <i>CTID</tdi><td width="4%"/p>
<pstyle="margin-left:17%;">12Mounts 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%;">Permission denied</pb>umount</tdb></tri>CTID<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">13Unmounts 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">Capability setting failedNote 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%;">14<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>
<pstyle="margin-left:17%;">Container configuration file [[Man/ctidConvert CT private area toreside on a ploop device (available in kernel version042stab052.conf8 and greater).5|<b>ctidConversion should be performedwhen a container is stopped, plus disk space quota should beset.conf</bp>(5)]] notfound</pstyle="margin-left:11%;"> </tdb>compact</trb><tr valign="top" align="left"i>CTID<td width="11%"/i></td><td width="4%"p>
<p>15</p></td><td widthstyle="7margin-left:17%;">Compact container image. Thisonly makes sense for ploop layout.</td><td width="78%"p>
<pstyle="margin-left:11%;">Timeout on <b>vzctl execquotaon</b></pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">16Turn disk quota on. Not that</pb>mount</tdb>and <td width="7%"b>start</tdb>does that automatically.<td width="78%"/p>
<pstyle="margin-left:11%;">Error during <b>vzctl chkpntquotaoff</b></pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">17Turn disk quota off. Not that</pb>umount</tdb>and <td width="7%"b>stop</tdb>does that automatically.<td width="78%"/p>
<pstyle="margin-left:11%;">Error during <b>vzctl restorequotainit</b></pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">18Initialize disk quota (i.e. run</pb>vzquota init</tdb>) with the parameters taken from the CTconfiguration file [[Man/ctid.conf.5|<td width="7%"b>ctid.conf</tdb>(5)]].<td width="78%"/p>
<pstyle="margin-left:11%;">Error from <b>setluid()exec</b> syscall</pi>CTIDcommand</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">Executes <i>20command</pi> in acontainer. Environment variables are not set inside thecontainer. Signal handlers may differ from default settings.If <i>command</tdi>is <td width="7%"b>-</tdb>, commands are read fromstdin.<td width="78%"/p>
<pstyle="margin-left:11%;">Invalid command line parameter</pb>exec2</tdb></tri>CTIDcommand<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">21The same as </pb>exec</tdb>, butreturn code is that of <td width="7%"i>command</tdi>.<td width="78%"/p>
<pstyle="margin-left:11%;">Invalid value for command line parameter</pb>runscript</tdb></tri>CTIDscript<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">22Run specified shell script inthe container. Argument </pi>script</tdi>is a file on the hostsystem which contents is read by vzctl and executed in thecontext of the container. For a running container, thecommand jumps into the container and executes the script.For a stopped container, it enters the container, mountscontainer&rsquo;s root filesystem, executes the script, andunmounts CT root. In the latter case, the container is notreally started, no file systems other than root (such as<td width="7%"b>/proc</tdb>) are mounted, no startup scripts are executedetc. Thus the environment in which the script is running isfar from normal and is only usable for very basicoperations.<td width="78%"/p>
<pstyle="margin-left:11%;">Container root directory (<b>VE_ROOTenter</b>) not set<i>CTID</pi>[<b>--exec</tdb></tri>command<tr valign="top" align="left"/i>[<td width="11%"i>arg</tdi>...]]<td width="4%"/p>
<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/vz/conf/vps.mount</b> or<b>/etc/vz/conf/</b><i>CTID</i><b>.mount</b>.</p> <pre style="margin-left:11%; margin-top: 1em"> # If one of these files does not exist then something # is really broken [ -f /etc/vz/vz.conf ] || exit 1 [ -f $VE_CONFFILE ] || exit 1 # Source both files. Note the order is important. . /tdetc/vz/vz.conf . $VE_CONFFILE SRC=/mnt/disk DST=/mnt/disk mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC</pre> == EXIT STATUS == <p style="margin-left:11%; margin-top: 1em">Returns 0 uponsuccess, or an appropriate error code in case of anerror:</trp> <table 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>501</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Failed to mount containerset a UBC parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>512</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Failed to unmount containerset a fair scheduler parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>523</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to delete a containerGeneric system error</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>535</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container private area The running kernel is not existan OpenVZ kernel (or someOpenVZ modules are not loaded)</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>606</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota on</b> failedNot enough system resources</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>617</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota initENV_CREATE</b> ioctl failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>628</p></td>
<td width="7%"></td>
<td width="78%">
<p>Command executed by <b>vzquota setlimitvzctl exec</b> failedreturned non-zeroexit code</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>639</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter Container is locked by another <b>DISKSPACEvzctl</b> not setinvocation</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6410</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter Global OpenVZ configuration file [[Man/vz.conf.5|<b>DISKINODESvz.conf</b> (5)]] not setfound</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>44</p></td><td width="7%"></td><td width="78%"> <p>Container private area already exists</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15046</p></td>
<td width="7%"></td>
<td width="78%">
<p>Ploop image file not foundNot enough disk space</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15147</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error creating 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>15248</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error mounting 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>15349</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error unmounting ploop imageUnable to create a new container root area</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>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%">
<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>166</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error creating compacting ploop snapshotimage</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>157167</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error merging listing 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 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