Changes

Jump to: navigation, search

Man/vzctl.8

22,795 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>all</btr>][<btr valign="top" align="left">--hostname&nbsp;</btd width="11%"><i>name</itd>][<btd width="7%">--nameserver&nbsp;</b><i>addr</i>][<bp>--searchdomain&nbsp;</b><i>namevzctl</i>][<b>--netif_add&nbsp;</b><ip>dev</itd>[,<itd width="2%">params</itd>...]][<b>--netif_del&nbsp;</b><i>dev</i>|<b>all</btd width="80%">][<b>--ifname</b> <i>dev</i>[<b>--mac&nbsp;</b><ip>hwaddr</i>][<b>--host_ifname&nbsp;</b><i>devflags</i>][<b>snapshot--host_mac&nbsp;switch</b><i>hwaddrCTID</i>][<b>--bridge&nbsp;</b><i>name</i>][<b>skip--mac_filter&nbsp;onresume</b>|<b>off</b>]][<b>--numproc&nbsp;must-resume</b><i>items</i>][<b>--numtcpsock&nbsp;skip-config</b><i>items</i>][<b>--numothersock&nbsp;id</b><i>itemsuuid</i>][<b/p>--vmguarpages&nbsp;</btd><i>pages</itr>][<b>--kmemsize&nbsp;</btr valign="top" align="left"><itd width="11%">bytes</itd>][<btd width="7%">--tcpsndbuf&nbsp;</b><i>bytes</i>][<bp>--tcprcvbuf&nbsp;</b><i>bytesvzctl</i>][<b>--othersockbuf&nbsp;</bp><i>bytes</itd>][<btd width="2%">--dgramrcvbuf&nbsp;</btd><i>bytes</itd width="80%">][<b>--oomguarpages&nbsp;</bp>[<i>pagesflags</i>][<b>snapshot--lockedpages&nbsp;delete</b><i>pagesCTID</i>][<b>--privvmpages&nbsp;id</b><i>pagesuuid</i>][<b/p>--shmpages&nbsp;</btd><i>pages</itr>][<btr valign="top" align="left">--numfile&nbsp;</btd width="11%"><i>items</itd>][<btd width="7%">--numflock&nbsp;</b><i>items</i>][<bp>--numpty&nbsp;</b><i>itemsvzctl</i>][<b>--numsiginfo&nbsp;</bp><i>items</itd>][<btd width="2%">--dcachesize&nbsp;</btd><itd width="80%">bytes </ip>][<b>--numiptent&nbsp;</b><i>numflags</i>][<b>snapshot--physpages&nbsp;mount</b><i>pagesCTID</i>][<b>--swappages&nbsp;id</b><i>pagesuuid</i>][<b>--ram&nbsp;target</b><i>bytes</i>][<b>--swap&nbsp;dir</b><i>bytes</ip>][<b>--cpuunits&nbsp;</btd><i>num</itr>][<btr valign="top" align="left">--cpulimit&nbsp;</btd width="11%"><i>num</itd>][<b>--cpus&nbsp;</btd width="7%"> <i>num</ip>][<b>--cpumask&nbsp;vzctl</b><i>cpus</ip>|<b>all</btd>][<btd width="2%">--meminfo&nbsp;none</btd>|<itd width="80%">mode</i>:<i>value </ip>][<b>--iptables&nbsp;</b><i>nameflags</i>][<b>snapshot--netdev_add&nbsp;umount</b><i>ifnameCTID</i>][<b>--netdev_del&nbsp;id</b><i>ifnameuuid</i>][<b>--diskquota&nbsp;yes</bp>|<b>no</btd>][<b>--diskspace&nbsp;</btr><i>num</i>][<b>--diskinodes&nbsp;</b><itr valign="top" align="left">num</i>][<btd width="11%">--quotatime&nbsp;</btd><i>seconds</i>][<b>--quotaugidlimit&nbsp;</b><itd width="7%">num</i>][<b>--noatime&nbsp;yes</b>|<b>no</b>][<bp>--capability&nbsp;</b><i>capnamevzctl</i>:<b>on</bp>|<b>off</btd>][<btd width="2%">--devnodes&nbsp;</btd><itd width="80%">param</i>][<bp>--devices&nbsp;</b><i>param</i>][<b>--pci_add&nbsp;</b><i>devflags</i>][<b>snapshot--pci_del&nbsp;list</b><i>devCTID</i>][<b>--features&nbsp;</b><i>param</i>:<b>on</b>|<b>offH</b>][<b>--applyconfig&nbsp;o</b><i>namefield</i>][<b>--applyconfig_map&nbsp;</b>,<i>groupfield</i>...][<b>--ioprio&nbsp;id</b><i>numuuid</i>]</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="7%">
<p><b>vzctl</b></p></td>
<td width="80%">
<p>[<i>flags</i>] <b>destroyset</b> | <bi>deleteCTID --parameter value</bi> |[...] [<b>mount--save</b> | ] [<b>umount--force</b> | <b>status</b> |][<b>quotaon--setmode&nbsp;restart</b> | <b>quotaoffignore</b> | <b>quotainit</b><i>CTID</i>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>exec</b> | <b>exec2set</b> <i>CTIDcommand</i> [<ib>arg--reset_ub</ib> ...]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>enterdestroy</b> | <ib>delete</b> |<b>mount</b> | <b>umount</b> | <b>CTIDstatus</ib>|[<b>--exec&nbsp;quotaon</b> | <b>quotaoff</b>| <ib>command&nbsp;quotainit</ib>[<i>arg&nbsp;CTID</i>...]]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>runscriptconsole</b> <i>CTID script</i>[<i>ttynum</i>]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>convert</b> <i>CTID</i>[<b>--helplayout&nbsp;ploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b> | <b>--versionraw</b>}]]</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>compact</b> <i>CTID</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>exec</b> | <b>exec2</b> <i>CTIDcommand</i> [<i>arg</i> ...]</p></td></tr><tr valign="top" align= OPTIONS "left"><td width="11%"></td><td width="7%">
<p><b>vzctl</b></p></td><td width="2%"></td><td width== Flags ==="80%">
<p style="margin-top: 1em">These [<i>flags come before a</i>] <b>enter</b> <i>CTID</i>[<b>--exec&nbsp;</b><i>command, and can be used with any command&nbsp;</i>[<i>arg&nbsp;</i>... They affect]]</p> </td></tr>logging to console (terminal) only, and do not affect<tr valign="top" align="left">logging to a log file.<td width="11%"></ptd><td width="7%">
<p style="margin-left:11%;"><b>--quietvzctl</b></p></td><td width="2%"></td><td width="80%">
<p style>[<i>flags</i>] <b>runscript</b> <i>CTID script</i></p></td></tr><tr valign="top" align="margin-left:17"><td width="11%;">Disables output. Note that</td>scripts run by vzctl are still able to produce someoutput.</ptd width="7%">
<p style="margin-left:11%;"><b>--verbosevzctl</b></p></td><td width="2%"></td><td width="80%">
<p style="margin-left:17%;">Increments logging level upfrom the default. Can be used multiple times. Default valueis set to the value of <b>VERBOSE--help</b> parameter in theglobal configuration file [[Man/vz.conf.5|<b>vz.conf--version</b>(5)]], or to <b/p>0</b>if not set by <btd>VERBOSE</btr> parameter.</ptable>
=== Setting container parameters 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"><b>set</b> Containers canbe referred to by either numeric <i>CTIDparameters</i> [or by name (see<b>--savename</b>] [option). Note that CT ID &lt;= 100 arereserved for OpenVZ internal purposes. A numeric ID shouldnot be more than <b>--force2147483644</b>].</p>
<p style="margin-left:17%;">This command sets variouscontainer parameters. If a <b>--save</b> 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.</p>= OPTIONS ==
<p style="margin-left:17%; margin-top: 1em">The followingparameters can be used with <b>set</b> command.</p>== Flags ===
<p style==== Miscellaneous ===="margin-top: 1em">These flags come before acommand, and can be used with any command. They affectlogging to console (terminal) only, and do not affectlogging to a log file.</p>
<p style="margin-left:11%;"><b>--onboot yes</b> |<b>noquiet</b></p>
<p style="margin-left:17%;">Sets whether the container willbe started during system bootDisables output. The container will not beNote thatauto-started unless this parameter is set scripts run by vzctl are still able to <b>yes</b>produce someoutput.</p>
<p style="margin-left:11%;"><b>--bootorderverbose</b><i>number</i></p>
<p style="margin-left:17%;">Sets Increments logging level upfrom the boot order prioritydefault. Can be used multiple times. Default valuefor this CT. The higher is set to the value of <ib>numberVERBOSE</ib> is, parameter in the earlier inthe boot process this container startsglobal configuration file [[Man/vz.conf.5|<b>vz. By default thisparameter is unsetconf</b>(5)]], which is considered or to be the lowest<b>0</b>priority, so containers with unset if not set by <b>bootorderVERBOSE</b> willstart lastparameter.</p>
<p style="margin-left:11%;"><b>--root</b> <i>path</i></p>== Setting container parameters ===
<p styletable width="margin-left:17100%;" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0">Sets the path to root directory(<btr valign="top" align="left">VE_ROOT</b>) for this container. This is essentially amount point for container&rsquo;s root directory. Argumentcan contain literal string <btd width="11%">$VEID</btd>, which will besubstituted with the numeric CT ID.</ptd width="4%">
<p style="margin-lefttop:11%;1em"><b>--privateset</b></p></td><itd width="2%">path</itd></ptd width="83%">
<p style="margin-lefttop:17%1em"><i>CTID</i>[<b>--onboot&nbsp;yes</b>|<b>no</b>][<b>--bootorder&nbsp;</b><i>number</i>][<b>--root&nbsp;"</b><i>Sets the path to </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;</b><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;</b><i>addr</i>]directory ([<b>VE_PRIVATE--searchdomain&nbsp;</b>) for this container<i>name</i>][<b>--netif_add&nbsp;</b><i>dev</i>[,<i>params</i>. This is a..]]directory in which [<b>--netif_del&nbsp;</b><i>dev</i>|<b>all the container</b>][<b>--ifname</b> <i>dev</i>[<b>--mac&nbsp;</b><i>hwaddr</i>][<b>--host_ifname&nbsp;</b><i>dev</i>][<b>--host_mac&nbsp;</b><i>hwaddr</i>][<b>--bridge&nbsp;</b><i>name</i>][<b>--mac_filter&nbsp;on</b>|<b>off</b>]][<b>--numproc&rsquonbsp;s files are</b><i>items</i>]stored. Argument can contain literal string [<b>$VEID--numtcpsock&nbsp;</b>,<i>items</i>]which will be substituted with the numeric CT ID.[<b>--numothersock&nbsp;</b><i>items</pi>][<b>--vmguarpages&nbsp;</b><i>pages</i>][<p style="marginb>--left:11%kmemsize&nbsp;"</b><i>bytes</i>][<b>--userpasswdtcpsndbuf&nbsp;</b><i>bytes</i>][<b>--tcprcvbuf&nbsp;</b><i>userbytes</i>:][<b>--othersockbuf&nbsp;</b><i>passwordbytes</i>][<b>--dgramrcvbuf&nbsp;</pb><i>bytes</i>][<b>--oomguarpages&nbsp;</b><i>pages</i>][<p style="marginb>--left:17%lockedpages&nbsp;"</b><i>pages</i>Sets password for the given]user in a container, creating the user if it does not[<b>--privvmpages&nbsp;</b><i>pages</i>]exists. Note that this option is not saved in configuration[<b>--shmpages&nbsp;</b><i>pages</i>]file at all (so [<b>--savenumfile&nbsp;</b> flag is useless), it is<i>items</i>]applied to the container (by modifying its [<b>--numflock&nbsp;</etcb><i>items</passwd andi>][<b>--numpty&nbsp;</b><i>items</etci>][<b>--numsiginfo&nbsp;</shadow files).b><i>items</i>][<b>--dcachesize&nbsp;</b><i>bytes</pi>][<b>--numiptent&nbsp;</b><i>num</i>][<p style="marginb>--left:17%physpages&nbsp; margin</b><i>pages</i>][<b>--top: 1em"swappages&nbsp;</b><i>pages</i>In case]container root filesystem is not mounted, it is[<b>--ram&nbsp;</b><i>bytes</i>]automatically mounted, then all the appropriate file changes[<b>--swap&nbsp;</b><i>bytes</i>]are applied, then it is unmounted.[<b>--vm_overcommit&nbsp;</b><i>float</pi>][<b>--cpuunits&nbsp;</b><i>num</i>][<p style="marginb>--left:17%cpulimit&nbsp; margin</b><i>num</i>][<b>-top: 1em"-cpus&nbsp;</b><i>num</i>Note that]container should be created before using this option.[<b>--cpumask&nbsp;</b><i>cpus</i>|<b>auto</b>|<b>all</pb>][<b>--nodemask&nbsp;</b><i>nodes</i>|<b>all</b>][<p style="marginb>--leftmeminfo&nbsp;none</b>|<i>mode</i>:11%<i>value</i>][<b>--iptables&nbsp;"</b><i>name</i>[<b>,</b>...]][<b>--netfilter&nbsp;disabled yes</b> |<b>stateless</b>|<b>stateful</b>|<b>full</b>][<b>no--netdev_add&nbsp;</b><i>ifname</pi>][<b>--netdev_del&nbsp;</b><i>ifname</i>][<b>--diskquota&nbsp;yes</b>|<b>no<p style="margin/b>][<b>--left:17%diskspace&nbsp;"</b><i>num</i>Disable container start. To]force the start of a disabled container, use [<b>--diskinodes&nbsp;</b>vzctl start<i>num</i>][<b>--forcequotatime&nbsp;</b>.<i>seconds</pi>][<b>--quotaugidlimit&nbsp;</b><i>num</i>][<p style="marginb>--leftcapability&nbsp;</b><i>capname</i>:11%<b>on</b>|<b>off</b>[<b>,</b>...]][<b>--devnodes&nbsp;"</b><i>param</i>][<b>--namedevices&nbsp;</b> <i>nameparam</i>][<b>--pci_add&nbsp;</b><i>dev</pi>][<b>--pci_del&nbsp;</b><i>dev</i>][<p style="marginb>--left:17%features&nbsp;"</b><i>Add a name for a container</i>:<b>on</b>|<b>off</b>[<b>,</b>... The]][<b>--applyconfig&nbsp;</b><i>name</i> can later be used in subsequent calls to][<b>vzctl--applyconfig_map&nbsp;</b> in place of <i>CTIDgroup</i>][<b>--ioprio&nbsp;</b><i>.num</pi>][<b>--iolimit&nbsp;</b><i>mbps</i>][<p style="marginb>--left:11%iopslimit&nbsp;"</b><i>iops</i>] [<b>--save</b>][<b>--force</b>] [<b>--descriptionreset_ub</b>][<ib>--setmode&nbsp;restart</b>|<b>stringignore</ib>]</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"></td><td width="2%"></td><td width="83%">
<p style="margin-left:17%;">Add a textual description for aThis command sets various container parameters. If thecontaineris currently running, <b>vzctl</b> applies theseparameters to the container. The following options can beused with <b>set</b> command.</p></td></tr></table>
<p style="margin-left:11%;"><b>--setmoderestart</b>|<b>ignore</b></p>=== Flags ====
<p style="margin-left:1711%;">Whether to restart a containerafter applying parameters that require the container to berestarted in order to take effect.<b>--save</b></p>
<p style==== Networking ===="margin-left:17%;">If this flag is given,parameters are saved in container configuration file[[Man/ctid.conf.5|<b>ctid.conf</b>(5)]].</p>
<p style="margin-left:11%;"><b>--ipaddforce</b> <i>addr</i></p>
<p style="margin-left:17%;">Adds an IP address If this flag is given togetherwith <ib>addr--save</ib>, parameters are saved even if the currentto a given containerkernel doesn&rsquo;t support OpenVZ. Address can optionally have a netmaskNote this flag does notspecified in the CIDR notation (e.g. make sense without <b>10.1.2.3/25--save</b>).Note that this option is incremental, so <ib>addr--save</ib> areisadded to already existing onesrequired.</p>
<p style="margin-left:11%;"><b>--ipdel</b> <i>addr</i> |<b>allreset_ub</b></p>
<p style="margin-left:17%;">Removes IP address If this flag is given,<ib>addrvzctl</ib>applies all User Beancounter parameters fromfrom the configuration file to a running container. If you want to remove all the addressesThis ishelpful in case configuration file is modified manually.Please note this flag is exclusive,i.e. it can not beuse <b>--ipdel all</b>combined with any other options or flags.</p>
<p style="margin-left:11%;"><b>--hostnamesetmode restart</b>|<ib>nameignore</ib></p>
<p style="margin-left:17%;">Sets A few parameters can only beapplied by restarting the container hostname.By default,<b>vzctl</b> writes it prints a warning if such parameters aresupplied and a container is running. Use <b>--setmoderestart</b> together with <b>--save</b> flag to the appropriate file inside restart acontainer (distributionin such a case, or <b>-dependent)-setmode ignore</b> tosuppress the warning.</p>
<p style="margin-left:11%;"><b>--nameserver</b><i>addr</i></p>=== Miscellaneous ====
<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>--nameserveronboot yes</b> option|multiple times in one call to <b>vzctlno</b>, as all the nameserver values set in previous calls to <b>vzctl</b> areoverwritten.</p>
<p style="margin-left:1117%;">Sets whether the container willbe started during system boot. The container will be startedon boot by <b>vz</b> initscript if either this parameter isset to <b>--searchdomainyes</b>, or the container was running just beforelast reboot, and this parameter is not set to <ib>nameno</ib>.Default value is unset, meaning the container will bestarted if it was running before the last reboot.</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>--searchdomainbootorder</b> optionmultiple times in one call to <bi>vzctlnumber</bi>, as all thesearch domain values set in previous calls to <b>vzctl</b>are overwritten.</p>
<p style="margin-left:1117%;"><b>--netif_add</b>Sets the boot order priorityfor this CT. The higher the <i>ifname[number</i>is,<i>mac</i>the earlier inthe boot process this container starts. By default thisparameter is unset,<i>host_ifname</i>which is considered to be the lowestpriority,so containers with unset <ib>host_macbootorder</i>,<i>bridge]</ib>willstart last.</p>
<p style="margin-left:1711%;">Adds a virtual Ethernet device(veth) to a given container. Here <i>ifname</i> is theEthernet device name in the container, <i>mac</i> is its MACaddress, <i>host_ifname</i> is the Ethernet device name onthe host, and <ib>host_mac--root</i> is its MAC address. MACaddresses should be in the format like XX:XX:XX:XX:XX:XX.<i>bridge</ib> is an optional parameter which can be used incustom network start scripts to automatically add theinterface to a bridge. All parameters except <i>ifnamepath</i>are optional and are automatically generated if notspecified.</p>
<p style="margin-left:1117%;">Sets the path to root directory(<b>--netif_delVE_ROOT</b>) for this container. This is essentially a<i>dev_name</i> | mount point for container&rsquo;s root directory. Argumentcan contain literal string <b>all$VEID</b>, which will besubstituted with the numeric CT ID.</p>
<p style="margin-left:1711%;">Removes virtual Ethernet devicefrom a container. If you want to remove all devices, use<b>all--private</b>.<i>path</i></p>
<p style==== veth interface configuration ===="margin-left:17%;">Sets the path to privatedirectory (<b>VE_PRIVATE</b>) for this container. This is adirectory in which all the container&rsquo;s files arestored. Argument can contain literal string <b>$VEID</b>,which will be substituted with the numeric CT ID.</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>--ifnamemount_opts</b> <i>nameoption</i> option. [<b><br>--mac,</b> <i>XX:XX:XX:XX:XX:XXoption</i>...]</p>
<p style="margin-left:2217%;">MAC address of interface insideSets additional mount optionsa for containerfile system. Only applicable for <b>ploop</b>layout, ignored otherwise.</p>
<p style="margin-left:11%;"><b>--host_ifnameuserpasswd</b><i>nameuser</i>:<i>password</i></p>
<p style="margin-left:2217%;">interface name Sets password for virtualthe givenuser in a container, creating the user if it does notinterface exists. Note that this option is not saved in configurationfile at all (so <b>--save</b> flag is useless), it isapplied directly to the container, 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">In casecontainer was not running, it is automatically started thenall the host systemappropriate changes are applied, then it isstopped.</p>
<p style="margin-left:1117%;margin-top: 1em"><b>--host_mac</b>Note that<i>XX:XX:XX:XX:XX:XX</i>container should be created before using this option.</p>
<p style="margin-left:2211%;">MAC address of interface in the<b>--disabled yes</b> |host system.<b>no</b></p>
<p style="margin-left:1117%;">Disable container start. Toforce the start of a disabled container, use <b>vzctl start--bridgeforce</b> <i>name</i>.</p>
<p style="margin-left:2211%;">Bridge <b>--name. Custom networkstart scripts can use this value to automatically add theinterface to a bridge.</b> <i>name</i></p>
<p style="margin-left:1117%;">Add a name for a container. The<i>name</i> can later be used in subsequent calls to<b>--mac_filter onvzctl</b> |in place of <i>CTID</i>. Note this option cannot be used without <b>off--save</b>.</p>
<p style="margin-left:2211%;">Enables<b>--description</disables MAC addressfiltering for the Container veth device and the possibilityof configuring the MAC address of this device from insideb>the Container. If the filtering is turned on: <bri>&bull; the veth device accepts only those packets that havea MAC address in their headers corresponding to that of thisdevice (excluding all broadcast and multicast packets); string<br/i>&bull; it is impossible to modify the veth MAC address frominside the Container.</p>
<p style="margin-left:2217%; margin-top: 1em">By default,this functionality is enabled Add a textual description for all veth devices existingainside the Containercontainer.</p>
<p style==== VSwap limits ===="margin-left:11%;"><b>--ostemplate</b><i>string</i></p>
<p style="margin-left:1117%; margin-top: 1em">The followingSets a new value ofoptions sets memory and swap limits for VSwap-enabled<b>OSTEMPLATE</b> parameter in container configuration filekernels [[Man/ctid.conf.5|<b>ctid.conf</b>(kernel version 042stab042 or greater5)]]. Requires <b>--save</b> flag. Usefulafter a change/upgrade of a distribution running insidecontainer, as vzctl uses the value of OSTEMPLATE to rundistribution-specific scripts.</p>
<p style="margin-left:11%; margin"><b>--stop-top: 1em"timeout</b>Argument is inbytes, with an optional suffix. Available suffixes are:<i>seconds</i></p>
<table widthp style="100margin-left:17%;" border="0" rules="none" frame="void">Sets a time to wait for cellspacing="0" cellpadding="0"container to stop on <b>vzctl stop<tr valign="top" align="left"/b>before forciblykilling it, in seconds. Note this option can not be usedwithout <td width="11%"b>--save</tdb>flag.<td width="6%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Special valueof <b>T</b>, <b>t0</b>means to use compiled-in default.</p></td><td width="5%"></td><td width="44%">
<p>terabytes;</p></td><td width="34%"></td></tr><tr valign="top" align="left"><td width="11%"></td><td widthNetworking ===="6%">
<pstyle="margin-left:11%;"><b>G--ipadd</b>, <bi>gaddr</bi></p></td><td width="5%"></td><td width="44%">
<pstyle="margin-left:17%;">gigabytes;Adds an IP address </pi>addr</tdi>to a given container. Address can optionally have a netmaskspecified in the CIDR notation (e.g. <td width="34%"b><10.1.2.3/td>25</trb>).Note that this option is incremental, so <tr valign="top" align="left"><td width="11%"i>addr</tdi>areadded to already existing ones.<td width="6%"/p>
<pstyle="margin-left:11%;"><b>M--ipdel</b>, <bi>maddr</bi>|</pb>all</td><td width="5%"b></td><td width="44%"p>
<p>megabytes;</p></td><td widthstyle="34margin-left:17%;">Removes IP address </tdi>addr</tri><tr valign="top" align="left">from a container. If you want to remove all the addresses,use <td width="11%"b>--ipdel all</tdb>.<td width="6%"/p>
<pstyle="margin-left:11%;"><b>K--hostname</b>, <bi>kname</bi></p></td><td width="5%"></td><td width="44%">
<p>kilobytes;</p></td><td widthstyle="34margin-left:17%;">Sets container hostname.</tdb>vzctl</tr><tr valign="top" align="left"b>writes it to the appropriate file inside a<td width="11%">container (distribution-dependent).</td><td width="6%"p>
<pstyle="margin-left:11%;"><b>P--nameserver</b>, <bi>paddr</bi></p></td><td width="5%"></td><td width="44%">
<pstyle="margin-left:17%;">memory pages (arch-specific)Sets DNS server IP address fora container.If you want to set several nameservers, youshould do it at once, so use </pb>--nameserver</tdb>optionmultiple times in one call to <b>vzctl<td width="34%"/b>, as all the nameserver values set in previous calls to </tdb>vzctl</trb>areoverwritten.</tablep>
<p style="margin-left:1117%;margin-top: 1em">A special valueof <b>--raminherit</b> can be used to auto-propagate nameservervalue(s) from the host system&rsquo;s<ib>bytes/etc/resolv.conf</ib>file.</p>
<p style="margin-left:2211%;">Sets physical memory (RAM)available to a container. Actually, the option is a shortcutfor setting <b>--physpagessearchdomain</b> limit (the barrier is set to0).<i>name</i></p>
<p style="margin-left:1117%;">Sets DNS search domains for acontainer. If you want to set several search domains, youshould do it at once, so use <b>--swapsearchdomain</b> optionmultiple times in one call to <ib>bytesvzctl</ib>, as all thesearch domain values set in previous calls to <b>vzctl</b>are overwritten.</p>
<p style="margin-left:2217%;margin-top: 1em">Set swap space available A special valueof <b>inherit</b> can be used to aauto-propagate searchcontainer. Actually, domain value(s) from the option is a shortcut for settinghost system&rsquo;s<b>--swappages/etc/resolv.conf</b> limit (the barrier is set to 0)file.</p>
<p style="margin-left:11%; margin"><b>--top: 1em"netif_add</b>Here is anexample of setting container 777 to have 512 megabytes ofRAM and 1 gigabyte of swap:<i>ifname[</i>,<i>mac</i>,<i>host_ifname</i>,<i>host_mac</i>,<i>bridge]</i></p>
<pre p style="margin-left:1117%;"> vzctl set 777 --ram 512M --swap 1G --saveAdds a virtual Ethernet device(veth) to a given container. Here <i>ifname</i> is theEthernet device name in the container, <i>mac</i> is its MACaddress, <i>host_ifname</i> is the Ethernet device name onthe host, and <i>host_mac</i> 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 notspecified.</prep>
<p style="margin-left:11%;"><b>--netif_del</b><i>dev_name</i> | <b>all</b></p> <p style="margin-left:17%;">Removes virtual Ethernet devicefrom a container. If you want to remove all devices, use<b>all</b>.</p> == User Beancounter limits == veth interface configuration ====
<p style="margin-left:11%; margin-top: 1em">The following
options sets barrier and limit for various usercan be used to reconfigure the already-createdbeancountersvirtual Ethernet interface.To select the interface toconfigure, use <b>--ifname</b> <i>name</i> option. <b><br>--mac</b> <i>XX:XX:XX:XX:XX:XX</i></p>
<p style="margin-left:1122%; margin-top: 1em">Note that forMAC address of interface insideVSwap-enabled kernels (version 042stab042 or greater) theselimits are optional, you must only set <b>--ram</b> and--swap (see above). For older kernels, these limits areobligatorya container.</p>
<p style="margin-left:11%; margin-top: 1em">Each optionrequires one or two arguments. In case of one argument,<b>vzctl--host_ifname</b> sets barrier and limit to the same value. Incase of two colon-separated arguments, the first is abarrier, and the second is a limit. Each argument is eithera number, a number with a suffix, or a special value<bi>unlimitedname</bi>.</p>
<p style="margin-left:1122%; margin-top: 1em">Arguments areinterface name for virtualinterface in items, pages or bytes. Note that page size isarchitecture-specific, it is 4096 bytes on x86 and x86_64platformsthe host system.</p>
<p style="margin-left:11%; margin-top: 1em">You can alsospecify different suffixes for <b>set</b> parameters (exceptfor the parameters which names start with <b>num--host_mac</b>). Forexample, <b>vzctl set</b> <i>CTIDXX:XX:XX:XX:XX:XX</i> <b>--privvmpages5M:6M</b> should set <b>privvmpages</b>&rsquo; barrier to 5megabytes and its limit to 6 megabytes.</p>
<p style="margin-left:1122%; margin-top: 1em">AvailableMAC address of interface in thesuffixes are:host system.</p>
<table widthp style="100margin-left:22%; margin-top: 1em" border="0" rules="none" frame="void">If you want an cellspacing="0" cellpadding="0">independent communication with the Container through the<tr valign="top" align="left">bridge, you should specify a multicast MAC address here<td width="11%">(FE:FF:FF:FF:FF:FF).</td><td width="6%"p>
<pstyle="margin-left:11%;"><b>T--bridge</b>, <bi>tname</bi></p></td><td width="5%"></td><td width="44%">
<p>terabytes;</p></td><td widthstyle="34margin-left:22%;">Bridge name. Custom network</td></tr>start scripts can use this value to automatically add the<tr valign="top" align="left"><td width="11%">interface to a bridge.</td><td width="6%"p>
<pstyle="margin-left:11%;"><b>G--mac_filter on</b>, |<b>goff</b></p></td><td width="5%"></td><td width="44%">
<p>gigabytesstyle="margin-left:22%;</p"><Enables/td>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: <td width="34%"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); </tdbr>&bull; it is impossible to modify the veth MAC address frominside the Container.</trp> <tr valignp style="margin-left:22%; margin-top" align="left: 1em">By default,this functionality is enabled for all veth devices existing<td width="11%">inside the Container.</td><td width="6%"p>
<p><b>M</b>, <b>m</b></p></td><td width="5%"></td><td width="44%">== VSwap limits ====
<p>megabytes;</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>K</b>, <b>k</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</b>, <b>m</b> - megabytes; <br>&bull; <b>K</b>, <b>k</b>- kilobytes;<br>&bull; <b>P</b>, <b>p></tdb>- memory pages (arch-specific,usually 4KB); <td width="34%"br>&bull; <b>B</tdb>, <b>b</trb>- bytes (this is the default).<tr valign="top" align="left"b><br>--ram<td width="11%"/b> <i>bytes</tdi><td width="6%"/p>
<pstyle="margin-left:22%;"><b>P</b>Sets physical memory (RAM)available to a container. Actually, the option is a shortcutfor setting <b>p--physpages</b>limit (the barrier is set to0).</p></td><td width="5%"></td><td width="44%">
<pstyle="margin-left:11%;">memory pages (arch-specific).</pb>--swap</tdb><td width="34%"i>bytes</tdi></tr></tablep>
<p style="margin-left:1122%; ">Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>--swappages</b> limit (the barrier is set to 0).</p> <p style="margin-topleft: 1em11%;">You can alsospecify the literal word <b>unlimited--vm_overcommit</b> in place of anumber<i>float</i></p> <p style="margin-left:22%;">Set VM overcommitment value to<i>float</i>. In that case the corresponding value will be If set , it is used tocalculate<b>LONG_MAXprivmmpages</b>, iparameter in case it is not setexplicitly (see below). e. the maximum possible Default value. is <b>0<br/b>, meaningunlimited privvmpages.</p> <p style="margin-left:11%; margin-numproctop: 1em"></b> <i>itemsvzctl</ib>[:checks if running kernel is VSwap capable, and refuses touse these parameters otherwise. This behavior can beoverriden by using <ib>items--force</ib>]flag beforeparameters.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of processes In VSwap mode,all beancounters other than RAM andswap become optional.Note though that if some optional beancounters are not set,kernel-level threads. Setting the barrier they are calculated and set by vzctl implicitly, using the limit todifferent values does not make practical sense.following formulae:</p>
<p style="margin-left:11%;margin-top: 1em"><b>--numtcpsock&bull;lockedpages.barrier = oomguarpages.barrier = ram</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of TCP sockets.This parameter limits the number of TCP connections and,thus, the number of clients the server application can<b>&bull;handle in parallellockedpages. Setting the barrier and the limit todifferent values does not make practical sense= oomguarpages.limit = unlimited</b></p>
<p style="margin-left:11%;margin-top: 1em"><b>--numothersock&bull;vmguarpages.barrier = vmguarpages.limit = ram + swap</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of non-TCP<b>&bull;sockets (local sockets, UDP and other types of sockets)privvmpages.Setting the barrier and the = privvmpages.limit to different values does= (ram + swap) *not make practical sense.vm_overcommit</b></p>
<p style="margin-left:11%;margin-top: 1em">(if<b>--vmguarpagesvm_overcommit</b>is <ib>pages0</ib>[:or not set,<ib>pagesprivvmpages</ib>]is set to &quot;unlimited&quot;)</p>
<p style="margin-left:2211%;margin-top: 1em">Memory allocation guarantee.This parameter controls how much memory Here is available to aancontainer. The barrier is the amount example of memory thatsetting container&rsquo;s applications are guaranteed to be able 777 tohave 512 megabytes ofallocate. The meaning RAM and 1 gigabyte of the limit is currently unspecified;it should be set to <b>unlimited</b>.swap:</p>
<p pre style="margin-left:11%;"><b> vzctl set 777 --ram 512M --swap 1G --kmemsize</b><i>bytes</i>[:<i>bytes</i>]save</ppre>
<p style="margin-left:22%;">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: equalbarrier and limit may lead to the situation where the kernelwill need to kill container&rsquo;s applications to keep the<b>kmemsize</b> usage under the limit.</p>=== User Beancounter limits ====
<p style="margin-left:11%;margin-top: 1em"><b>--tcpsndbuf</b>The followingoptions sets barrier and limit for various user<i>bytes</i>[:<i>bytes</i>]beancounters.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size Note that forVSwap-enabled kernels (version 042stab042 or greater) theselimits are optional, you must only set <b>--ram</b> and<b>--swap</b> (see above). For older kernels, these limitsare obligatory.</p> <p style="margin-left:11%; margin-top: 1em">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 Memory allocation guarantee.This parameter controls how much memory is available to acontainer. The barrier is the amountof memory allocated by the thatcontainer&rsquo;s applicationsare guaranteed to be able toallocate. For shared (mappedThe meaning of the limit is currently unspecified;as it should be set to <b>MAP_SHAREDunlimited</b>) pages, each container really using a.</p>memory page is charged for the fraction of the page(depending on the number of others using it). For&quot<p style="margin-left:11%;potentially private&quot; pages (mapped as"><b>MAP_PRIVATE--kmemsize</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.<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%; margin">Maximum amount of kernel memoryused. This parameter is related to <b>-top: 1em"-numproc</b>The . 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 andthe limit of this parameter control : equalbarrier and limit may lead to the upper boundary ofsituation where the total size of allocated memory. Note that this upperkernelboundary does not guarantee that container will be able need toallocate that much memory. The primary mechanism kill container&rsquo;s applications to controlkeep thememory allocation is the <b>--vmguarpageskmemsize</b> guaranteeusage under the limit.</p>
<p style="margin-left:11%;"><b>--shmpagestcpsndbuf</b><i>pagesbytes</i>[:<i>pagesbytes</i>]</p>
<p style="margin-left:22%;">Maximum IPC SHM segment sizeof TCP sendbuffers.Barrier should be not less than 64 KB, andSetting the difference between barrier and the limit should be equal to different values doesormore than value of <b>numtcpsock</b> multiplied by 2.5not make practical senseKB.</p>
<p style="margin-left:11%;"><b>--numfiletcprcvbuf</b><i>itemsbytes</i>[:<i>itemsbytes</i>]</p>
<p style="margin-left:22%;">Maximum number size of open filesTCP receivebuffers.Barrier should be not less than 64 KB, andIn most cases the difference between barrier and the limit should be set equal to theorsame more than value. Setting the barrier to of <b>0numtcpsock</b> effectivelydisables pre-charging optimization for this beancounter inthe kernel, which leads to the held value being precise butmultiplied by 2.5could slightly degrade file open performanceKB.</p>
<p style="margin-left:11%;"><b>--numflockothersockbuf</b><i>itemsbytes</i>[:<i>itemsbytes</i>]</p>
<p style="margin-left:22%;">Maximum number size of file locksother (non-TCP)socket send buffers.If container&rsquo;s processes needs toSafety gap send very large datagrams, the barrier should be between barrier and setaccordingly. Increased limitis necessary for highperformance of communications through local (UNIX-domain)sockets.</p>
<p style="margin-left:11%;"><b>--numptydgramrcvbuf</b><i>itemsbytes</i>[:<i>itemsbytes</i>]</p>
<p style="margin-left:22%;">Number Maximum size of pseudoother (non-terminalsTCP)(PTY)socket receive buffers. Note that in OpenVZ each If container can have not more&rsquo;s processes needsto receive very large datagrams, the barrier should be setthan 255 PTYsaccordingly. Setting The difference between the barrier and the limit todifferent values does is not make practical senseneeded.</p>
<p style="margin-left:11%;"><b>--numsiginfooomguarpages</b><i>itemspages</i>[:<i>itemspages</i>]</p>
<p style="margin-left:22%;">Number Guarantees against OOM kill.Under this beancounter the kernel accounts the total amountof memory and swap space used by the container&rsquo;sprocesses. The barrier of this parameter is theout-of siginfo structures-memory guarantee.If the <b>oomguarpages</b> usage isSetting below the barrier and the , processes of this container areguaranteed not to be killed in out-of-memory situations. Themeaning of limit is currently unspecified; it should be setto different values doesnot make practical sense<b>unlimited</b>.</p>
<p style="margin-left:11%;"><b>--dcachesizelockedpages</b><i>bytespages</i>[:<i>bytespages</i>]</p>
<p style="margin-left:22%;">Maximum size number ofpagesfilesystem-related caches, such as directory entry and inodecaches. Exists as a separate parameter to impose a limitcausing file operations to sense memory shortage and returnan errno to applications, protecting from memory shortagesduring critical operations that should not fail. Safety gapshould be between barrier and limitacquired by <b>mlock</b>(2).</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>--physpagesprivvmpages</b>
<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">On VSwap-enabled kernels, thislimits Allows controlling the amount of physical memory allocated by the applications. For shared (RAMmappedas <b>MAP_SHARED</b>) available to pages, each container really using acontainermemory page is charged for the fraction of the page(depending on the number of others using it). The barrier should be set to For&quot;potentially private&quot; pages (mapped as<b>0MAP_PRIVATE</b>), and container is charged either for afraction of the size or for thefull size if the allocatedlimit to a total size of RAM that can address space. In the latter case, the physical pagesassociated with the allocated address space may be used used by aincontainermemory, in swap or not physically allocated yet.</p>
<p style="margin-left:22%; margin-top: 1em">For olderThe barrier andkernels, the limit of this is an accounting-only parameter, showing control theupper boundary ofusage the total size of RAM by allocated memory. Note that this upperboundary does not guarantee that container. Barrier should will be set able to<b>0</b>, and limit should be set allocate that much memory. The primary mechanism to controlmemory allocation is the <b>unlimited--vmguarpages</b>guarantee.</p>
<p style="margin-left:11%;"><b>--swappagesshmpages</b>
<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">For VSwap-enabled kernelsMaximum IPC SHM segment size.(042stab042 or greater), this parameter limits Setting the amount ofbarrier and the limit to different values doesswap space available to a containernot make practical sense. The barrier should be</p> set to <p style="margin-left:11%;"><b>0--numfile</b>, and the limit to a total size of swap thatcan be used by a container.<i>items</i>[:<i>items</i>]</p>
<p style="margin-left:22%; margin-top: 1em">For olderMaximum number of open files.(pre-VSwap) kernels, In most cases the barrier and the limit is used should be set to show a totaltheamount of swap space available inside same value. Setting the container. Thebarrier of this parameter is ignored. The default value isto <b>unlimited0</b>effectivelydisables pre-charging optimization for this beancounter inthe kernel, meaning total swap will be reported aswhich leads to the held value being precise but0could slightly degrade file open performance.</p>
<p style==== CPU fair scheduler parameters ===="margin-left:11%;"><b>--numflock</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:1122%; margin-top: 1em">TheseMaximum number of file locks.parameters control CPU usage by containerSafety gap should be between barrier and limit. <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--numpty</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 set CPUNumber of pseudo-terminalsweight for CT0 (host system itself) as well (use <b>vzctlset 0 --cpuunits</b> <i>num</i>PTY). Usually, Note that in OpenVZ initscripteach container can have not more(<b>/etc/initthan 255 PTYs.d/vz</b>) takes care of setting thisSetting the barrier and the limit todifferent values does not make practical sense.</p>
<p style="margin-left:11%;"><b>--cpulimitnumsiginfo</b><i>numitems</i>[:<bi>%items</bi>]</p>
<p style="margin-left:22%;">Limit Number of CPU usage for siginfo structures.Setting thecontainer, in per cent. Note if barrier and the computer has 2 CPUs, ithas total of 200% CPU time. Default CPU limit is <b>0</b>to different values does(no CPU limit)not make practical sense.</p>
<p style="margin-left:11%;"><b>--cpusdcachesize</b> <i>numbytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%;">sets number Maximum size of CPUs availablein the containerfilesystem-related caches, such as directory entry and inodecaches. Exists as a separate parameter to impose a limitcausing file operations to sense memory shortage and returnan errno to applications, protecting from memory shortagesduring critical operations that should not fail. Safety gapshould be between barrier and limit.</p>
<p style="margin-left:11%;"><b>--cpumasknumiptent</b> <i>cpusnum</i> |[:<bi>allnum</bi>]</p>
<p style="margin-left:22%;">sets list Number of allowed CPUs foriptables (netfilter)the containerentries. 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> (thedifferentcontainer can execute on any CPU)values does not make practical sense.</p>
<p style==== Memory output parameters ===="margin-left:11%;"><b>--physpages</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%; margin-top: 1em">ForOn VSwap-enabled kernels (042stab042 or greater), thisparameter is ignored. For older kernels, it controls limits theoutput amount of /proc/meminfo inside physical memory (RAM) available to a container. The barrier should be set to <b><br>--meminfo none0</b>, and thelimit to a total size of RAM that can be used used by acontainer.</p>
<p style="margin-left:22%;margin-top: 1em">No For olderkernels, this is an accounting-only parameter, showing theusage of RAM by this container. Barrier should be set to<b>0</procb>, and limit should be set to <b>unlimited</meminfo virtualization(the same as on host system)b>.</p>
<p style="margin-left:11%;"><b>--meminfoswappages</b><i>modepages</i>[:<i>valuepages</i>]</p>
<p style="margin-left:22%;">Configure total memory outputFor VSwap-enabled kernels(042stab042 or greater), this parameter limits the amount ofin swap space available to a container. Reported free memory is evaluatedThe barrier should beaccordingly to the mode being set. Reported swap isevaluated according to the settings of <b>--swappages0</b>, and the limit to a total size of swap thatparametercan be used by a container.</p>
<p style="margin-left:22%; margin-top: 1em">You can use For older(pre-VSwap) kernels, thelimit is used to show a totalfollowing modes for <i>mode</i>: <br>amount of swap space available inside the container. The&bull; <b>pages</b>:<i>barrier of this parameter is ignored. The default value</i> - sets total memory inpages; <br>is&bull; <b>privvmpagesunlimited</b>:<i>value</i> - sets , meaning total memoryswap will be reported asas <b>privvmpages</b> * <i>value</i>0.</p>
<p style="margin-left:22%; margin-top: 1em">Default is<b>privvmpages:1</b>.</p>=== CPU fair scheduler parameters ====
<p style==== iptables "margin-left:11%; margin-top: 1em">Theseparameters control parameters ====CPU usage by container. <b><br>--cpuunits</b> <i>num</i></p>
<p style="margin-left:1122%;">CPU weight for a container.Argument is positive non-zero number, passed to and used inthe kernel fair scheduler. The larger the number is, themore CPU time this container gets. Maximum value is 500000,minimal is 8. Number is relative to weights of all the otherrunning containers. If <b>--iptablescpuunits</b>are not specified,<i>name</i>default value of 1000 is used.</p>
<p style="margin-left:22%;margin-top: 1em">Allow to You can set CPUweight for CT0 (host system itself) as well (use the functionality<b>vzctlof set 0 --cpuunits</b> <i>namenum</i> iptables module inside the container). ToUsually, OpenVZ initscriptspecify multiple (<ib>name/etc/init.d/vz</ib>s, repeat --iptables for each,or use space-separated list as an argument (enclosed insingle or double quotes to protect spaces)takes care of setting this.</p>
<p style="margin-left:2211%; margin-top: 1em">The defaultlist of enabled iptables modules is specified by the<b>IPTABLES--cpulimit</b> variable in <i>num</i>[[Man/vz.conf.5|<b>vz.conf%</b>(5)]].</p>
<p style="margin-left:22%; margin-top: 1em">You can use Limit of CPU usage for thefollowing values for <i>name</i>: <b>iptable_filter</b>,<b>iptable_mangle</b>container, <b>ipt_limit</b>in per cent. Note if the computer has 2 CPUs,ithas total of 200% CPU time. Default CPU limit is <b>ipt_multiport</b>, <b>ipt_tos0</b>, <b>ipt_TOS</b>,<b>ipt_REJECT</b>, <b>ipt_TCPMSS</b>, <b>ipt_tcpmss</b>,<b>ipt_ttl</b>, <b>ipt_LOG</b>, <b>ipt_length</b>,<b>ip_conntrack</b>, <b>ip_conntrack_ftp</b>,<b>ip_conntrack_irc</b>, <b>ipt_conntrack</b>,<b>ipt_state</b>, <b>ipt_helper</b>, <b>iptable_nat</b>,<b>ip_nat_ftp</b>, <b>ip_nat_irc</b>, <b>ipt_REDIRECT</b>,<b>xt_mac</b>, <b>ipt_recent</b>, <b>ipt_owner</b>(no CPU limit).</p>
<p style==== Network devices control parameters ===="margin-left:11%;"><b>--cpus</b> <i>num</i></p>
<p style="margin-left:1122%;"><b>--netdev_add</b>sets number of CPUs available<i>name</i>in the container.</p>
<p style="margin-left:2211%;">move network device from the<b>--cpumask</b> <i>cpus</i> |host system to a specified container<b>auto</b> | <b>all</b></p>
<p style="margin-left:1122%;">Sets list of allowed CPUs forthe container. Input format is a comma-separated list ofdecimal numbers and/or ranges. Consecutively set bits areshown as two hyphen-separated decimal numbers, the smallestand largest bit numbers set in the range. For example, ifyou want the container to execute on CPUs 0, 1, 2, 7, youshould pass <b>0-2,7</b>. Default value is <b>all</b> (thecontainer can execute on any CPU). If used with the<b>--netdev_delnodemask</b>option, value of <ib>nameauto</ib>assigns allCPUs from the specified NUMA node to a container.</p>
<p style="margin-left:2211%;">delete network device from a<b>--nodemask</b> <i>nodes</i>specified container| <b>all</b></p>
<p style==== Disk quota parameters ===="margin-left:22%;">Sets list of allowed NUMA nodesfor the container. Input format is the same as for<b>--cpumask</b>. Note that <b>--nodemask</b> must be usedwith the <b>--cpumask</b> option.</p>
<p style="margin-left:11%;"><b>--diskquota yes</b> |<b>no</b></p>=== Memory output parameters ====
<p style="margin-left:2211%;margin-top: 1em">allows to enable ForVSwap-enabled kernels (042stab042 or disablegreater), thisdisk quota for a containerparameter is ignored. By defaultFor older kernels, a global valueit controls the(<b>DISK_QUOTA<output of /b>) from [[Manproc/vzmeminfo inside a container.conf.5|<b>vz.conf<br>--meminfo none</b>(5)]] is used.</p>
<p style="margin-left:1122%;"><b>--diskspace<No /proc/b>meminfo virtualization<i>num</i>[:<i>num</i>](the same as on host system).</p>
<p style="margin-left:2211%;">sets soft and hard disk quotalimits, in blocks. First parameter is soft limit, second ishard limit. One block is currently equal to 1Kb. Suffixes<b>G--meminfo</b>, <bi>Mmode</bi>, :<bi>Kvalue</bi> can also be specified (see<b>Resource limits</b> section for more info onsuffixes).</p>
<p style="margin-left:1122%;">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>--diskinodesswappages</b><i>num</i>[:<i>num</i>]parameter.</p>
<p style="margin-left:22%;margin-top: 1em">You can use thefollowing modes for <i>mode</i>: <br>&bull; <b>pages</b>:<i>value</i> - sets soft and hard disk quotatotal memory inlimits, in pages; <br>&bull; <b>privvmpages</b>:<i>value</i> -nodes. First parameter is soft limit, second issets total memoryhard limitas <b>privvmpages</b> * <i>value</i>.</p>
<p style="margin-left:1122%;margin-top: 1em">Default is<b>--quotatimeprivvmpages:1</b><i>seconds</i>.</p>
<p style="margin-left:22%;">sets quota grace period.Container is permitted to exceed its soft limits for thegrace period, but once it has expired, the soft limit isenforced as a hard limit.</p>=== Netfilter (iptables) control parameters ====
<p style="margin-left:11%;"><b>--quotaugidlimitnetfilter&nbsp;disabled</b>|<ib>stateless</b>|<b>stateful</b>|<b>numfull</ib></p>
<p style="margin-left:22%;">sets maximum number ofRestrict access tousernetfilter/group IDs in iptables modules for a container for which disk quota insidethe container will be accounted. If this value is set toThis optionreplaces obsoleted <b>0--iptables</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 changing this parameter to requires container restart, soconsider using <b>0--setmode</b>,changing it while the container is running will not takeeffectoption.</p>
<p style==== Mount option ===="margin-left:22%; margin-top: 1em">The followingarguments can be used: <b><br>&bull; disabled</b></p>
<p style="margin-left:1132%;"><b>--noatime yes</b> |<b>no</b>modules are allowed</p>
<p style="margin-left:22%;">Sets noatime flag (do notupdate inode access times) on filesystem.<b>&bull; stateless</b></p>
<p style==== Capability option ===="margin-left:32%;">all modules except NAT andconntracks are allowed (i.e. filter and mangle); this is thedefault</p>
<p style="margin-left:1122%;"><b>--capability</b><i>capname</i>:<b>on</b>|<b>off&bull; stateful</b></p>
<p style="margin-left:2232%;">Sets a capability for aall modules except NAT arecontainer. 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&quot; withthe default capability mask.allowed</p>
<p styletable width="margin-left:22100%; margin-top: 1em">You can use theborder="0" rules="none" frame="void"following values for <i cellspacing="0" cellpadding="0">capname</i>: <b>chown</b>,<btr valign="top" align="left">dac_override</b>, <b>dac_read_search</b>, <b>fowner</b>,<btd width="22%">fsetid</btd>, <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>.For detailed description, see <b>capabilities</b>(7).</ptd width="9%">
<p style="margin-left:22%; margin-top: 1em"><b>WARNING&bull; full</b>:setting some of those capabilities may have far reachingsecurity implications, so do not do it unless you know what</p></td>you are doing. Also note that setting <btd width="1%">setpcap:on</btd> fora container will most probably lead to inability to startit.</ptd width="36%">
<p>all modules are allowed</p></td><td width==== Device access management ===="32%"></td></tr></table>
<p style="margin-left:11%;"><b>--devnodesiptables</b><i>devicename</i>:[<b>r,</b>...][<b>w</b>][<b>q</b>]|<b>none</b></p>
<p style="margin-left:22%;">Give the container an access(<b>rNote</b> - read, <b>w</b> - writethis option isobsoleted, <b>q</b> - disk quotamanagement, <b>none</b> - no access) to a device designatedby the special file /dev/<i>device</i>. Device file iscreated in a container by <b>vzctlnetfilter</b>should be used instead. Example:</p>
<pre p style="margin-left:22%;margin-top: 1em"> vzctl set 777 Allow to usethe functionality of <i>name</i> iptables module inside thecontainer. Multiple comma--devnodes sdb:rwqseparated <i>name</i>s can bespecified.</prep>
<p style="margin-left:1122%;margin-top: 1em"><b>--devicesThe defaultlist of enabled iptables modules is defined by theb</b>|<b>cIPTABLES</b>:<i>major<variable in [[Man/i>:<i>minor</i>vz.conf.5|<b>all</b>:[<b>rvz.conf</b>(5)][<b>w</b>][<b>q</b>]|<b>none</b>.</p>
<p style="margin-left:22%;margin-top: 1em">Give You can use the container an access toa following 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>,<b>ipt_state</b>, <b>ipt_helper</b>lock or , <b>ciptable_nat</b>haracter device designated by its,<ib>ip_nat_ftp</b>, <b>majorip_nat_irc</ib> and , <ib>minoript_REDIRECT</ib> numbers. Device file have to,be created manually<b>xt_mac</b>, <b>ipt_recent</b>, <b>ipt_owner</b>.</p>
==== PCI device management Network devices control parameters ====
<p style="margin-left:11%;"><b>--pci_addnetdev_add</b>[<i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>funcname</i></p>
<p style="margin-left:22%;">Give move network device from the container an access host system toa specified PCI device. All numbers are hexadecimal (asprinted by <b>lspci</b>(8) in the first column).container</p>
<p style="margin-left:11%;"><b>--pci_delnetdev_del</b>[<i>domainname</i>:]<i/p>bus </i>p style="margin-left:<i>slot</i>.<i>func</i22%;">delete network device from aspecified container</p>
<p style="margin-left:22%;">Delete a PCI device from thecontainer.</p>=== Disk quota parameters ====
<p style="margin-left:2211%; margin-top: 1em">Note that<b>vps-pci</b> configuration script is executed by<b>vzctl-diskquota yes</b> then configuring PCI devices. The script is|usually located at <b>/usr/lib[64]/vzctl/scripts/no</b>.</p>
<p style==== Features management ===="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"><b>--features</b>Note that this<i>name</i>:<b>on</b>|parameter is ignored for <b>offploop</b>layout.</p>
<p style="margin-left:2211%;">Enable or disable a specificcontainer feature. Known features are: <b>sysfs--diskspace</b>,<bi>nfsnum</bi>, <b>sit</b>, [:<bi>ipipnum</b>, <b>ppp</b>,<b>ipgre</b>, <b>bridge</b>, <b>nfsd</bi>.]</p>
<p style==== Apply config ===="margin-left:22%;">For <b>simfs</b> layout, setssoft and hard disk quota limits. First parameter is softlimit, second is hard limit.</p>
<p style="margin-left:1122%;margin-top: 1em">For<b>--applyconfigploop</b>layout, initiates the procedure of resizing theploop image file to the new size. Since there is nosoft/hard limit concept in ploop, second <i>namenum</i>, ifspecified, is ignored.</p>
<p style="margin-left:22%;margin-top: 1em">Read container parameters fromBy default,the container sample configuration fileploop resize is done online, i.e. on a mounted ploop. This<tt>/etc/vz/conf/ve-</tt><i>name</i><tt>is a preferred way of doing resize.conf-sample</tt>Although,in a rare casea container was using lots of disk space and apply themshould now beresized to a much smaller size, if <b>--save</b> option specified save toan offline resize might bemore appropriate. In this case, make sure the container config file. The following parameters are notischanged: <b>HOSTNAME</b>, <b>IP_ADDRESS</b>,<b>OSTEMPLATE</b>, <b>VE_ROOT</b>, stopped and unmounted anduse additional<b>VE_PRIVATE--offline-resize</b>.option</p>
<p style="margin-left:1122%;margin-top: 1em">Note that ploopresize is NOT performed on container start, so forconsistency <b>--applyconfig_mapdiskspace</b>must be used together with<ib>group--save</ib>flag.</p>
<p style="margin-left:22%;margin-top: 1em">Apply container configSuffixesparameters selected by <ib>groupG</ib>. Now the only possiblevalue for , <ib>groupM</ib> is , <b>nameK</b>: to restore containercan also be specified (seename based on <b>NAMEResource limits</b> variable section for more info on suffixes).If suffix is not specified, value is in containerconfiguration filekilobytes.</p>
<p style==== I"margin-left:11%;"><b>--diskinodes</b><i>num</i>[:<i>num</i>]</O priority management ====p>
<p style="margin-left:1122%;"><b>sets soft and hard disk quotalimits, in i--ioprio</b>nodes. First parameter is soft limit, second is<i>priority</i>hard limit.</p>
<p style="margin-left:22%;margin-top: 1em">Assigns I/O priority tocontainer. <i>Priority</i> range is <b>0-7</b>. The greaterNote that this<i>priority</i> parameter is, the more time ignored for I/O activity containerhas. By default each container has <i>priority</i> of<b>4ploop</b>layout.</p>
<p style=== Checkpointing and restore ==="margin-left:11%;"><b>--quotatime</b><i>seconds</i></p>
<p style="margin-topleft: 1em22%;">Checkpointing sets quota grace period.Container is a feature ofOpenVZ kernel which allows permitted to save a complete state of aexceed its soft limits for therunning containergrace period, and to restore but once it laterhas expired, the soft limit isenforced as a hard 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>--dumpfilequotaugidlimit</b> is not set,default dump file name <b>/vz/dump/Dump.</b><i>CTIDnum</i> isused.</p>
<p style="margin-left:1122%;"><b>restore</b> <i>CTID</i>Enables or disables[<b>in-container per-user and per-dumpfilegroup disk quotas. If thevalue is set to </b> <i>name0</ib>]or not set, disk quotas inside thecontainer is disabled and not accounted.</p>
<p style="margin-left:1722%;margin-top: 1em">This command restores aForcontainer from the dump file created by the <b>chkpntsimfs</b>layout containers, non-zero value sets maximumcommandnumber of user/group IDs for which disk quota isaccounted.</p>
<p style=== Performing "margin-left:22%; margin-top: 1em">For<b>ploop</b> layout containers, any non-zero value enablesdisk quota inside the container actions ===; the number of user/groupIDs used by disk quota is not limited by OpenVZ.</p>
<p style="margin-left:1122%;margin-top: 1em"><b>create</b> <i>CTID</i>Note that[<b>--ostemplate</b> <i>name</i>] [<b>--config</b><i>name</i>] [<b>-enabling or disabling in-private</b> <i>path</i>] <br>container disk quotas requires[container restart, so consider using <b>--rootsetmode</b> <i>path</i>] [<b>--ipadd</b> <i>addr</i>][<b>--hostname</b> <i>name</i>]option.</p>
<p style="margin-left:17%;">Creates a new container area.This operation should be done once, before the first startof the container.</p>=== Capability option ====
<p style="margin-left:1711%; margin-top: 1em">If the<b>--configcapability</b> option is specified, values from exampleconfiguration file<i>capname</i>:<b>/etc/vz/conf/ve-on</b>|<ib>nameoff</ib>[<b>.conf-sample,</b> areput into the container configuration file. If this containerconfiguration file already exists, it will be removed..]</p>
<p style="margin-left:1722%; margin-top: 1em">You can use<b>--root</b> <i>path</i> option to sets the path to theSets a capability for amount point for the container root directory (default is<b>VE_ROOT</b> specified in [[Man/vz.conf.5|<b>vz.conf</b>(5)]] file).Argument Multiple comma-separated capabilities can contain literal string <b>$VEID</b>, which willbebe substituted with the numeric CT IDspecified.</p>
<p style="margin-left:1722%; margin-top: 1em">You can useNote that<b>--private</b> <i>path</i> option to set setting a capability when the path tocontainer is running does notdirectory take immediate effect; restart the container in which all order forthe files and directories specific changes tothis very container are stored take effect (default is consider using <b>VE_PRIVATE--setmode</b>specified in [[Man/vz.conf.5|<b>vz.conf</b>(5option)]] file). Argument can containliteral string <b>$VEID</b>, which will be substituted withthe numeric CT ID.</p>
<p style="margin-left:1722%; margin-top: 1em">You can useA container has<b>--ipadd</b> <i>addr</i> option to assign an IP address tothe default set of capabilities, thus any operation ona container. Note that this option can be used multiplecapabilities is &quot;logical AND&quot; with the defaulttimescapability mask.</p>
<p style="margin-left:1722%; margin-top: 1em">You can usethefollowing values for <i>capname</i>: <b>chown</b>,<b>dac_override</b>, <b>dac_read_search</b>, <b>fowner</b>,<b>fsetid</b>, <b>kill</b>, <b>setgid</b>, <b>setuid</b>,<b>setpcap</b>, <b>linux_immutable</b>,<b>net_bind_service</b>, <b>net_broadcast</b>,<b>net_admin</b>, <b>net_raw</b>, <b>ipc_lock</b>,<b>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>--hostnamesys_tty_config</b>,<b>mknod</b>, <b>lease</b>, <b>setveid</b> , <ib>nameve_admin</ib> option to set a host name for.a containerFor detailed description, see <b>capabilities</b>(7).</p>
<p style="margin-left:1122%;margin-top: 1em"><b>destroyWARNING</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>deletesetpcap:on</b>fora container will most probably lead to inability to startit.</p>
<p style="margin-left:17%;">Removes a container privatearea by deleting all files, directories and theconfiguration file of this container.</p>=== Device access management ====
<p style="margin-left:11%;"><b>start--devnodes</b> <i>device</i>:[<b>--waitr</b>][<b>w</b>][<b>--forceq</b>]|<b>none</b></p>
<p style="margin-left:1722%;">Mounts Give the container an access(if necessary) andstarts a container. Unless <b>r</b>-read, <b>w</b> -waitwrite, <b>q</b> option is- disk quotaspecifiedmanagement, <b>vzctlnone</b> will return immediately; otherwise- no access) to a device designatedan attempt to wait till by the default runlevel special file /dev/<i>device</i>. Device file is reached willbe made created in a container by <b>vzctl</b>.Example:</p>
<p pre style="margin-left:1722%; margin-top: 1em">Specify<b> vzctl set 777 --force</b> if you want to start a container which isdisabled (see <b>--disabled</b>).devnodes sdb:rwq</ppre>
<p style="margin-left:1711%; margin"><b>-top-devicesb</b>|<b>c</b>: 1em"<i>major</i>:<i>minor</i>|<b>all</b>Note that thiscommand can lead to execution of :[<b>premountr</b>,][<b>mountw</b> and ][<b>startq</b> action scripts (see ]|<b>ACTIONSCRIPTSnone</b> below).</p>
<p style="margin-left:1122%;">Give the container an access toa <b>stopb</b> [lock or <b>--fastc</b>]haracter device designated by its<i>major</i> and <i>minor</i> numbers. Device file have tobe created manually.</p>
<p style="margin-left:17%;">Stops and unmounts a container.Normally, <b>halt</b>(8) is executed inside a container;option <b>--fast</b> makes <b>vzctl</b> use <b>reboot</b>(2)syscall instead which is faster but can lead to uncleancontainer shutdown.</p>=== PCI device management ====
<p style="margin-left:1711%; margin-top: 1em">Note that thiscommand can lead to execution of <b>stop--pci_add</b>, [<bi>umountdomain</bi>and :]<bi>postumountbus</bi> action scripts (see :<bi>ACTIONSCRIPTSslot</bi> below).<i>func</i></p>
<p style="margin-left:1122%;"><b>restart</b> [<b>--wait</b>]Give the container an access toa specified PCI device. All numbers are hexadecimal (as[<b>--force</b>] [printed by <b>--fastlspci</b>](8) in the first column).</p>
<p style="margin-left:1711%;">Restarts a container, i.e.stops it if it is running, and starts again. Accepts all the<b>start--pci_del</b> and [<i>domain</i>:]<i>bus</i>:<bi>stopslot</bi> options.<i>func</i></p>
<p style="margin-left:1722%; margin-top: 1em">Note that thisDelete a PCI device from thecommand can lead to execution of some action scripts (see<b>ACTION SCRIPTS</b> below)container.</p>
<p style="margin-left:1122%;margin-top: 1em">Note that<b>statusvps-pci</b>configuration script is executed by<b>vzctl</b> then configuring PCI devices. The script isusually located at <b>/usr/libexec/vzctl/scripts/</b>.</p>
<p style="margin-left:17%;">Shows a container status. Thisis a line with five or six words, separated by spaces.</p>=== Features management ====
<p style="margin-left:1711%; margin"><b>-top-features</b><i>name</i>: 1em"<b>on</b>|<b>off</b>First word isliterally [<b>CTID,</b>...]</p>
<p style="margin-left:1722%; margin-top">Enable or disable a specificcontainer feature. Known features are: 1em"<b>sysfs</b>,<b>nfs</b>, <b>sit</b>, <b>ipip</b>, <b>ppp</b>Second word is,the numeric <ib>CT IDipgre</ib>, <b>bridge</b>, <b>nfsd</b>. A few features canbe specified at once, comma-separated.</p>
<p style="margin-left:17%; margin-top: 1em">Third word isshowing whether this container exists or not, it can beeither <b>exist</b> or <b>deleted</b>.</p>=== Apply config ====
<p style="margin-left:1711%; margin-top: 1em">Fourth word isshowing the status of the container filesystem, it can beeither <b>mounted--applyconfig</b> or <bi>unmountedname</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>Fifth word,shows and apply them, if <b>--save</b> option specified save tothe container is runningconfig file. The following parameters are notchanged: <b>HOSTNAME</b>, <b>IP_ADDRESS</b>, it can be either<b>runningOSTEMPLATE</b>, <b>VE_ROOT</b> or , and<b>downVE_PRIVATE</b>.</p>
<p style="margin-left:1711%; margin-top: 1em">Sixth word, ifexists, is <b>suspended--applyconfig_map</b>. It appears if both a containerand its dump file exist (see <bi>chkpntgroup</bi>).</p>
<p style="margin-left:1722%; margin-top">Apply container configparameters selected by <i>group</i>. Now the only possiblevalue for <i>group</i> is <b>name</b>: 1em"to restore containername based on <b>NAME</b>This commandvariable in containercan also be usable from scriptsconfiguration file.</p>
<p style="margin-left:11%;"><b>mount<=== I/b></p>O scheduling ====
<p style="margin-left:1711%;">Mounts container private area.Note that this command can lead to execution of<b>premount--ioprio</b> and <b>mount</b> action scripts (see<bi>ACTION SCRIPTSpriority</bi> below).</p>
<p style="margin-left:22%;">Assigns disk I/O priority tocontainer. <i>Priority</i> range is <b>0-7</b>. The greater<i>priority</i> is, the more time for I/O activity containerhas. By default each container has <i>priority</i> of<b>4</b>.</p> <p style="margin-left:11%;"><b>umount--iolimit</b><i>limit</i>[<b>B</b>|<b>K</b>|<b>M</b>|<b>G</b>]</p>
<p style="margin-left:1722%;">Unmounts Assigns disk I/O bandwidthlimit for a container privatearea. Note that this command can lead to execution ofValue is either a number with anoptional suffix, or a literal string <b>umountunlimited</b> and . Valueof <b>postumount0</b> action scripts (seemeans &quot;unlimited&quot;. By default a<b>ACTION SCRIPTS<container has no I/b> below)O limit. Maximum allowed limit is 2gigabytes per second; values exceeding the limit aretruncated.</p>
<p style="margin-left:1722%; margin-top: 1em">Note thatIf no suffix isprovided, the <i>limit</i> is assumed to be in megabytes persecond. Available suffixes are: <br>&bull; <b>stopb</b> does , <b>umountB</b> automatically.-- bytes per second; <br>&bull; <b>k</b>, <b>K</b> -- kilobytes per second; <br>&bull; <b>m</b>, <b>M</b> -- megabytes per second (default);<br>&bull; <b>g</b>, <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 container (givinga container&rsquo;s root shell). This option is a back-doorfor host root only. The proper way to have CT root shell isUnlessto use <b>ssh--skip-config</b>(1)option is given, containerconfiguration file is saved to the snapshot.</p>
<p style="margin-left:17%; margin-top: 1em">OptionIf <bi>--execuuid</bi> is not specified, it is used to run auto-generated. Options<ib>command--name</ib> with argumentsafter entering into container. This is useful if command tobe run requires a terminal (so and <b>vzctl exec--description</b> can not beused toused) specify the snapshot name and for some reason you can not use description, respectively.Name is displayed by <b>sshsnapshot-list</b>(1).</p>
<p style="margin-left:1711%; margin"><b>snapshot-top: 1em"switch</b>You need to logout manually from the shell to finish session (even if you<i>CTID</i> [<b>--skip-resume</b> | <b>--must-resume</b>]specified [<b>--skip-config</b>] <b><br>--execid</b>).<i>uuid</i></p>
<p style=== Other options ==="margin-left:17%;">Switches the container to asnapshot identified by <i>uuid</i>, restoring its filesystem state, configuration (if available) and its runningstate (if available).</p>
<p style="margin-left:1117%;margin-top: 1em"><b>--helpNote 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">Prints help message with Option<b>--skip-resume</b> is used to ignore a CT memory dump filein a snapshot, as a result the container will end up beingin a stopped state (same as if asnapshot has been takenbrief list of possible optionswith <b>--skip-suspend</b>).</p>
<p style="margin-left:1117%;margin-top: 1em">If option<b>--versionmust-resume</b>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">Prints Option option<b>vzctl--skip-config</b>is used to ignore the CT configurationfile in a snapshot, i.e. the current configuration file willversionbe left as is.</p>
<p style== ACTION SCRIPTS =="margin-left:11%;"><b>snapshot-delete</b><i>CTID</i> <b>--id</b> <i>uuid</i></p>
<p style="margin-left:1117%; margin-top: 1em"><b>vzctl</b>has an ability to execute user-defined scripts when Removes aspecifiedspecific <b>vzctl</b> command is run for a container. Thefollowing <b>vzctl</b> commands can trigger execution ofaction scripts: <b>start</b>, <b>stop</b>, <b>restart</b>,<b>mount</b> and <b>umount</b>snapshot.</p>
<p style="margin-left:11%; margin-top: 1em">Action scriptsare located in the <b>snapshot-mount</etcb><i>CTID</vz/confi> <b>--id</b> <i>uuid</bi> directory. There areglobal and per-CT scripts. Global scripts have a literalprefix of <b>vps.--target</b> and are executed for all containers.Per-CT scripts have a <i>CTIDdirectory</i> numeric prefix and areexecuted for the given container only.</p>
<p style="margin-left:1117%; margin-top: 1em">Please notescripts are executed in Mounts a host system (CT0) context, withsnapshot specified bythe exception of <bi>.startuuid</bi> and to a <bi>.stopdirectory</bi> scripts,. Note this mount iswhich are executed in a container contextread-only.</p>
<p style="margin-left:11%; margin-top: 1em">The followingaction scripts are currently defined: <b><br>vps.premountsnapshot-umount</b>, <i>CTID</i><b>.premount--id</b> <i>uuid</i></p>
<p style="margin-left:2217%;">Global and per-CT mount scriptswhich are executed for a container before it is mounted.Scripts are executed in the host system context, while Unmounts a CTis not yet mounted or running. Global script, if exists, isspecifiedexecuted firstsnapshot.</p>
<p style="margin-left:11%;"><b>vps.mountsnapshot-list</b>,<i>CTID</i>[<b>-H</b>] [<b>-o</b><i>field</i>[,<i>field</i>...mount] [<b>--id</b><i>uuid</i>]</p>
<p style="margin-left:2217%;">Global and per-CT mount scriptswhich are executed for a List container right after it ismounted. Otherwise they are the same as <b>.premount</b>&rsquo;sscriptssnapshots.</p>
<p style="margin-left:1117%;margin-top: 1em">You cansuppress displaying header using <ib>CTID-H</i><b>option.start</b></p>
<p style="margin-left:2217%;margin-top: 1em">Right after You can use the<b>vzctl-o</b> hasoption to display only the specifiedstarted a container, it executes this script in a container<i>field</i>(s). List of available fields can be obtainedcontextusing <b>-L</b> option.</p>
<p style="margin-left:11%;"><i>CTID</i><b>.stop</b></p>== Performing container actions ===
<p styletable width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="margin-left:22%;">Right before <btd width="11%">vzctl</btd> hasstopped a container, it executes this script in a containercontext.</ptd width="9%">
<p style="margin-lefttop:11%;1em"><b>vps.umountcreate</b>,<i/p>CTID</itd><btd width="2%">.umount</btd></ptd width="78%">
<p style="margin-top: 1em"><i>CTID</i>[<b>--ostemplate&nbsp;</b><i>name</i>][<b>--config&nbsp;</b><i>name</i>][<b>--layout&nbsp;simfs</b>|<b>ploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b>|<b>raw</b>}]][<b>--diskspace&nbsp;</b><i>kbytes</i>][<b>--diskinodes&nbsp;</b><i>num</i>][<b>--private&nbsp;</b><i>path</i>][<b>--root&nbsp;</b><i>path</i>][<b>--ipadd&nbsp;</b><i>addr</i>][<b>--hostname&nbsp;</b><i>name</i>][<b>--name&nbsp;</b><i>name</i>][<b>--local_uid&nbsp;</b><i>uid</i>][<b>--local_gid&nbsp;</b><i>gid</i>]</p> </td></tr></table> <p style="margin-left:2217%;margin-top: 1em">Global and perCreates a newcontainer area. This operation should be done once, beforethe first start of the container.</p> <p style="margin-left:17%; margin-CT umounttop: 1em">By default, anOS template denoted by <b>DEF_OSTEMPLATE</b> parameter ofscripts which are executed for [[Man/vz.conf.5|<b>vz.conf</b>(5)]] is used to create a container before it is. This can beunmountedoverwritten by <b>--ostemplate</b> option. Scripts are executed in the host system context</p> <p style="margin-left:17%; margin-top: 1em">By default,awhile new container configuration file is created from a CT is mountedsampleconfiguration denoted by value of <b>CONFIGFILE</b>parameter of [[Man/vz.conf.5|<b>vz.conf</b>(5)]]. Global script, if If the containerconfiguration file already exists, is executedit will not befirstmodified.</p>
<p style="margin-left:1117%;margin-top: 1em">The value of<b>vps.postumountCONFIGFILE</b>,can be overwritten by using the<ib>CTID--config</ib><bi>.postumountname</bi>option. This option can not beused if the container configuration file already exists.</p>
<p style="margin-left:2217%;margin-top: 1em">Global A new containercan either be created using <b>simfs</b> filesystem or on a<b>ploop</b> device. The default is set by value of<b>VE_LAYOUT</b> parameter of [[Man/vz.conf.5|<b>vz.conf</b>(5)]] and percan beoverwritten by <b>--CT umountlayout</b> option. In case <b>ploop</b>scripts which are executed for a container right after it isused, one can additionally specify ploop disk imageunmountedformat after a colon. Otherwise they Possible ploop formats are the same as <b>expanded</b>, <b>plain</b> and <b>raw</b>. Default is<b>expanded</b>.umountUsing value other than <b>expanded</b>isscriptsnot recommended and is currently not supported.</p>
<p style="margin-left:1117%; margin-top: 1em">The environmentYou can usepassed to all the <b>*mount</b> scripts is the standardenvironment of the parent (i.e. <b>vzctl</b>) with twoadditional variables: <b>$VEID--diskspace</b> and <b>$VE_CONFFILE--diskinodes</b>.The first one holds the ID of the container, and the secondoptions toone holds the full path to the specify container configuration filesystem size.Note that forIf the script needs to get other CT configurationparameters, such as <b>$VE_ROOTploop</b>layout, it needs you will not be able to get thosechange inodesfrom global and per-CT configuration filesvalue later.</p>
<p style="margin-left:1117%; margin-top: 1em">Here is anexample of a mount script, which makes host system&rsquo;sIf/mnt/disk available to container(s). Script name can eitherbe <b>/etc/vz/conf/vps.mountDISKSPACE</b> is not specified either in the sampleconfiguration file used for creation orin globalconfiguration file [[Man/vz.conf.5|<b>/etc/vz/.conf/</b>(5)]], <ib>CTID--diskspace</ib>parameter is required for <b>.mountploop</b>layout.</p>
<pre p style="margin-left:1117%; margin-top: 1em"> # If one of these files does not exist then somethingSuffixes # is really broken [ -f <b>G</etcb>, <b>M</sysconfigb>, <b>K</vz ] || exit 1b> can also be specified (see [ -f $VE_CONFFILE ] || exit 1 # Source both files. Note the order is important. . <b>Resource limits</etc/vz/vz.confb> section for more info on suffixes). $VE_CONFFILE SRC=/mnt/disk DST=/mnt/disk mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC</prep>
<p style== EXIT STATUS =="margin-left:17%; margin-top: 1em">You can use<b>--root</b> <i>path</i> option to sets the path to themount point for the container root directory (default is<b>VE_ROOT</b> specified in [[Man/vz.conf.5|<b>vz.conf</b>(5)]] file).Argument can contain literal string <b>$VEID</b>, which willbe substituted with the numeric CT ID.</p>
<p style="margin-left:1117%; margin-top: 1em">Returns 0 uponYou can usesuccess<b>--private</b> <i>path</i> option to set the path todirectory in which all the files and directories specific tothis very container are stored (default is <b>VE_PRIVATE</b>specified in [[Man/vz.conf.5|<b>vz.conf</b>(5)]] file). Argument can containliteral string <b>$VEID</b>, or an appropriate error code in case of anwhich will be substituted witherror:the numeric CT ID.</p>
<table widthp style="100margin-left:17%; margin-top: 1em" border="0" rules="none" frame="void">You can use cellspacing="0" cellpadding="0"<b>--ipadd<tr valign="top" align="left"/b><td width="11%"i>addr</tdi>option to assign an IP address toa container. Note that this option can be used multipletimes.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">1You can use</pb>--hostname</tdb><td width="7%"i>name</tdi>option to set a host name fora container.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">When runningwith an upstream Linux Kernel that supports user namespaces(&gt;= 3.8), the parameters <b>Failed --local_uid</b> and<b>--local_gid</b> can be used to set a UBC parameterselect which <i>uid</pi>and <i>gid</tdi>respectively will be used as a base user inthe host system. Note that user namespaces provide a 1:1mapping between container users and host users. If theseoptions are not specified, the values <b>LOCAL_UID</trb>and<tr valign="top" align="left"b>LOCAL_GID</b>from global configuration file[[Man/vz.conf.5|<b>vz.conf</b>(5)]] are used. An explicit <td width="11%"b>--local_uid</tdb>value of 0 will disable user namespace support, and run thecontainer as a privileged user. In this case,<b>--local_gid<td width="4%"/b> is ignored.</p>
<pstyle="margin-left:17%; margin-top: 1em"><b>2Warning:</pb>use <b>--local_uid</tdb>and <td width="7%"b>--local_gid</tdb>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.<td width="78%"/p>
<pstyle="margin-left:11%;">Failed to set a fair scheduler parameter</pb>destroy</tdb>| </trb>delete<tr valign="top" align="left"/b><td width="11%"i>CTID</tdi><td width="4%"/p>
<p>3</p></td><td widthstyle="7margin-left:17%;">Removes a container privatearea by deleting all files, directories and theconfiguration file of this container.</td><td width="78%"p>
<pstyle="margin-left:11%;">Generic system error<b>start</pb> <i>CTID</i>[<b>--wait</tdb>] [<b>--force</trb>] [<b>--skip-fsck<tr valign="top" align="left"/b>][<td width="11%"b>--skip-remount</tdb>]<td width="4%"/p>
<pstyle="margin-left:17%;">Mounts (if necessary) andstarts a container. Unless <b>--wait</b> option isspecified, <b>vzctl</b> will return immediately; otherwisean attempt to wait till the default runlevel is reached willbe made by <b>5vzctl</pb>.</tdp> <td widthp style="7margin-left:17%; margin-top: 1em">Specify<b>--force</tdb>if you want to start a container which isdisabled (see <td width="78%"b>--disabled</b>).</p>
<p>The running kernel is not an OpenVZ kernel (or someOpenVZ modules are not loaded)</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">Specify<td width="11%"b>--skip-fsck</tdb>to skip fsck for ploop-based containerfilesystem (this option is used by vz initscript).<td width="4%"/p>
<p>6</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">By default, ifa container to be started happens to be already mounted, itis unmounted and mounted again. This behavior can be turnedoff by using <b>--skip-remount</tdb>flag.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Not enough system resourcesNote that thiscommand can lead to execution of <b>premount</pb>,<b>mount</tdb>and <b>start</trb>action scripts (see <tr valign="top" align="left"b>ACTIONSCRIPTS<td width="11%"/b>below).</td><td width="4%"p>
<pstyle="margin-left:11%;">7<b>stop</pb> <i>CTID</tdi>[<b>--fast<td width="7%"/b>] [<b>--skip-umount</tdb>]<td width="78%"/p>
<pstyle="margin-left:17%;">Stops a container and unmountsit (unless <b>ENV_CREATE--skip-umount</b> ioctl failedis given). Normally,<b>halt</pb>(8) is executed inside a container; option<b>--fast</tdb>makes </trb>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>8vzctl stop</pb> is not asyncronous, in other words vzctlwaits for container&rsquo;s init to exit (unless<b>--fast</b> is given), which can take up to a few minutes.Default wait timeout is 120 seconds; it can be changedglobally, by setting <b>STOP_TIMEOUT</tdb>in[[Man/vz.conf.5|<b>vz.conf</b>(5)]], or per container (<td width="7%"b>STOP_TIMEOUT</tdb>in[[Man/ctid.conf.5|<b>ctid.conf<td width="78%"/b>(5)]], see <b>--stop-timeout</b>).</p>
<pstyle="margin-left:17%; margin-top: 1em">Command executed by Note that thiscommand can lead to execution of <b>vzctl execstop</b> returned non-zeroexit code, <b>umount</pb>and </tdb>postumount</trb>action scripts (see <tr valign="top" align="left"b>ACTIONSCRIPTS<td width="11%"/b>below).</td><td width="4%"p>
<pstyle="margin-left:11%;">9<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%;">Container Restarts a container, i.e.stops it if it is locked by another running, and starts again. Accepts all the<b>vzctlstart</b>invocationand </pb> stop</tdb>options.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<p>10</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">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%;">Global OpenVZ configuration file [[Man/vz.conf.5|<b>vz.confstatus</b>(5)]] notfound</pi> CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<p>11</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>A vzctl helper script file not found</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>12</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">Permission deniedThird word isshowing whether this container exists or not, it can beeither </pb>exist</tdb>or </trb>deleted<tr valign="top" align="left"><td width="11%"/b>.</td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">13Fourth 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">Capability setting failedFifth wordshows if the container is running, it can be either</pb>running</tdb>or </trb>down<tr valign="top" align="left"><td width="11%"/b>.</td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">14Sixth word, ifexists, is </pb>suspended</tdb>. It appears if a dump fileexists for a stopped container (see <td width="7%"b>suspend</tdb>).<td width="78%"/p>
<p>Container configuration file [[Man/ctid.conf.5|<b>ctid.conf</b>(5)]] notfound</p> </td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">This command<td width="11%">can also be usable from scripts.</td><td width="4%"p>
<pstyle="margin-left:11%;">15</pb>mount</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Timeout on Mounts container private area.Note that this command can lead to execution of<b>vzctl execpremount</b>and </pb>mount</td></trb>action scripts (see<tr valign="top" align="left"b>ACTION SCRIPTS<td width="11%"/b>below).</td><td width="4%"p>
<pstyle="margin-left:11%;">16</pb>umount</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Error during Unmounts container privatearea. Note that this command can lead to execution of<b>vzctl chkpntumount</b>and </pb>postumount</td></trb>action scripts (see<tr valign="top" align="left"b>ACTION SCRIPTS<td width="11%"/b>below).</td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">17Note that</pb>stop</tdb>does <td width="7%"b>umount</tdb>automatically.<td width="78%"/p>
<pstyle="margin-left:11%;">Error during <b>vzctl restoreconvert</b><i>CTID</pi>[<b>--layoutploop</b>[<b>:</tdb>{<b>expanded</trb>|<b>plain<tr valign="top" align="left"/b>|<td width="11%"b>raw</tdb>}]]<td width="4%"/p>
<p>18</p></td><td widthstyle="7margin-left:17%;">Convert CT private area toreside on a ploop device (available in kernel version042stab052.8 and greater). Conversion should be performedwhen a container is stopped, plus disk space quota should beset.</td><td width="78%"p>
<pstyle="margin-left:11%;">Error from <b>setluid()compact</b> syscall</pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<p>20</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%;">Invalid command line parameter</pb>quotaon</tdb></tri>CTID<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">21Turn 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%;">Invalid value for command line parameter</pb>quotaoff</tdb></tri>CTID<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">22Turn 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%;">Container root directory (<b>VE_ROOTquotainit</b>) not set</pi>CTID</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">23Initialize 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%;">Container private directory (<b>VE_PRIVATEexec</b>) notset</pi> CTIDcommand</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">Executes <i>24command</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%;">Container template directory (<b>TEMPLATEexec2</b>) notset</pi> CTIDcommand</tdi></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%;">28The same as </pb>exec</tdb>, butreturn code is that of <td width="7%"i>command</tdi>.<td width="78%"/p>
<pstyle="margin-left:11%;">Not all required UBC parameters are set, unable to startcontainer</pb> runscript</tdb></tri>CTIDscript<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<pstyle="margin-left:17%;">29Run 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%;">OS template is not specified, unable to createcontainer<b>enter</pb> <i> CTID</tdi>[<b>--exec</trb> <i>command<tr valign="top" align="left"/i>[<td width="11%"i>arg</tdi>...]]<td width="4%"/p>
<p>31</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 not runningOption<b>--exec</pb>is used to run </tdi>command</tri>with argumentsafter entering into container. This is useful if command tobe run requires a terminal (so <tr valign="top" align="left"b>vzctl exec</b>can not beused) and for some reason you can not use <td width="11%"b>ssh</tdb>(1).<td width="4%"/p>
<p>32</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 already running</pb>console</tdb></tri>CTID<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>33tty4</pb>), default is <b>1</tdb>which is usedfor container&rsquo;s <td width="7%"b>/dev/console</tdb>.<td width="78%"/p>
<p>Unable to stop container</p></td></tr><tr valignstyle="margin-left:17%; margin-top: 1em" align="left">Note theconsoles are persistent, meaning that: <br>&bull; it can be attached to even if the container is notrunning; <td width="11%"br>&bull; there is no automatic detachment upon the containerstop; </tdbr>&bull; detaching from the console leaves anything running inthis console as is.<td width="4%"/p>
<p>34</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">Unable to add IP address to container&bull;<b>Esc</pb> then <b>.</tdb>to detach from the console.</trp> <tr valignp style="margin-left:17%; margin-top" align="left: 1em">&bull;<td width="11%"b>Esc</b> then <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="4%"/p>
<p>40</p></td><td width="7%"></td><td width="78%">= Other options ===
<p>Container not mounted</p></td></tr><tr valign="top" alignstyle="margin-left:11%;"><td width="11%"b>--help</tdb><td width="4%"/p>
<p>41</p></td><td widthstyle="7margin-left:17%;">Prints help message with abrief list of possible options.</td><td width="78%"p>
<p>Container already mounted</p></td></tr><tr valign="top" alignstyle="margin-left:11%;"><td width="11%"b>--version</tdb><td width="4%"/p>
<p>43</p></td><td widthstyle="7margin-left:17%;">Prints <b>vzctl</tdb>version.<td width="78%"/p>
<p>Container private area not found</p></td></tr><tr valign="top" align="left"><td widthACTION SCRIPTS ="11%"></td><td width="4%">
<pstyle="margin-left:11%; margin-top: 1em"><b>vzctl</b>has an ability to execute user-defined scripts when aspecific <b>44vzctl</pb> command is run for a container. Thefollowing <b>vzctl</tdb>commands can trigger execution ofaction scripts: <b>start</b>, <td width="7%"b>stop</b>, <b>restart</tdb>,<td width="78%"b>mount</b> and <b>umount</b>.</p>
<pstyle="margin-left:11%; margin-top: 1em">Container private area already existsAction scriptsare located in the <b>/petc/vz/conf/</b>directory. There areglobal and per-CT scripts. Global scripts have a literalprefix of </tdb>vps.</trb>and are executed for all containers.Per-CT scripts have a <tr valign="top" align="left"i>CTID</i><td width="11%"b>.</tdb>numeric prefix andare executed for the given container only.<td width="4%"/p>
<pstyle="margin-left:11%; margin-top: 1em">46Please notescripts are executed in a host system (CT0) context, withthe exception of </pb>.start</tdb>and <td width="7%"b>.stop</tdb>scripts,which are executed in a container context.<td width="78%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Not enough disk spaceThe followingaction scripts are currently defined: </pb><br>vps.premount</tdb>, </tri>CTID<tr valign="top" align="left"/i><td width="11%"b>.premount</tdb><td width="4%"/p>
<p>47</p></td><td widthstyle="7margin-left:22%;">Global and per-CT mount scriptswhich are executed for a container before it is mounted.Scripts are executed in the host system context, while a CTis not yet mounted or running. Global script, if exists, isexecuted first.</td><td width="78%"p>
<pstyle="margin-left:11%;">Bad/broken container (<b>/sbin/initvps.mount</b> or,<bi>/bin/shCTID</bi> not found)</pb>.mount</tdb></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<p>48</p></td><td widthstyle="7margin-left:22%;">Global and per-CT mount scriptswhich are executed for a container right after it ismounted. Otherwise they are the same as <b>.premount</tdb>scripts.<td width="78%"/p>
<pstyle="margin-left:11%;">Unable to create a new container private area</pi>CTID</tdi></trb>.start<tr valign="top" align="left"><td width="11%"/b></td><td width="4%"p>
<p>49</p></td><td widthstyle="7margin-left:22%;">Right after <b>vzctl</tdb>hasstarted a container, it executes this script in a containercontext.<td width="78%"/p>
<pstyle="margin-left:11%;">Unable to create a new container root area</pi>CTID</tdi></trb>.stop<tr valign="top" align="left"><td width="11%"/b></td><td width="4%"p>
<p>50</p></td><td widthstyle="7margin-left:22%;">Right before <b>vzctl</tdb>hasstopped a container, it executes this script in a containercontext.<td width="78%"/p>
<pstyle="margin-left:11%;">Unable to mount container</pb>vps.umount</tdb>,</tri>CTID<tr valign="top" align="left"/i><td width="11%"b>.umount</tdb><td width="4%"/p>
<p>51</p></td><td widthstyle="7margin-left:22%;">Global and per-CT umountscripts which are executed for a container before it isunmounted. Scripts are executed in the host system context,while a CT is mounted. Global script, if exists, is executedfirst.</td><td width="78%"p>
<pstyle="margin-left:11%;">Unable to unmount container</pb>vps.postumount</tdb>,</tri>CTID<tr valign="top" align="left"/i><td width="11%"b>.postumount</tdb><td width="4%"/p>
<p>52</p></td><td widthstyle="7margin-left:22%;">Global and per-CT umountscripts which are executed for a container right after it isunmounted. Otherwise they are the same as <b>.umount</tdb>scripts.<td width="78%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Unable The environmentpassed to delete a containerall the <b>*mount</pb> scripts is the standardenvironment of the parent (i.e. <b>vzctl</tdb>) with twoadditional variables: <b>$VEID</trb> and <b>$VE_CONFFILE<tr valign="top" align="left"/b>.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="11%"b>$VE_ROOT</tdb>, it needs to get thosefrom global and per-CT configuration files.<td width="4%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Here is anexample of a mount script, which makes host system&rsquo;s/mnt/disk available to container(s). Script name can eitherbe <b>/etc/vz/conf/vps.mount</b> or<b>/etc/vz/conf/</b><i>CTID</i><b>53.mount</pb>.</tdp> <td widthpre style="7margin-left:11%; margin-top: 1em"> # If one of these files does not exist then something # is really broken [ -f /etc/vz/vz.conf ] || exit 1 [ -f $VE_CONFFILE ] || exit 1 # Source both files. Note the order is important. . /etc/vz/vz.conf . $VE_CONFFILE SRC=/mnt/disk DST=/mnt/disk mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC</tdpre><td width== EXIT STATUS =="78%">
<pstyle="margin-left:11%; margin-top: 1em">Container private area not existReturns 0 uponsuccess, or an appropriate error code in case of anerror:</p> </td></trtable width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>601</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota on</b> failedFailed to set a UBC parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>612</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota init</b> failedFailed to set a fair scheduler parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>623</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota setlimit</b> failedGeneric system error</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>635</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter <b>DISKSPACE</b> The running kernel is not setan OpenVZ kernel (or someOpenVZ modules are not loaded)</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>646</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter <b>DISKINODES</b> not setNot enough system resources</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>667</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota offENV_CREATE</b> ioctl failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>678</p></td>
<td width="7%"></td>
<td width="78%">
<p>ugid quota not initializedCommand executed by <b>vzctl exec</b> returned non-zeroexit code</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>719</p></td>
<td width="7%"></td>
<td width="78%">
<p>Incorrect IP address formatContainer is locked by another <b>vzctl</b>invocation</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7410</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error changing passwordGlobal OpenVZ configuration file [[Man/vz.conf.5|<b>vz.conf</b>(5)]] notfound</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>11</p></td><td width="7%"></td><td width="78%"> <p>A vzctl helper script file not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>12</p></td>
<td width="7%"></td>
<td width="78%">
<p>IP address already in usePermission denied</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7913</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container action script returned an errorCapability setting failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8214</p></td>
<td width="7%"></td>
<td width="78%">
<p>Config Container configuration file copying error[[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>8615</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting devices (Timeout on <b>--devicesvzctl exec</b> or<b>--devnodes</b>)</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8916</p></td>
<td width="7%"></td>
<td width="78%">
<p>IP address not availableError during <b>vzctl suspend</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%"> <p>17</p></td><td width="7%"></td><td width="78%"> <p>Error during <b>vzctl resume</b></p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>18</p></td><td width="7%"></td><td width="78%"> <p>Error from <b>setluid()</b> syscall</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>20</p></td><td width="7%"></td><td width="78%"> <p>Invalid command line parameter</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>21</p></td><td width="7%"></td><td width="78%"> <p>Invalid value for command line parameter</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>22</p></td><td width="7%"></td><td width="78%"> <p>Container root directory (<b>VE_ROOT</b>) not set</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>23</p></td><td width="7%"></td><td width="78%"> <p>Container private directory (<b>VE_PRIVATE</b>) notset</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>24</p></td><td width="7%"></td><td width="78%"> <p>Container template directory (<b>TEMPLATE</b>) notset</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>28</p></td><td width="7%"></td><td width="78%"> <p>Not all required UBC parameters are set, unable to startcontainer</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>29</p></td><td width="7%"></td><td width="78%"> <p>OS template is not specified, unable to createcontainer</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>31</p></td><td width="7%"></td><td width="78%"> <p>Container not running</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>32</p></td><td width="7%"></td><td width="78%"> <p>Container already running</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>33</p></td><td width="7%"></td><td width="78%"> <p>Unable to stop container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>34</p></td><td width="7%"></td><td width="78%"> <p>Unable to add IP address to container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>40</p></td><td width="7%"></td><td width="78%"> <p>Container not mounted</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>41</p></td><td width="7%"></td><td width="78%"> <p>Container already mounted</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>43</p></td><td width="7%"></td><td width="78%"> <p>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>46</p></td><td width="7%"></td><td width="78%"> <p>Not enough disk space</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>47</p></td><td width="7%"></td><td width="78%"> <p>Bad/broken container (<b>/sbin/init</b> or<b>/bin/sh</b> not found)</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>48</p></td><td width="7%"></td><td width="78%"> <p>Unable to create a new container private area</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>49</p></td><td width="7%"></td><td width="78%"> <p>Unable to create a new container root area</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>50</p></td><td width="7%"></td><td width="78%"> <p>Unable to mount container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>51</p></td><td width="7%"></td><td width="78%"> <p>Unable to unmount container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>52</p></td><td width="7%"></td><td width="78%"> <p>Unable to delete a container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>53</p></td><td width="7%"></td><td width="78%"> <p>Container private area not exist</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>60</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota on</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>61</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota init</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>62</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota setlimit</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>63</p></td><td width="7%"></td><td width="78%"> <p>Parameter <b>DISKSPACE</b> not set</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>64</p></td><td width="7%"></td><td width="78%"> <p>Parameter <b>DISKINODES</b> not set</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>65</p></td><td width="7%"></td><td width="78%"> <p>Error setting in-container disk quotas</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>66</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota off</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>67</p></td><td width="7%"></td><td width="78%"> <p>ugid quota not initialized</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>71</p></td><td width="7%"></td><td width="78%"> <p>Incorrect IP address format</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>74</p></td><td width="7%"></td><td width="78%"> <p>Error changing password</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>78</p></td><td width="7%"></td><td width="78%"> <p>IP address already in use</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>79</p></td><td width="7%"></td><td width="78%"> <p>Container action script returned an error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>82</p></td><td width="7%"></td><td width="78%"> <p>Config file copying error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>86</p></td><td width="7%"></td><td width="78%"> <p>Error setting devices (<b>--devices</b> or<b>--devnodes</b>)</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>89</p></td><td width="7%"></td><td width="78%"> <p>IP address not available</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>91</p></td><td width="7%"></td><td width="78%"> <p>OS template not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>99</p></td><td width="7%"></td><td width="78%"> <p>Ploop is not supported by either the running kernel orvzctl.</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>100</p></td><td width="7%"></td><td width="78%"> <p>Unable to find container IP address</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>104</p></td><td width="7%"></td><td width="78%"> <p><b>VE_NETDEV</b> ioctl error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>105</p></td><td width="7%"></td><td width="78%"> <p>Container start disabled</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>106</p></td><td width="7%"></td><td width="78%"> <p>Unable to set iptables on a running container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>107</p></td><td width="7%"></td><td width="78%"> <p>Distribution-specific configuration file not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>109</p></td><td width="7%"></td><td width="78%"> <p>Unable to apply a config</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>129</p></td><td width="7%"></td><td width="78%"> <p>Unable to set meminfo parameter</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>130</p></td><td width="7%"></td><td width="78%"> <p>Error setting veth interface</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>131</p></td><td width="7%"></td><td width="78%"> <p>Error setting container name</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>133</p></td><td width="7%"></td><td width="78%"> <p>Waiting for container start failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>139</p></td><td width="7%"></td><td width="78%"> <p>Error saving container configuration file</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>148</p></td><td width="7%"></td><td width="78%"> <p>Error setting container IO parameters (ioprio)</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>100150</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to find container IP addressPloop image file not found</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>104151</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>VE_NETDEV</b> ioctl errorError creating ploop image</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>105152</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container start disabledError mounting ploop image</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>106153</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to set iptables on a running containerError unmounting ploop image</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>107154</p></td>
<td width="7%"></td>
<td width="78%">
<p>Distribution-specific configuration file not foundError resizing ploop image</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>109155</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Error converting container to apply a configploop layout</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>129156</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to set meminfo parameterError creating ploop snapshot</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>130157</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting veth interfacemerging ploop snapshot</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>131158</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting container namedeleting ploop snapshot</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>133159</p></td>
<td width="7%"></td>
<td width="78%">
<p>Waiting for container start failedError switching ploop snapshot</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>139166</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error saving container configuration filecompacting ploop image</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>148167</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting container IO parameters (ioprio)listing ploop snapsots</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