Changes

Jump to: navigation, search

Man/vzctl.8

25,311 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;</b><i>addr</i>][<b>skip--ipdel&nbsp;</b><i>addr</i>|<b>allsuspend</b>][<b>--hostname&nbsp;</b><i>name</i>][<b>skip--nameserver&nbsp;config</b><i>addr</i>][<b>--searchdomain&nbsp;</b><i>name</i>][<b>--netif_add&nbsp;</bp><i>dev</i>[,<itd>params</itr>...]][<b>--netif_del&nbsp;</b><i>dev</i>|<btr valign="top" align="left">all</b>][<btd width="11%">--ifname</b> <i>dev</itd>[<btd width="7%">--mac&nbsp;</b><i>hwaddr</i>][<b>--host_ifname&nbsp;</b><i>dev</i>][<bp>--host_mac&nbsp;</b><i>hwaddrvzctl</i>][<b>--bridge&nbsp;</bp><i>name</itd>][<b>--mac_filter&nbsp;on</b>|<btd width="2%">off</btd>]][<b>--numproc&nbsp;</b><i>items</itd width="80%">][<b>--numtcpsock&nbsp;</b><i>items</i>][<bp>--numothersock&nbsp;</b><i>items</i>][<b>--vmguarpages&nbsp;</b><i>pagesflags</i>][<b>snapshot--kmemsize&nbsp;switch</b><i>bytesCTID</i>][<b>--tcpsndbuf&nbsp;</b><i>bytes</i>][<b>-skip-tcprcvbuf&nbsp;resume</b><i>bytes</i>][| <b>--othersockbuf&nbsp;</b><i>bytes</i>][<b>--dgramrcvbuf&nbsp;</b><i>bytes</i>][<b>--oomguarpages&nbsp;</b><i>pages</i>][<b>-must-lockedpages&nbsp;resume</b><i>pages</i>][<b>--privvmpages&nbsp;</b><i>pages</i>][<b>-skip-shmpages&nbsp;config</b><i>pages</i>][<b>--numfile&nbsp;id</b><i>itemsuuid</i>][<b>--numflock&nbsp;</b><i>items</ip>][<b>--numpty&nbsp;</b><itd>items</itr>][<btr valign="top" align="left">--numsiginfo&nbsp;</b><i>items</i>][<btd width="11%">--dcachesize&nbsp;</b><itd>bytes</i>][<b>--numiptent&nbsp;</btd width="7%"><i>num</i>][<b>--physpages&nbsp;</b><i>pages</i>][<bp>--swappages&nbsp;</b><i>pagesvzctl</i>][<b>--cpuunits&nbsp;</b><ip>num</itd>][<b>--cpulimit&nbsp;</btd width="2%"><i>num</itd>][<b>--cpus&nbsp;</btd width="80%"><i>num</i>][<b>--cpumask&nbsp;</b><i>cpus</i>|<b>all</b>][<b>--meminfo&nbsp;none</b>|<i>mode</i>:<i>value</ip>][<b>--iptables&nbsp;</b><i>nameflags</i>][<b>snapshot--netdev_add&nbsp;delete</b><i>ifnameCTID</i>][<b>--netdev_del&nbsp;id</b><i>ifnameuuid</i>][<b>--diskquota&nbsp;yes</bp>|<b>no</b>][<b>--diskspace&nbsp;</btd><i>num</itr>][<btr valign="top" align="left">--diskinodes&nbsp;</b><i>num</i>][<b>--quotatime&nbsp;</b><itd width="11%">seconds</itd>][<btd width="7%">--quotaugidlimit&nbsp;</b><i>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;</b><itd>param</i>][<b>--devices&nbsp;</b><itd width="80%">param</i>][<b>--pci_add&nbsp;</b><i>dev</i>][<bp>--pci_del&nbsp;</b><i>dev</i>][<b>--features&nbsp;</b><i>paramflags</i>:<b>on</b>|<b>off</b>][<b>snapshot--applyconfig&nbsp;mount</b><i>nameCTID</i>][<b>--applyconfig_map&nbsp;id</b><i>groupuuid</i>][<b>--ioprio&nbsp;target</b><i>numdir</i>]</p> </td></tr><tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<td width="80%">
<p>[<i>flags</i>] <b>destroysnapshot-umount</b> | <i>CTID</i><b>delete--id</b> |<i>uuid</i></p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="7%"> <p><b>mountvzctl</b> | </p></td><td width="2%"></td><td width="80%"> <p>[<i>flags</i>] <b>umountsnapshot-list</b> | <bi>statusCTID</bi> |[<b>quotaon-H</b> | ] [<b>quotaoff-o</b> | <i>field</i>[,<i>field</i>...][<b>quotainit--id</b><i>CTIDuuid</i>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>execset</b> | <i>CTID --parameter value</i>[...] [<b>exec2--save</b> ] [<b>--force<i/b>CTID]command[<b>--setmode&nbsp;restart</ib> [|<ib>argignore</ib> ...]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>enterset</b> <i>CTID</i>[<b>--exec&nbsp;reset_ub</b><i>command&nbsp;</i>[<i>arg&nbsp;</i>...]]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>runscriptdestroy</b> | <b>delete</b> |<b>mount</b> | <b>umount</b> | <b>status</b> |<b>quotaon</b> | <b>quotaoff</b> | <b>quotainit</b><i>CTID script</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>--helpconsole</b> | <bi>CTID</i>[<i>--versionttynum</bi>]</p></td></tr><tr valign="top" align="left"><td width="11%"></tabletd><td width="7%">
<p><b>vzctl</b></p></td><td width="2%"></td><td width= DESCRIPTION =="80%">
<p style="margin>[<i>flags</i>] <b>convert</b> <i>CTID</i>[<b>--left:11%layout&nbsp; margin-topploop</b>[<b>: 1em"</b>{<b>expanded</b>|<b>plain</b>Utility|<b>vzctlraw</b> runs on the host system (otherwise known as}]]</p> </td></tr>Hardware Node, or HN) and performs direct manipulations with<tr valign="top" align="left">containers (CTs).<td width="11%"></ptd><td width="7%">
<p style="margin-left:11%; margin-top: 1em">Containers canbe referred to by either numeric <ib>vzctl</b></p>CTID</itd> or by name (see<btd width="2%">--name</btd> option). Note that CT ID &lt;= 100 arereserved for OpenVZ internal purposes.</ptd width="80%">
<p>[<i>flags</i>] <b>compact</b> <i>CTID</i></p></td></tr><tr valign="top" align= OPTIONS "left"><td width="11%"></td><td width="7%">
<p><b>vzctl</b></p></td><td width="2%"></td><td width== Flags ==="80%">
<p style="margin-top: 1em">These [<i>flags come before a</i>] <b>exec</b> | <b>exec2</b> <i>CTIDcommand, and can be used with any command</i> [<i>arg</i> ... They affect]</p></td></tr>logging to console (terminal) only, and do not affect<tr valign="top" align="left">logging to a log file.<td width="11%"></ptd><td width="7%">
<p style="margin-left:11%;"><b>--quietvzctl</b></p></td><td width="2%"></td><td width="80%">
<p style>[<i>flags</i>] <b>enter</b> <i>CTID</i>[<b>--exec&nbsp;</b><i>command&nbsp;</i>[<i>arg&nbsp;</i>...]]</p> </td></tr><tr valign="top" align="margin-left:17"><td width="11%;">Disables output. Note that</td>scripts run by vzctl are still able to produce someoutput.</ptd width="7%">
<p style="margin-left:11%;"><b>--verbosevzctl</b></p></td><td width="2%"></td><td width="80%">
<p style="margin-left:17%;">Increments logging level upfrom the default. Can be used multiple times. Default valueis set to the value of [<i>flags</i>] <b>VERBOSErunscript</b> parameter in theglobal configuration file [[Man<i>CTID script</vz.conf.5|i><b/p>vz.conf</btd>(5)]], or to <b/tr>0</btr valign="top" align="left">if not set by <btd width="11%">VERBOSE</btd> parameter.</ptd width="7%">
<p><b>vzctl</b></p></td><td width="2%"></td><td width== Setting container parameters ==="80%">
<p style="margin-left:11%;"><b>set--help</b> | <ib>CTIDparameters--version</i> [<b>--save</bp>] [<b/td>--force</btr>]</ptable>
<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>= DESCRIPTION ==
<p style="margin-left:1711%; margin-top: 1em">The followingUtilityparameters can be used with <b>setvzctl</b> commandruns on the host system (otherwise known asHardware Node, or HN) and performs direct manipulations withcontainers (CTs).</p>
<p style="margin-left:11%; margin-top: 1em">Containers canbe referred to by either numeric <i>CTID</i> or by name (see<b>--name</b> option). Note that CT ID &lt;=== Miscellaneous ====100 arereserved for OpenVZ internal purposes. A numeric ID shouldnot be more than <b>2147483644</b>.</p>
<p style="margin-left:11%;"><b>--onboot yes</b> |<b>no</b></p>= OPTIONS ==
<p style="margin-left:17%;">Sets whether the container willbe started during system boot. The container will not beauto-started unless this parameter is set to <b>yes</b>.</p>== Flags ===
<p style="margin-lefttop:11%;1em"><b>--bootorder</b>These flags come before acommand, and can be used with any command. They affectlogging to console (terminal) only, and do not affect<i>number</i>logging to a log file.</p>
<p style="margin-left:1711%;">Sets the boot order priorityfor this CT. The higher the <i>number</i> is, the earlier inthe boot process this container starts. By default thisparameter is unset, which is considered to be the lowestpriority, so containers with unset <b>bootorder--quiet</b> willstart last.</p>
<p style="margin-left:1117%;"><b>--root</b> <i>path</i>Disables output. Note thatscripts run by vzctl are still able to produce someoutput.</p>
<p style="margin-left:1711%;">Sets the path to root directory(<b>VE_ROOT--verbose</b>) for this container. This is essentially amount point for container&rsquo;s root directory. Argumentcan contain literal string <b>$VEID</b>, which will besubstituted with the numeric CT ID.</p>
<p style="margin-left:1117%;">Increments logging level upfrom the default. Can be used multiple times. Default valueis set to the value of <b>VERBOSE</b> parameter in theglobal configuration file [[Man/vz.conf.5|<b>vz.conf</b>(5)]], or to <b>--private0</b>if not set by <ib>pathVERBOSE</ib>parameter.</p>
<p style="margin-left:17%;">Sets the path to privatedirectory (<b>VE_PRIVATE</b>) for this == Setting 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>parameters ===
<p styletable width="margin-left:11100%;" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><b>--userpasswd</btr valign="top" align="left"><itd width="11%">user</itd>:<i>password</i></ptd width="4%">
<p style="margin-lefttop:17%;1em">Sets password for the givenuser in a container, creating the user if it does notexists. Note that this option is not saved in configurationfile at all (so <b>--saveset</b> flag is useless), it isapplied to the container (by modifying its </etcp></passwd andtd><td width="2%"></etc/shadow files).td></ptd width="83%">
<p style="margin-left:17%; margin-top: 1em">In case<i>CTID</i>[<b>--onboot&nbsp;yes</b>|<b>no</b>][<b>--bootorder&nbsp;</b><i>number</i>]container [<b>--root filesystem is not mounted, it is&nbsp;</b><i>path</i>][<b>--private&nbsp;</b><i>path</i>]automatically mounted, then all the appropriate file changes[<b>--mount_opts&nbsp;</b><i>options</i>]are applied, then it is unmounted.[<b>--userpasswd&nbsp;</b><i>user</i>:<i>pass</pi>][<b>--disabled&nbsp;yes</b>|<b>no</b>][<p style="marginb>--left:17%name&nbsp; margin</b><i>name</i>][<b>--top: 1em"description&nbsp;</b><i>string</i>Note that]container should be created before using this option.[<b>--ostemplate&nbsp;</b><i>string</pi>][<b>--stop-timeout&nbsp;</b><i>seconds</i>][<p style="marginb>--left:11%ipadd&nbsp;"</b><i>addr</i>][<b>--disabled yesipdel&nbsp;</b><i>addr</i> |<b>all</b>][<b>--hostname&nbsp;</b>no<i>name</i>][<b>--nameserver&nbsp;</pb><i>addr</i>][<b>--searchdomain&nbsp;</b><i>name</i>][<p style="marginb>--left:17%netif_add&nbsp;"</b><i>dev</i>[,<i>params</i>Disable container start. To..]][<b>--netif_del&nbsp;</b><i>dev</i>|<b>all</b>]force the start of a disabled container, use [<b>--ifname</b>vzctl start<i>dev</i>[<b>--forcemac&nbsp;</b>.<i>hwaddr</pi>][<b>--host_ifname&nbsp;</b><i>dev</i>][<p style="marginb>--left:11%host_mac&nbsp;"</b><i>hwaddr</i>][<b>--namebridge&nbsp;</b> <i>name</i>][<b>--mac_filter&nbsp;on</b>|<b>off</pb>]][<b>--numproc&nbsp;</b><i>items</i>][<p style="marginb>--left:17%numtcpsock&nbsp;"</b><i>items</i>Add a name for a container. The][<b>--numothersock&nbsp;</b><i>nameitems</i> can later be used in subsequent calls to][<b>vzctl--vmguarpages&nbsp;</b> in place of <i>CTIDpages</i>][<b>--kmemsize&nbsp;</b><i>.bytes</pi>][<b>--tcpsndbuf&nbsp;</b><i>bytes</i>][<b>--tcprcvbuf&nbsp;</b><i>bytes<p style="margin/i>][<b>--left:11%othersockbuf&nbsp;"</b><i>bytes</i>][<b>--descriptiondgramrcvbuf&nbsp;</b><i>bytes</i>][<b>--oomguarpages&nbsp;</b><i>pages</i>string][<b>--lockedpages&nbsp;</b><i>pages</pi>][<b>--privvmpages&nbsp;</b><i>pages</i>][<p style="marginb>--left:17%shmpages&nbsp;"</b><i>pages</i>Add a textual description for a]container.[<b>--numfile&nbsp;</b><i>items</pi>][<b>--numflock&nbsp;</b><i>items</i>][<p style="marginb>--left:11%numpty&nbsp;"</b><i>items</i>][<b>--setmodenumsiginfo&nbsp;</b><i>items</i>]restart[<b>--dcachesize&nbsp;</b>|<i>bytes</i>][<b>ignore--numiptent&nbsp;</b><i>num</pi>][<b>--physpages&nbsp;</b><i>pages</i>][<p style="marginb>--left:17%swappages&nbsp;"</b><i>pages</i>Whether to restart a container]after applying parameters that require the container to be[<b>--ram&nbsp;</b><i>bytes</i>]restarted in order to take effect.[<b>--swap&nbsp;</b><i>bytes</pi>][<b>--vm_overcommit&nbsp;</b><i>float</i>]==== Networking ====[<b>--cpuunits&nbsp;</b><i>num</i>][<b>--cpulimit&nbsp;</b><i>num</i>][<p style="marginb>--left:11%cpus&nbsp;"</b><i>num</i>][<b>--ipaddcpumask&nbsp;</b> <i>addrcpus</i>|<b>auto</pb>|<b>all</b>][<b>--nodemask&nbsp;</b><i>nodes</i>|<b>all</b>][<p style="marginb>--leftmeminfo&nbsp;none</b>|<i>mode</i>:17%<i>value</i>][<b>--iptables&nbsp;"</b>Adds an IP address <i>addrname</i>to a given container[<b>,</b>. Address can optionally have a netmaskspecified in the CIDR notation (e.g. ]][<b>--netfilter&nbsp;disabled</b>|<b>stateless</b>|<b>stateful</b>|<b>full</b>][<b>--netdev_add&nbsp;</b><i>ifname</i>][<b>--netdev_del&nbsp;</b><i>ifname</i>][<b>--diskquota&nbsp;yes</b>|<b>no</b>][<b>--diskspace&nbsp;</b><i>num</i>][<b>--diskinodes&nbsp;</b><i>num</i>][<b>--quotatime&nbsp;</b><i>seconds</i>][<b>--quotaugidlimit&nbsp;</b><i>num</i>][<b>--capability&nbsp;</b><i>capname</i>:<b>on</b>|<b>off</b>[<b>,</b>10.1.2.3]][<b>--devnodes&nbsp;</b><i>param</25i>][<b>--devices&nbsp;</b>).<i>param</i>]Note that this option is incremental, so [<b>--pci_add&nbsp;</b><i>addrdev</i> are]added to already existing ones.[<b>--pci_del&nbsp;</b><i>dev</pi>][<b>--features&nbsp;</b><i>name</i>:<b>on</b>|<b>off</b>[<b>,</b>...]][<p style="marginb>--left:11%applyconfig&nbsp;"</b><i>name</i>][<b>--ipdelapplyconfig_map&nbsp;</b> <i>addrgroup</i> |][<b>all--ioprio&nbsp;</b><i>num</pi>][<b>--iolimit&nbsp;</b><i>mbps</i>][<p style="marginb>--left:17%iopslimit&nbsp;"</b>Removes IP address <i>addriops</i>] [<b>--save</b>]from a container. If you want to remove all the addresses,[<b>--force</b>] [<b>--reset_ub</b>]use [<b>--ipdel allsetmode&nbsp;restart</b>|<b>ignore</b>.]</p> </td></tr><tr valign="top" align="left"><p styletd width="margin-left:11%;"></td><td width="4%"></td><td width="2%"></td><td width="83%"> <p>This command sets various container parameters. If thecontainer is currently running, <b>--hostnamevzctl</b>applies theseparameters to the container. The following options can beused with <ib>nameset</ib>command.</p></td></tr></table>
<p style="margin-left:17%;">Sets container hostname.<b>vzctl</b> writes it to the appropriate file inside acontainer (distribution-dependent).</p>=== Flags ====
<p style="margin-left:11%;"><b>--nameserversave</b><i>addr</i></p>
<p style="margin-left:17%;">Sets DNS server IP address fora container. If you want to set several nameserversthis flag is given, youshould do it at once, so use <b>--nameserver</b> optionparameters are saved in container configuration filemultiple times in one call to <b>vzctl<[[Man/b>, as all the nameserver values set in previous calls to ctid.conf.5|<b>vzctlctid.conf</b> areoverwritten(5)]].</p>
<p style="margin-left:11%;"><b>--searchdomainforce</b><i>name</i></p>
<p style="margin-left:17%;">Sets DNS search domains for acontainer. If you want to set several search domains, youthis flag is given togethershould do it at once, so use with <b>--searchdomainsave</b> option, parameters are saved even if the currentkernel doesn&rsquo;t support OpenVZ. Note this flag does notmultiple times in one call to make sense without <b>vzctl--save</b>, as all thesearch domain values set in previous calls to so <b>vzctl--save</b>isare overwrittenrequired.</p>
<p style="margin-left:11%;"><b>--netif_addreset_ub</b><i>ifname[</i>,<i>mac</i>,<i>host_ifname</i>,<i>host_mac</i>,<i>bridge]</i></p>
<p style="margin-left:17%;">Adds a virtual Ethernet deviceIf this flag is given,(veth) to a given container. Here <ib>ifnamevzctl</ib> is theapplies all User Beancounter parameters fromEthernet device name in the configuration file to a running container, <i>mac</i> . This is its MACaddress, <i>host_ifname</i> helpful in case configuration file is the Ethernet device name onmodified manually.the hostPlease note this flag is exclusive, and <i>host_mac</i> is its MAC address. MACaddresses should be in the format like XX:XX:XX:XX:XX:XXe.<i>bridge</i> is an optional parameter which it can not 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 notspecifiedcombined with any other options or flags.</p>
<p style="margin-left:11%;"><b>--netif_delsetmode restart</b>|<i>dev_name</i> | <b>allignore</b></p>
<p style="margin-left:17%;">Removes virtual Ethernet deviceA few parameters can only befrom applied by restarting the container. By default,<b>vzctl</b> prints a warning if such parameters aresupplied and a containeris running. If you want Use <b>--setmoderestart</b> together with <b>--save</b> flag to remove all devicesrestart acontainer in such a case, useor <b>all--setmode ignore</b>tosuppress the warning.</p>
==== veth interface configuration Miscellaneous ====
<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>--ifnameonboot yes</b> <i>name</i> option. |<b><br>--macno</b> <i>XX:XX:XX:XX:XX:XX</i></p>
<p style="margin-left:2217%;">MAC address of interface insideSets 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>yes</b>, or the container was running just beforea last reboot, and this parameter is not set to <b>no</b>.Default value is unset, meaning the containerwill bestarted if it was running before the last reboot.</p>
<p style="margin-left:11%;"><b>--host_ifnamebootorder</b><i>namenumber</i></p>
<p style="margin-left:2217%;">interface name Sets the boot order priorityfor virtualthis CT. The higher the <i>number</i> is, the earlier inthe boot process this container starts. By default thisinterface in parameter is unset, which is considered to be the host systemlowestpriority, so containers with unset <b>bootorder</b> willstart last.</p>
<p style="margin-left:11%;"><b>--host_macroot</b><i>XX:XX:XX:XX:XX:XXpath</i></p>
<p style="margin-left:2217%;">MAC address of interface in Sets thepath to root directoryhost system(<b>VE_ROOT</b>) for this container. This is essentially amount point for container&rsquo;s root directory. Argumentcan contain literal string <b>$VEID</b>, which will besubstituted with the numeric CT ID.</p>
<p style="margin-left:11%;"><b>--bridgeprivate</b> <i>namepath</i></p>
<p style="margin-left:2217%;">Bridge nameSets the path to privatedirectory (<b>VE_PRIVATE</b>) for this container. Custom networkThis is astart scripts directory in which all the container&rsquo;s files arestored. Argument can use this value to automatically add contain literal string <b>$VEID</b>,which will be substituted with theinterface to a bridgenumeric CT ID.</p>
<p style="margin-left:11%;"><b>--mac_filter onmount_opts</b> |<i>option</i>[<b>off,</b><i>option</i>...]</p>
<p style="margin-left:2217%;">Enables/disables MAC addressSets additional mount optionsfiltering for the Container veth device and the possibilityof configuring the MAC address of this device from insidethe Containercontainer file system. If the filtering is turned on: Only applicable for <brb>&bull; the veth device accepts only those packets that havea MAC address in their headers corresponding to that of thisdevice (excluding all broadcast and multicast packets); ploop<br/b>&bull; it is impossible to modify the veth MAC address frominside the Containerlayout, ignored otherwise.</p>
<p style="margin-left:2211%; margin"><b>--topuserpasswd</b><i>user</i>: 1em"<i>password</i>By default,this functionality is enabled for all veth devices existinginside the Container.</p>
<p style==== Resource limits ===="margin-left:17%;">Sets password for the givenuser in a container, creating the user if it does notexists. Note that this option is not saved in configurationfile at all (so <b>--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:1117%; margin-top: 1em">The followingoptions sets barrier and limit for various userbeancounters. Each option requires one or two arguments. Incase of one argument, <b>vzctl</b> sets barrier and limit tothe same value. In case of two colon-separated argumentscontainer was not running,it is automatically started thenall the first is a barrierappropriate changes are applied, and the second then it is a limit. Eachargument is either a number, a number with a suffix, or aspecial value <b>unlimited</b>stopped.</p>
<p style="margin-left:1117%; margin-top: 1em">Arguments arein items, pages or bytes. Note that page size isarchitecture-specific, it is 4096 bytes on x86 and x86_64platformscontainer should be created before using this option.</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</b>). Forexample, <b>vzctl set</b> <i>CTID</i> <b>--privvmpages5M:6Mdisabled yes</b> should set |<b>privvmpagesno</b>&rsquo; barrier to 5megabytes and its limit to 6 megabytes.</p>
<p style="margin-left:1117%; margin-top: 1em">AvailableDisable container start. Toforce the start of a disabled container, use <b>vzctl startsuffixes are:--force</b>.</p>
<table widthp style="100margin-left:11%;" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left"b>--name</b><td width="11%"i>name</tdi><td width="6%"/p>
<pstyle="margin-left:17%;">Add a name for a container. The<bi>Tname</bi>, can later be used in subsequent calls to<b>tvzctl</b>in place of </pi>CTID</tdi>. Note this option cannot be used without <td width="5%"b>--save</tdb>.<td width="44%"/p>
<p>terabytes;</p></td><td widthstyle="34margin-left:11%;"></tdb>--description</tr><tr valign="top" align="left"b><td width="11%"i>string</tdi><td width="6%"/p>
<p><b>G</b>, <b>g</b></p></td><td widthstyle="5margin-left:17%;">Add a textual description for acontainer.</td><td width="44%"p>
<p>gigabytes;</p></td><td widthstyle="34margin-left:11%;"></tdb>--ostemplate</tr><tr valign="top" align="left"b><td width="11%"i>string</tdi><td width="6%"/p>
<pstyle="margin-left:17%;">Sets a new value of<b>MOSTEMPLATE</b>, parameter in container configuration file[[Man/ctid.conf.5|<b>mctid.conf</b>(5)]]. Requires </pb>--save</tdb>flag. Useful<td width="5%"><after a change/td>upgrade of a distribution running insidecontainer, as vzctl uses the value of OSTEMPLATE to rundistribution-specific scripts.<td width="44%"/p>
<p>megabytes;</p></td><td widthstyle="34margin-left:11%;"></tdb>--stop-timeout</tr><tr valign="top" align="left"b><td width="11%"i>seconds</tdi><td width="6%"/p>
<pstyle="margin-left:17%;">Sets a time to wait forcontainer to stop on <b>Kvzctl stop</b>before forciblykilling it, in seconds. Note this option can not be usedwithout <b>k--save</b>flag.</p></td><td width="5%"></td><td width="44%">
<p>kilobytes;</p></td><td widthstyle="34margin-left:17%; margin-top: 1em">Special valueof </tdb>0</tr><tr valign="top" align="left"><td width="11%"b>means to use compiled-in default.</td><td width="6%"p>
<p><b>P</b>, <b>p</b></p></td><td width="5%"></td><td width="44%">== Networking ====
<pstyle="margin-left:11%;">memory pages (arch-specific).</pb>--ipadd</tdb><td width="34%"i>addr</tdi></tr></tablep>
<p style="margin-left:1117%; margin-top: 1em">You can alsospecify the literal word Adds an IP address <bi>unlimitedaddr</bi> in place of to a given container. Address can optionally have anetmasknumberspecified in the CIDR notation (e.g. In that case the corresponding value will be set to<b>LONG_MAX</b>, i10. e1. the maximum possible value2. 3/25</b><br>).--numproc</b> Note that this option is incremental, so <i>itemsaddr</i>[:<i>items</i>]areadded to already existing ones.</p>
<p style="margin-left:2211%;">Maximum number of processes andkernel<b>--level threads. Setting the barrier and the limit toipdel</b> <i>addr</i> |different values does not make practical sense.<b>all</b></p>
<p style="margin-left:1117%;"><b>--numtcpsock</b>Removes IP address <i>itemsaddr</i>[:from a container. If you want to remove all the addresses,use <ib>items--ipdel all</ib>].</p>
<p style="margin-left:2211%;">Maximum number of TCP sockets.<b>--hostname</b>This parameter limits the number of TCP connections and,thus, the number of clients the server application canhandle in parallel. Setting the barrier and the limit todifferent values does not make practical sense.<i>name</i></p>
<p style="margin-left:1117%;">Sets container hostname.<b>--numothersockvzctl</b>writes it to the appropriate file inside a<i>items</i>[:<i>items</i>]container (distribution-dependent).</p>
<p style="margin-left:2211%;">Maximum number of non<b>--TCPnameserver</b>sockets (local sockets, UDP and other types of sockets).Setting the barrier and the limit to different values doesnot make practical sense.<i>addr</i></p>
<p style="margin-left:1117%;">Sets DNS server IP address fora container. If you want to set several nameservers, youshould do it at once, so use <b>--vmguarpagesnameserver</b>optionmultiple times in one call to <ib>pagesvzctl</ib>[:, as all the nameserver values set in previous calls to <ib>pagesvzctl</ib>]areoverwritten.</p>
<p style="margin-left:2217%;margin-top: 1em">Memory allocation guarantee.A special valueThis parameter controls how much memory is available of <b>inherit</b> can be used to aauto-propagate nameservercontainer. The barrier is value(s) from the amount of memory thatcontainerhost system&rsquo;s applications are guaranteed to be able toallocate. The meaning of the limit is currently unspecified;it should be set to <b>unlimited/etc/resolv.conf</b>file.</p>
<p style="margin-left:11%;"><b>--kmemsizesearchdomain</b><i>bytesname</i>[:<i>bytes</i>]</p>
<p style="margin-left:2217%;">Maximum amount of kernel memorySets DNS search domains for ausedcontainer. This parameter is related If you want to set several search domains, youshould do it at once, so use <b>--numprocsearchdomain</b>. Eachoptionprocess consumes certain amount of kernel memory - 16 KB atleastmultiple times in one call to <b>vzctl</b>, 30-50 KB typically. Very large processes may consumea bit more. It is important to have a certain safety gapbetween as all the barrier and the limit of this parameter: equalbarrier and limit may lead search domain values set in previous calls to the situation where the kernelwill need to kill container&rsquo;s applications to keep the<b>kmemsizevzctl</b> usage under the limitare overwritten.</p>
<p style="margin-left:1117%;margin-top: 1em">A special valueof <b>--tcpsndbufinherit</b>can be used to auto-propagate searchdomain value(s) from the host system&rsquo;s<ib>bytes</i>[:<i>bytesetc/resolv.conf</ib>]file.</p>
<p style="margin-left:2211%;">Maximum size of TCP sendbuffers. Barrier should be not less than 64 KB, anddifference between barrier and limit should be equal to ormore than value of <b>numtcpsock--netif_add</b> multiplied by 2.5KB.<i>ifname[</i>,<i>mac</i>,<i>host_ifname</i>,<i>host_mac</i>,<i>bridge]</i></p>
<p style="margin-left:1117%;">Adds a virtual Ethernet device(veth) to a given container. Here <i>ifname</i> is theEthernet device name in the container, <bi>mac</i> is its MACaddress, <i>--tcprcvbufhost_ifname</bi>is the Ethernet device name onthe host, and <i>byteshost_mac</i>[is its MAC address. MACaddresses should be in the format like XX:XX:XX:XX:XX:XX.<i>bridge</i>bytesis an optional parameter which can be used incustom network start scripts to automatically add theinterface to a bridge. All parameters except <i>ifname</i>]are optional and are automatically generated if notspecified.</p>
<p style="margin-left:2211%;">Maximum size of TCP receive<b>--netif_del</b>buffers. Barrier should be not less than 64 KB, anddifference between barrier and limit should be equal to ormore than value of <i>dev_name</i> | <b>numtcpsockall</b> multiplied by 2.5KB.</p>
<p style="margin-left:1117%;">Removes virtual Ethernet devicefrom a container. If you want to remove all devices, use<b>--othersockbufall</b><i>bytes</i>[:<i>bytes</i>].</p>
<p style="margin-left:22%;">Maximum size of other (non-TCP)socket send buffers. If container&rsquo;s processes needs tosend very large datagrams, the barrier should be setaccordingly. Increased limit is necessary for highperformance of communications through local (UNIX-domain)sockets.</p>=== veth interface configuration ====
<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>--dgramrcvbufifname</b><i>bytesname</i>[:option. <b><br>--mac</b> <i>bytesXX:XX:XX:XX:XX:XX</i>]</p>
<p style="margin-left:22%;">Maximum size MAC address of other (non-TCP)interface insidesocket receive buffers. If a container&rsquo;s processes needsto receive very large datagrams, the barrier should be setaccordingly. The difference between the barrier and thelimit is not needed.</p>
<p style="margin-left:11%;"><b>--oomguarpageshost_ifname</b><i>pagesname</i>[:<i/p>pages </ip style="margin-left:22%;">]interface name for virtualinterface in the host system.</p>
<p style="margin-left:2211%;">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-memory guarantee. If the <b>oomguarpages--host_mac</b> usage isbelow the barrier, processes of this container areguaranteed not to be killed in out-of-memory situations. Themeaning of limit is currently unspecified; it should be setto <bi>unlimitedXX:XX:XX:XX:XX:XX</bi>.</p>
<p style="margin-left:1122%;"><b>--lockedpages</b>MAC address of interface in the<i>pages</i>[:<i>pages</i>]host system.</p>
<p style="margin-left:22%;margin-top: 1em">Maximum number of pagesIf you want anindependent communication with the Container through thebridge, you should specify a multicast MAC address hereacquired by <b>mlock</b>(2FE:FF:FF:FF:FF:FF).</p>
<p style="margin-left:11%;"><b>--privvmpagesbridge</b><i>pagesname</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">Allows controlling the amountof memory allocated by the applicationsBridge name. For shared (mappedas <b>MAP_SHARED</b>) pages, each container really using aCustom networkmemory page is charged for start scripts can use this value to automatically add the fraction of the page(depending on the number of others using it). For&quot;potentially private&quot; pages (mapped as<b>MAP_PRIVATE</b>), container is charged either for interface to 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 yetbridge.</p>
<p style="margin-left:2211%; margin-top: 1em">The barrier andthe limit of this parameter control the upper boundary ofthe total size of allocated memory. Note that this upperboundary does not guarantee that container will be able toallocate that much memory. The primary mechanism to controlmemory allocation is the <b>--vmguarpagesmac_filter on</b> |<b>off</b> guarantee.</p>
<p style="margin-left:1122%;"><b>--shmpages<Enables/b>disables MAC addressfiltering for the Container veth device and the possibilityof configuring the MAC address of this device from inside<i>pages</i>[the Container. If the filtering is turned on:<ibr>pages&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); </ibr>]&bull; it is impossible to modify the veth MAC address frominside the Container.</p>
<p style="margin-left:22%;margin-top: 1em">Maximum IPC SHM segment size.By default,Setting this functionality is enabled for all veth devices existinginside the barrier and the limit to different values doesnot make practical senseContainer.</p>
<p style="margin-left:11%;"><b>--numfile</b><i>items</i>[:<i>items</i>]</p>=== VSwap limits ====
<p style="margin-left:2211%;margin-top: 1em">Maximum number of open files.The followingIn most cases the barrier options sets memory and the limit should be set to thesame value. Setting the barrier to <b>0</b> effectivelydisables preswap limits for VSwap-charging optimization for this beancounter inenabledthe kernels (kernel, which leads to the held value being precise butcould slightly degrade file open performanceversion 042stab042 or greater).</p>
<p style="margin-left:11%;margin-top: 1em"><b>--numflock</b>Argument is inbytes, unless otherwise specified by an optional suffix.<i>items</i>[Available suffixes are:<i>items</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum number of file locks&bull;<b>T</b>, <b>t</b> - terabytes; <br>&bull; <b>G</b>, <b>g</b> - gigabytes; <br>&bull; <b>M</b>, <b>m</b> - megabytes; <br>&bull; <b>K</b>, <b>k</b> - kilobytes; <br>&bull; <b>P</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>&bull; <b>B</b>, <b>b</b> - bytes (this is the default).Safety gap should be between barrier and limit.<b><br>--ram</b> <i>bytes</i></p>
<p style="margin-left:1122%;">Sets physical memory (RAM)available to a container. Actually, the option is a shortcutfor setting <b>--numptyphyspages</b>limit (the barrier is set to<i>items</i>[:<i>items</i>]0).</p>
<p style="margin-left:2211%;">Number of pseudo<b>-terminals(PTY). Note that in OpenVZ each container can have not morethan 255 PTYs. Setting the barrier and the limit todifferent values does not make practical sense.-swap</b> <i>bytes</i></p>
<p style="margin-left:1122%;">Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>--numsiginfoswappages</b><i>items</i>[:<i>items</i>]limit (the barrier is set to 0).</p>
<p style="margin-left:2211%;">Number of siginfo structures.<b>--vm_overcommit</b>Setting the barrier and the limit to different values doesnot make practical sense.<i>float</i></p>
<p style="margin-left:1122%;">Set VM overcommitment value to<bi>--dcachesizefloat</bi>. If set, it is used to calculate<ib>bytesprivmmpages</ib>[:parameter in case it is not setexplicitly (see below). Default value is <ib>bytes0</ib>], meaningunlimited privvmpages.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size of<b>vzctl</b>filesystem-related cacheschecks if running kernel is VSwap capable, such as directory entry and inoderefuses tocachesuse these parameters otherwise. Exists as a separate parameter to impose a limitThis behavior can becausing file operations to sense memory shortage and returnan errno to applications, protecting from memory shortagesoverriden by using <b>--force</b> flag beforeduring critical operations that should not fail. Safety gapshould be between barrier and limitparameters.</p>
<p style="margin-left:11%;margin-top: 1em"><b>--numiptent</b>In VSwap mode,all beancounters other than RAM and swap become optional.Note though that if some optional beancounters are not set,they are calculated and set by vzctl implicitly, using the<i>num</i>[following formulae:<i>num</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Number of iptables (netfilter)<b>&bull;entrieslockedpages. Setting the barrier and the limit to differentvalues does not make practical sense= oomguarpages.barrier = ram</b></p>
<p style="margin-left:11%;margin-top: 1em"><b>--physpages&bull;lockedpages.limit = oomguarpages.limit = unlimited</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">On VSwap-enabled kernels, thislimits the amount of physical memory (RAM) available to a<b>&bull;containervmguarpages. The barrier should be set to <b>0= vmguarpages.limit = ram + swap</b>, and thelimit to a total size of RAM that can be used used by acontainer.</p>
<p style="margin-left:2211%; margin-top: 1em">For olderkernels, this is an accounting-only parameter, showing theusage of RAM by this container. Barrier should be set to<b>0</b>, and &bull;privvmpages.barrier = privvmpages.limit should be set to <b>unlimited= (ram + swap) *vm_overcommit</b>.</p>
<p style="margin-left:11%;margin-top: 1em">(if<b>--swappagesvm_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">The limit, if set, Here is used toanshow a total amount example of swap space available inside thesetting container. The barrier 777 to have 512 megabytes of this parameter is currentlyignored. The default value is <b>unlimited</b>, meaningtotal RAM and 1 gigabyte of swap will be reported as 0.:</p>
<p pre style="margin-left:2211%; margin-top: 1em">Note that inorder for the value to be shown as total vzctl set 777 --ram 512M --swap space,<b>1G --meminfo</b> parameter should be set to value other than<b>none</b>.save</ppre>
==== CPU fair scheduler parameters User Beancounter limits ====
<p style="margin-left:11%; margin-top: 1em">TheseThe followingparameters control CPU usage by containeroptions sets barrier and limit for various userbeancounters. <b><br>--cpuunits</b> <i>num</i></p>
<p style="margin-left:2211%;margin-top: 1em">CPU weight Note that for a container.Argument is positive nonVSwap-zero numberenabled kernels (version 042stab042 or greater) theselimits are optional, passed to you must only set <b>--ram</b> 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--swap</b> are not specified(see above). For older kernels,these limitsdefault value of 1000 is usedare obligatory.</p>
<p style="margin-left:2211%; margin-top: 1em">You can set CPUEach optionrequires one or two arguments. In case of one argument,weight for CT0 (host system itself) as well (use <b>vzctlset 0 --cpuunits</b> <i>num</i>)sets barrier and limit to the same value. Incase of two colon-separated arguments, the first is abarrier, and the second is a limit. UsuallyEach argument is eithera number, OpenVZ initscripta number with a suffix, or a special value(<b>/etc/init.d/vzunlimited</b>) takes care of setting this.</p>
<p style="margin-left:11%;margin-top: 1em"><b>-Arguments arein items, pages or bytes. Note that page size isarchitecture-cpulimit</b>specific, it is 4096 bytes on x86 and x86_64<i>num</i>[<b>%</b>]platforms.</p>
<p style="margin-left:2211%;margin-top: 1em">Limit of CPU usage You can alsospecify different suffixes for theUser Beancounter parameterscontainer, in per cent(except for those which names start with <b>num</b>). Note if the computer has 2 CPUsForexample, it<b>vzctl set</b> <i>CTID</i> <b>--privvmpageshas total of 200% CPU time. Default CPU limit is 5M:6M</b> should set <b>0privvmpages</b>&rsquo; barrier to 5(no CPU megabytes and its limit)to 6 megabytes.</p>
<p style="margin-left:11%;margin-top: 1em"><b>--cpus</b> <i>num</i>Availablesuffixes are:</p>
<p style="margin-left:2211%;margin-top: 1em">sets number of CPUs available&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>in the container&bull; <b>P</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>&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>--cpumasknumproc</b> <i>cpusitems</i> |[:<bi>allitems</bi>]</p>
<p style="margin-left:22%;">sets list Maximum number of allowed CPUs forprocesses andthe container. Input format is a commakernel-separated list ofdecimal numbers and rangeslevel threads. 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> (thecontainer can execute on any CPU)different values does not make practical sense.</p>
<p style==== Memory output parameters ===="margin-left:11%;"><b>--numtcpsock</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:1122%; margin-top: 1em">Maximum number of TCP sockets.This parameterlimits the number of TCP connections and,control output thus, the number of /proc/meminfo inside a containerclients the server application canhandle in parallel. <b><br>Setting the barrier and the limit to--meminfo none</b>different values does not make practical sense.</p>
<p style="margin-left:2211%;">No <b>--numothersock</procb><i>items</meminfo virtualization(the same as on host system).i>[:<i>items</i>]</p>
<p style="margin-left:1122%;"><b>Maximum number of non--meminfo</b>TCPsockets (local sockets, UDP and other types of sockets).Setting the barrier and the limit to different values does<i>mode</i>:<i>value</i>not make practical sense.</p>
<p style="margin-left:2211%;">Configure total memory outputin a container. Reported free memory is evaluatedaccordingly to the mode being set. Reported swap isevaluated according to the settings of <b>--swappagesvmguarpages</b>parameter.<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%; margin-top: 1em">You can use theMemory allocation guarantee.following modes for <i>mode</i>: <br>This parameter controls how much memory is available to a&bull; <b>pages</b>:<i>value</i> - sets total container. The barrier is the amount of memory inthatpagescontainer&rsquo; <br>s applications are guaranteed to be able to&bullallocate. The meaning of the limit is currently unspecified; <b>privvmpages</b>:<i>value</i> - sets total memoryas it should be set to <b>privvmpagesunlimited</b> * <i>value</i>.</p>
<p style="margin-left:2211%; margin"><b>-top: 1em"-kmemsize</b>Default is<bi>bytes</i>privvmpages[:1<i>bytes</bi>.]</p>
<p style="margin-left:22%; margin-top: 1em">Note that ifMaximum amount of kernel memoryused. This parameter is related to <b>--physpagesnumproc</b> is set on a VSwap. Eachprocess consumes certain amount of kernel memory -enabled kernel16 KB atleast, it30-50 KB typically. Very large processes may consumetakes a precedence over <b>--meminfo</b>, ibit more.e. settingIt 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>--meminfokmemsize</b> does not take any effectusage under the limit.</p> ==== iptables control parameters ====
<p style="margin-left:11%;"><b>--iptablestcpsndbuf</b><i>namebytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%;">Allow Maximum size of TCP sendbuffers. Barrier should be not less than 64 KB, anddifference between barrier and limit should be equal to use the functionalityormore than value of <ib>namenumtcpsock</ib> iptables module inside the containermultiplied by 2. Tospecify multiple <i>name</i>s, repeat --iptables for each,5or use space-separated list as an argument (enclosed insingle or double quotes to protect spaces)KB.</p>
<p style="margin-left:2211%; margin-top: 1em">The defaultlist of enabled iptables modules is specified by the<b>IPTABLES--tcprcvbuf</b> variable in <i>bytes</i>[[Man/vz.conf.5|:<bi>vz.confbytes</bi>(5)]].</p>
<p style="margin-left:22%; margin-top: 1em">You can use theMaximum size of TCP receivefollowing 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>buffers. Barrier should be not less than 64 KB,and<b>ip_conntrack</b>, <b>ip_conntrack_ftp</b>,difference between barrier and limit should be equal to ormore than value of <b>ip_conntrack_ircnumtcpsock</b>, <b>ipt_conntrack</b>,multiplied by 2.5<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>KB.</p>
<p style==== Network devices control parameters ===="margin-left:11%;"><b>--othersockbuf</b><i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:1122%;"><b>Maximum size of other (non-TCP)socket send buffers. If container&rsquo;s processes needs tosend very large datagrams, the barrier should be setaccordingly. Increased limit is necessary for highperformance of communications through local (UNIX-netdev_add</b>domain)<i>name</i>sockets.</p>
<p style="margin-left:2211%;">move network device from the<b>--dgramrcvbuf</b>host system to a specified container<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:1122%;"><b>Maximum size of other (non--netdev_del</b>TCP)socket receive buffers. If container&rsquo;s processes needsto receive very large datagrams, the barrier should be setaccordingly. The difference between the barrier and the<i>name</i>limit is not needed.</p>
<p style="margin-left:2211%;">delete network device from a<b>--oomguarpages</b>specified container<i>pages</i>[:<i>pages</i>]</p>
<p style==== Disk quota parameters ===="margin-left:22%;">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-memory guarantee. If the <b>oomguarpages</b> usage isbelow the barrier, processes of this container areguaranteed not to be killed in out-of-memory situations. Themeaning of limit is currently unspecified; it should be setto <b>unlimited</b>.</p>
<p style="margin-left:11%;"><b>--diskquota yeslockedpages</b> |<bi>pages</i>[:<i>nopages</bi>]</p>
<p style="margin-left:22%;">allows to enable or disableMaximum number of pagesdisk quota for a container. By default, a global value(<b>DISK_QUOTA</b>) from [[Man/vz.conf.5|acquired by <b>vz.confmlock</b>(52)]] is used.</p>
<p style="margin-left:11%;"><b>--diskspaceprivvmpages</b><i>numpages</i>[:<i>numpages</i>]</p>
<p style="margin-left:22%;">sets soft and hard disk quotaAllows controlling the amountlimits, in blocksof memory allocated by the applications. First parameter is soft limit, second ishard limit. One block is currently equal to 1Kb. SuffixesFor shared (mappedas <b>GMAP_SHARED</b>) pages, each container really using amemory page is charged for the fraction of the page(depending on the number of others using it). For&quot;potentially private&quot; pages (mapped as<b>MMAP_PRIVATE</b>), <b>K</b> can also be specified (seecontainer is charged either for a<b>Resource limits</b> section fraction of the size or for more info onthe full size if the allocatedaddress space. In the latter case, the physical pagesassociated with the allocated address space may be insuffixes)memory, in swap or not physically allocated yet.</p>
<p style="margin-left:1122%;margin-top: 1em">The barrier andthe limit of this parameter control the upper boundary ofthe total size of allocated memory. Note that this upperboundary does not guarantee that container will be able toallocate that much memory. The primary mechanism to controlmemory allocation is the <b>--diskinodesvmguarpages</b><i>num</i>[:<i>num</i>]guarantee.</p>
<p style="margin-left:2211%;">sets soft and hard disk quota<b>--shmpages</b>limits, in <i-nodes. First parameter is soft limit, second ishard limit.>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%;"><b>--quotatime</b>Maximum IPC SHM segment size.Setting the barrier and the limit to different values does<i>seconds</i>not make practical sense.</p>
<p style="margin-left:2211%;">sets quota grace period.<b>--numfile</b>Container is permitted to exceed its soft limits for thegrace period, but once it has expired, the soft limit isenforced as a hard limit.<i>items</i>[:<i>items</i>]</p>
<p style="margin-left:1122%;">Maximum number of open files.In most cases the barrier and the limit should be set to thesame value. Setting the barrier to <b>--quotaugidlimit0</b>effectivelydisables pre-charging optimization for this beancounter inthe kernel, which leads to the held value being precise but<i>num</i>could slightly degrade file open performance.</p>
<p style="margin-left:2211%;">sets maximum number ofuser/group IDs in a container for which disk quota insidethe container will be accounted. If this value is set to<b>0--numflock</b>, user and group quotas inside the container willnot be accounted.<i>items</i>[:<i>items</i>]</p>
<p style="margin-left:22%; margin-top: 1em">Note that ifyou have previously set value Maximum number of this parameter to <b>0</b>,changing it while the container is running will not takefile locks.effectSafety gap should be between barrier and limit.</p>
<p style==== Mount option ===="margin-left:11%;"><b>--numpty</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:1122%;"><b>Number of pseudo--noatime yes</b> |terminals(PTY). Note that in OpenVZ each container can have not morethan 255 PTYs. Setting the barrier and the limit to<b>no</b>different values does not make practical sense.</p>
<p style="margin-left:2211%;">Sets noatime flag (do not<b>--numsiginfo</b>update inode access times) on filesystem.<i>items</i>[:<i>items</i>]</p>
<p style==== Capability option ===="margin-left:22%;">Number of siginfo structures.Setting the barrier and the limit to different values doesnot make practical sense.</p>
<p style="margin-left:11%;"><b>--capabilitydcachesize</b><i>capnamebytes</i>[:<bi>onbytes</b>|<b>off</bi>]</p>
<p style="margin-left:22%;">Sets Maximum size offilesystem-related caches, such as directory entry and inodecaches. Exists as a capability for separate parameter to impose alimitcausing file operations to sense memory shortage and returnan errno to applications, protecting from memory shortagescontainer. Note during critical operations that setting capability when the containeris running does should not take immediate effect; restart thecontainer in order for the changes to take effectfail. Note aSafety gapcontainer has default set of capabilities, thus anyoperation on capabilities is &quot;logical should be between barrier and&quot; withthe default capability masklimit.</p>
<p style="margin-left:2211%; margin-top: 1em">You can use thefollowing values for <i>capname</i>: <b>chown--numiptent</b>,<bi>dac_overridenum</bi>, [:<bi>dac_read_searchnum</b>, <b>fowner</b>,<b>fsetid</b>, <b>kill</b>, <b>setgid</b>, <b>setuid</b>,<b>setpcap</b>, <b>linux_immutable</b>,<b>net_bind_service</b>, <b>net_broadcast</b>,<b>net_admin</b>, <b>net_raw</b>, <b>ipc_lock</b>,<b>ipc_owner</b>, <b>sys_module</b>, <b>sys_rawio</b>,<b>sys_chroot</b>, <b>sys_ptrace</b>, <b>sys_pacct</b>,<b>sys_admin</b>, <b>sys_boot</b>, <b>sys_nice</b>,<b>sys_resource</b>, <b>sys_time</b>, <b>sys_tty_config</b>,<b>mknod</b>, <b>lease</b>, <b>setveid</b>, <b>ve_admin</b>.For detailed description, see <b>capabilities</bi>(7).]</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-topleft: 1em11%;"><b>WARNING--physpages</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 <bi>pages</i>setpcap[:on<i>pages</bi> fora container will most probably lead to inability to startit.]</p>
<p style==== Device access management ===="margin-left:22%;">On VSwap-enabled kernels, thislimits the amount of physical memory (RAM) available to acontainer. The barrier should be set to <b>0</b>, and thelimit to a total size of RAM that can be used used by acontainer.</p>
<p style="margin-left:1122%;margin-top: 1em"><b>For olderkernels, this is an accounting--devnodes</b>only parameter, showing theusage of RAM by this container. Barrier should be set to<i>device</i>:[<b>r</b>][<b>w</b>][<b>q0</b>]|, and limit should be set to <b>noneunlimited</b>.</p>
<p style="margin-left:2211%;">Give the container an access(<b>r</b> - read, <b>w</b> - write, <b>qswappages</b> - disk quotamanagement, <b>none</b> - no access) to a device designatedby the special file /dev/<i>devicepages</i>. Device file iscreated in a container by <b>vzctl</b>. Example[: <bi>vzctlset 777 --devnodes sdb:rwqpages</bi>.]</p>
<p style="margin-left:1122%;"><b>For VSwap--devicesenabled kernels(042stab042 or greater), this parameter limits the amount ofswap space available to a container. The barrier should bebset to </b>|<b>c</b>:<i>major</i>:<i>minor</i>|<b>all</b>:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>none0</b>, and the limit to a total size of swap thatcan be used by a container.</p>
<p style="margin-left:22%;margin-top: 1em">Give For older(pre-VSwap) kernels, the limit is used to show a totalamount of swap space available inside the container an access to. Thebarrier of this parameter is ignored. The default value isa <b>bunlimited</b>lock or <b>c</b>haracter device designated by its<i>major</i> and <i>minor</i> numbers. Device file have to, meaning total swap will be reported asbe created manually0.</p>
==== PCI device management CPU fair scheduler parameters ====
<p style="margin-left:11%;margin-top: 1em">Theseparameters control CPU usage by container. <b><br>--pci_addcpuunits</b>[<i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>funcnum</i></p>
<p style="margin-left:22%;">Give 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 an access gets. Maximum value is 500000,minimal is 8. Number is relative toweights of all the othera specified PCI devicerunning containers. All numbers are hexadecimal (asprinted by If <b>lspcicpuunits</b>(8) in the first column)are not specified,default value of 1000 is used.</p>
<p style="margin-left:1122%;margin-top: 1em">You can set CPUweight for CT0 (host system itself) as well (use <b>vzctlset 0 --pci_delcpuunits</b>[<i>domainnum</i>:]). Usually, OpenVZ initscript(<ib>bus</i>:<i>slot<etc/i>init.<i>funcd/vz</ib>) takes care of setting this.</p>
<p style="margin-left:2211%;">Delete a PCI device from the<b>--cpulimit</b>container.<i>num</i>[<b>%</b>]</p>
<p style="margin-left:22%; margin-top: 1em">Limit of CPU usage for thecontainer, in per cent. Note thatif the computer has 2 CPUs, it<b>vps-pci</b> configuration script has total of 200% CPU time. Default CPU limit is executed by<b>vzctl0</b> then configuring PCI devices. The script isusually located at <b>/usr/lib[64]/vzctl/scripts/</b>(no CPU limit).</p>
<p style==== Features management ===="margin-left:11%;"><b>--cpus</b> <i>num</i></p>
<p style="margin-left:1122%;"><b>--features</b>sets number of CPUs available<i>name</i>:<b>on</b>|<b>off</b>in the container.</p>
<p style="margin-left:2211%;">Enable or disable a specificcontainer feature. Known features are: <b>sysfs</b>,<b>nfs</b>, <b>sit</b>, <b>ipip--cpumask</b>, <bi>pppcpus</bi>,|<b>ipgre</b>, <b>bridgeauto</b>, | <b>nfsdall</b>.</p>
<p style==== Apply config ===="margin-left:22%;">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>--nodemask</b> option, value of <b>auto</b> assigns allCPUs from the specified NUMA node to a container.</p>
<p style="margin-left:11%;"><b>--applyconfignodemask</b><i>namenodes</i>| <b>all</b></p>
<p style="margin-left:22%;">Read container parameters fromSets list of allowed NUMA nodesfor the container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>name</i><tt>.conf-sample</tt>,Input format is the same as forand apply them, if <b>--savecpumask</b> option specified save tothe container config file. The following parameters are notchanged: Note that <b>HOSTNAME</b>, <b>IP_ADDRESS--nodemask</b>,must be usedwith the <b>OSTEMPLATE</b>, <b>VE_ROOT</b>, and<b>VE_PRIVATE--cpumask</b>option.</p>
<p style="margin-left:11%;"><b>--applyconfig_map</b><i>group</i></p>=== Memory output parameters ====
<p style="margin-left:2211%;margin-top: 1em">Apply container configForVSwap-enabled kernels (042stab042 or greater), thisparameters selected by <i>group</i>parameter is ignored. Now For older kernels, it controls the only possiblevalue for <i>group<output of /proc/i> is meminfo inside a container. <b>name</bbr>: to restore containername based on <b>NAME--meminfo none</b> variable in containerconfiguration file.</p>
<p style==== I"margin-left:22%;">No /proc/meminfo virtualization(the same as on host system).</O priority management ====p>
<p style="margin-left:11%;"><b>--iopriomeminfo</b><i>prioritymode</i>:<i>value</i></p>
<p style="margin-left:22%;">Assigns I/O priority toConfigure total memory outputin a container. <i>Priority</i> range Reported free memory is <b>0-7</b>evaluatedaccordingly to the mode being set. The greaterReported swap is<i>priority</i> is, evaluated according to the more time for I/O activity containerhas. By default each container has <i>priority</i> settings of<b>4--swappages</b>parameter.</p>
<p style=== Checkpointing and restore ==="margin-left:22%; margin-top: 1em">You can use thefollowing modes for <i>mode</i>: <br>&bull; <b>pages</b>:<i>value</i> - sets total memory inpages; <br>&bull; <b>privvmpages</b>:<i>value</i> - sets total memoryas <b>privvmpages</b> * <i>value</i>.</p>
<p style="margin-left:22%; margin-top: 1em">Checkpointing Default is a feature ofOpenVZ kernel which allows to save a complete state of arunning container, and to restore it later<b>privvmpages:1</b>.</p>
<p style="margin-left:11%;"><b>chkpnt</b> <i>CTID</i>[<b>--dumpfile</b> <i>name</i>]</p>=== Netfilter (iptables) control parameters ====
<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>--dumpfilenetfilter&nbsp;disabled</b> is not set,default dump file name |<b>stateless</vz/dump/Dump.b>|<b>stateful</b>|<ib>CTIDfull</ib> isused.</p>
<p style="margin-left:1122%;"><b>restore<Restrict access tonetfilter/b> <i>CTID</i>iptables modules for a container. This option[replaces obsoleted <b>--dumpfileiptables</b> <i>name</i>].</p>
<p style="margin-left:1722%;margin-top: 1em">This command restores aNote thatchanging this parameter requires container from the dump file created by the restart, soconsider using <b>chkpnt--setmode</b>commandoption.</p>
<p style=== Performing container actions ==="margin-left:22%; margin-top: 1em">The followingarguments can be used: <b><br>&bull; disabled</b></p>
<p style="margin-left:1132%;"><b>create</b> <i>CTID</i>[<b>--ostemplate</b> <i>name</i>] [<b>--config</b><i>name</i>] [<b>--private</b> <i>path</i>] <br>[<b>--root</b> <i>path</i>] [<b>--ipadd</b> <i>addr</i>][<b>--hostname</b> <i>name</i>]no modules are allowed</p>
<p style="margin-left:1722%;">Creates a new container area.This operation should be done once, before the first startof the container.<b>&bull; stateless</b></p>
<p style="margin-left:1732%; margin-top: 1em">If theall modules except NAT and<b>--config</b> option is specified, values from exampleconfiguration file<b>/etc/vz/conf/ve-</b><conntracks are allowed (i>name</i><b>.conf-sample</b> areput into the container configuration filee. If filter and mangle); this containeris theconfiguration file already exists, it will be removed.default</p>
<p style="margin-left:1722%; 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&bull; stateful</b>, which willbe substituted with the numeric CT ID.</p>
<p style="margin-left:1732%; margin-top: 1em">You can use<b>--private</b> <i>path</i> option to set the path todirectory in which all the files and directories specific tothis very container modules except NAT 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>, which will be substituted withthe numeric CT ID.allowed</p>
<p styletable width="margin-left:17100%; margin-top: 1em" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0">You can use<btr valign="top" align="left">--ipadd</btd width="22%"> <i>addr</itd> option to assign an IP address toa container. Note that this option can be used multipletimes.</ptd width="9%">
<p style="margin-left:17%; margin-top: 1em">You can use<b>--hostname&bull; full</b> <i/p>name</itd> option to set a host name fora container.<td width="1%"></ptd><td width="36%">
<p style="margin-left:11%;">all modules are allowed<b/p>destroy</btd><td width="32%"> |<b/td>delete</btr></ptable>
<p style="margin-left:1711%;">Removes a container private<b>--iptables</b>area by deleting all files<i>name</i>[<b>, directories and theconfiguration file of this container</b>...]</p>
<p style="margin-left:1122%;"><b>startNote</b> [<b>--wait</b>]this option is[obsoleted, <b>--forcenetfilter</b>]should be used instead.</p>
<p style="margin-left:1722%;margin-top: 1em">Mounts (if necessary) andAllow to usestarts a container. Unless the functionality of <bi>--waitname</bi> option isiptables module inside thespecified, container. Multiple comma-separated <bi>vzctlname</bi> will return immediately; otherwises can bean attempt to wait till the default runlevel is reached willbe made by <b>vzctl</b>specified.</p>
<p style="margin-left:1722%; margin-top: 1em">SpecifyThe defaultlist of enabled iptables modules is defined by the<b>--forceIPTABLES</b> if you want to start a container which isdisabled (see variable in [[Man/vz.conf.5|<b>--disabledvz.conf</b>(5)]].</p>
<p style="margin-left:1722%; margin-top: 1em">Note that thisYou can use thefollowing values for <i>name</i>: <b>iptable_filter</b>,command can lead to execution of <b>premountiptable_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>, <b>iptable_nat</b>,<b>mountip_nat_ftp</b> and , <b>startip_nat_irc</b> action scripts (see , <b>ipt_REDIRECT</b>ACTION,SCRIPTS<b>xt_mac</b>, <b>ipt_recent</b>, <b>ipt_owner</b> below).</p>
==== Network devices control parameters ==== <p style="margin-left:11%;"><b>stop--netdev_add</b> [<bi>--fastname</bi>]</p>
<p style="margin-left:1722%;">Stops and unmounts a container.move network device from theNormally, <b>halt</b>(8) is executed inside host system to a specified 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>
<p style="margin-left:1711%; margin-top: 1em">Note that thiscommand can lead to execution of <b>stop</b>, <b>umount--netdev_del</b>and <b>postumount</bi> action scripts (see <b>ACTIONSCRIPTSname</bi> below).</p>
<p style="margin-left:1122%;"><b>restart</b> [<b>--wait</b>]delete network device from a[<b>--force</b>] [<b>--fast</b>]specified container</p>
<p style="margin-left:17%;">Restarts a container, i.e.stops it if it is running, and starts again. Accepts all the<b>start</b> and <b>stop</b> options.</p>=== Disk quota parameters ====
<p style="margin-left:1711%; margin"><b>-top: 1em"-diskquota yes</b>Note that thiscommand can lead to execution of some action scripts (see|<b>ACTION SCRIPTSno</b> below).</p>
<p style="margin-left:1122%;">allows to enable or disabledisk quota for a container. By default, a global value(<b>statusDISK_QUOTA</b>) from [[Man/vz.conf.5|<b>vz.conf</b>(5)]] is used.</p>
<p style="margin-left:1722%;margin-top: 1em">Shows a container status. ThisNote that thisparameter is a line with five or six words, separated by spacesignored for <b>ploop</b> layout.</p>
<p style="margin-left:1711%; margin-top: 1em">First word isliterally <b>CTID--diskspace</b>.<i>num</i>[:<i>num</i>]</p>
<p style="margin-left:1722%; margin-top: 1em">Second word isthe numeric For <ib>CT IDsimfs</ib>layout, setssoft and hard disk quota limits. First parameter is softlimit, second is hard limit.</p>
<p style="margin-left:1722%; margin-top: 1em">Third word isshowing whether this container exists or not, it can beForeither <b>existploop</b> or layout, initiates the procedure of resizing theploop image file to the new size. Since there is nosoft/hard limit concept in ploop, second <bi>deletednum</bi>, ifspecified, is ignored.</p>
<p style="margin-left:1722%; margin-top: 1em">Fourth word By default,ploop resize isdone online, i.e. on a mounted ploop. Thisshowing the status is a preferred way of the doing resize. Although, in a rare casea container filesystemwas using lots of disk space and should now beresized to a much smaller size, it can an offline resize might beeither more appropriate. In this case, make sure the container isstopped and unmounted and use additional<b>mounted--offline-resize</b> or <b>unmounted</b>.option</p>
<p style="margin-left:1722%; margin-top: 1em">Fifth wordNote that ploopshows if the resize is NOT performed on container is runningstart, it can be eitherso forconsistency <b>running--diskspace</b> or must be used together with<b>down--save</b>flag.</p>
<p style="margin-left:1722%; margin-top: 1em">Sixth wordSuffixes<b>G</b>, ifexists<b>M</b>, is <b>suspendedK</b>. It appears if both a containerand its dump file exist can also be specified (see <b>chkpntResource limits</b>section for more info on suffixes).If suffix is not specified, value is in kilobytes.</p>
<p style="margin-left:1711%; margin"><b>--topdiskinodes</b><i>num</i>[: 1em"<i>num</i>This commandcan also be usable from scripts.]</p>
<p style="margin-left:1122%;"><b>mount</b>sets soft and hard disk quotalimits, in i-nodes. First parameter is soft limit, second ishard limit.</p>
<p style="margin-left:1722%;margin-top: 1em">Mounts container private area.Note that this command can lead to execution of<b>premount</b> and <b>mount</b> action scripts (seeparameter is ignored for <b>ACTION SCRIPTSploop</b> below)layout.</p>
<p style="margin-left:11%;"><b>umount--quotatime</b><i>seconds</i></p>
<p style="margin-left:1722%;">Unmounts container privatesets quota grace period.area. Note that this command can lead Container is permitted to execution ofexceed its soft limits for the<b>umount</b> and <b>postumount</b> action scripts (seegrace period, but once it has expired, the soft limit is<b>ACTION SCRIPTS</b> below)enforced as a hard limit.</p>
<p style="margin-left:1722%; margin-top: 1em">Note thatthisparameter is ignored for <b>stopploop</b> does <b>umount</b> automaticallylayout.</p>
<p style="margin-left:11%;"><b>quotaon--quotaugidlimit</b> <i>ctidnum</i></p>
<p style="margin-left:1722%;">Turn Enables or disablesin-container per-user and per-group disk quota onquotas. Not thatIf thevalue is set to <b>mount0</b> or not set, disk quotas inside thecontainer is disabled and <b>start</b> does that automaticallynot accounted.</p>
<p style="margin-left:1122%;margin-top: 1em">For<b>quotaoffsimfs</b> <i>ctid<layout containers, non-zero value sets maximumnumber of user/i>group IDs for which disk quota isaccounted.</p>
<p style="margin-left:1722%;margin-top: 1em">Turn disk quota off. Not thatFor<b>umountploop</b> and <b>stop<layout containers, any non-zero value enablesdisk quota inside the container; the number of user/b> does that automaticallygroupIDs used by disk quota is not limited by OpenVZ.</p>
<p style="margin-left:1122%;margin-top: 1em">Note thatenabling or disabling in-container disk quotas requirescontainer restart, so consider using <b>quotainit--setmode</b><i>ctid</i>option.</p>
<p style="margin-left:17%;">Initialize disk quota (i.e. run<b>vzquota init</b>) with the parameters taken from the CTconfiguration file [[Man/ctid.conf.5|<b>ctid.conf</b>(5)]].</p>=== Capability option ====
<p style="margin-left:11%;"><b>exec--capability</b> <i>CTIDcommandcapname</i>:<b>on</b>|<b>off</b>[<b>,</b>...]</p>
<p style="margin-left:1722%;">Executes <i>command</i> in Sets a capability for acontainer. Environment variables are not set inside thecontainer. Signal handlers may differ from default settings.If <i>command</i> is <b>Multiple comma-</b>, commands are read fromseparated capabilities can bestdinspecified.</p>
<p style="margin-left:1122%;margin-top: 1em">Note thatsetting a capability when the container is running does nottake immediate effect; restart the container in order forthe changes to take effect (consider using <b>exec2--setmode</b> <i>CTIDcommand</i>option).</p>
<p style="margin-left:1722%;margin-top: 1em">The same as <b>exec</b>A container hasthe default set of capabilities, butthus any operation onreturn code capabilities is that of <i>command</i>&quot;logical AND&quot; with the defaultcapability mask.</p>
<p style="margin-left:1122%;margin-top: 1em">You can use thefollowing values for <i>capname</i>: <b>chown</b>,<b>dac_override</b>, <b>dac_read_search</b>, <b>fowner</b>,<b>fsetid</b>, <b>kill</b>, <b>setgid</b>, <b>setuid</b>,<b>setpcap</b>, <b>linux_immutable</b>,<b>net_bind_service</b>, <b>net_broadcast</b>,<b>net_admin</b>, <b>net_raw</b>, <b>ipc_lock</b>,<b>ipc_owner</b>, <b>sys_module</b>, <b>sys_rawio</b>,<b>sys_chroot</b>, <b>sys_ptrace</b>, <b>sys_pacct</b>,<b>sys_admin</b>, <b>sys_boot</b>, <b>sys_nice</b>,<b>sys_resource</b>, <b>sys_time</b>, <b>sys_tty_config</b>,<b>runscriptmknod</b> , <b>lease<i/b>, <b>setveid</b>, <b>ve_admin</b>CTID.scriptFor detailed description, see <b>capabilities</ib>(7).</p>
<p style="margin-left:1722%;margin-top: 1em">Run specified shell script inthe container. Argument <ib>scriptWARNING</ib> is a file on the host:system which contents is read by vzctl and executed in thecontext setting some of the container. For a running container, thecommand jumps into the container and executes the script.those capabilities may have far reachingFor a stopped containersecurity implications, so do not do it enters the container, mountsunless you know whatcontainer&rsquo;s root filesystem, executes the script, andunmounts CT rootyou are doing. In the latter case, the container is notreally started, no file systems other than root (such asAlso note that setting <b>/procsetpcap:on</b>) are mounted, no startup scripts are executedforetc. Thus the environment in which the script is running isa container will most probably lead to inability to startfar from normal and is only usable for very basicoperationsit.</p> ==== Device access management ====
<p style="margin-left:11%;"><b>enter--devnodes</b> <i>device</i>:[<b>--execr</b>][<ib>commandw</ib> ][<ib>argq</ib> ...]]|<b>none</b></p>
<p style="margin-left:1722%;">Enters into a Give the container an access(giving<b>r</b> - read, <b>w</b> - write, <b>q</b> - disk quotaa container&rsquo;s root shellmanagement, <b>none</b> - no access). This option is to a back-doordevice designatedfor host root onlyby the special file /dev/<i>device</i>. The proper way to have CT root shell Device file isto use created in a container by <b>sshvzctl</b>(1).Example:</p>
<p pre style="margin-left:1722%; margin-top: 1em">Option<b> vzctl set 777 --exec</b> is used to run <i>command</i> with argumentsafter entering into container. This is useful if command tobe run requires a terminal (so <b>vzctl exec</b> can not beused) and for some reason you can not use <b>ssh</b>(1).devnodes sdb:rwq</ppre>
<p style="margin-left:1711%; margin-top: 1em">You need to logout manually from the shell to finish session (even if youspecified <b>--execdevicesb</b>|<b>c</b>:<i>major</i>:<i>minor</i>|<b>all</b>:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>none</b>).</p>
<p style=== Other options ==="margin-left:22%;">Give the container an access toa <b>b</b>lock or <b>c</b>haracter device designated by its<i>major</i> and <i>minor</i> numbers. Device file have tobe created manually.</p>
<p style="margin-left:11%;"><b>--help</b></p>=== PCI device management ====
<p style="margin-left:1711%;">Prints help message with a<b>--pci_add</b>brief list of possible options[<i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>func</i></p>
<p style="margin-left:1122%;">Give the container an access toa specified PCI device. All numbers are hexadecimal (asprinted by <b>--versionlspci</b>(8) in the first column).</p>
<p style="margin-left:1711%;">Prints <b>vzctl--pci_del</b>version[<i>domain</i>:]<i>bus</i>:<i>slot</i>.<i>func</i></p>
<p style== ACTION SCRIPTS =="margin-left:22%;">Delete a PCI device from thecontainer.</p>
<p style="margin-left:1122%; margin-top: 1em">Note that<b>vzctlvps-pci</b>configuration script is executed byhas an ability to execute user-defined scripts when aspecific <b>vzctl</b> command is run for a containerthen configuring PCI devices. Thescript isfollowing usually located at <b>vzctl</b> commands can trigger execution ofaction scripts: <b>start<usr/b>, <b>stop<libexec/b>, <b>restart<vzctl/b>,<b>mount<scripts/b> and <b>umount</b>.</p>
<p style="margin-left:11%; margin-top: 1em">Action scriptsare located in the <b>/etc/vz/conf/</b> directory. There areglobal and per-CT scripts. Global scripts have a literalprefix of <b>vps.</b> and are executed for all containers.Per-CT scripts have a <i>CTID</i> numeric prefix and areexecuted for the given container only.</p>=== Features management ====
<p style="margin-left:11%; margin"><b>--top: 1em"features</b>Please notescripts are executed in a host system (CT0) context, withthe exception of <i>name</i>:<b>.starton</b> and |<b>.stopoff</b> scripts[<b>,which are executed in a container context</b>...]</p>
<p style="margin-left:1122%; margin-top: 1em">The followingEnable or disable a specificaction scripts container feature. Known features are currently defined: <b>sysfs</b>,<b>nfs</b>, <b>sit</b>, <b>ipip<br/b>, <b>ppp</b>,vps.premount<b>ipgre</b>, <ib>CTIDbridge</ib>, <b>.premountnfsd</b>. A few features canbe specified at once, comma-separated.</p>
<p style="margin-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.</p>=== Apply config ====
<p style="margin-left:11%;"><b>vps.mount--applyconfig</b>,<i>CTIDname</i><b>.mount</b></p>
<p style="margin-left:22%;">Global Read container parameters fromthe container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>name</i><tt>.conf-sample</tt>,and perapply them, if <b>-CT mount scripts-save</b> option specified save towhich are executed for a the container right after it ismountedconfig file. Otherwise they The following parameters are the same as notchanged: <b>HOSTNAME</b>, <b>IP_ADDRESS</b>,<b>OSTEMPLATE</b>, <b>.premountVE_ROOT</b>, andscripts<b>VE_PRIVATE</b>.</p>
<p style="margin-left:11%;"><ib>CTID--applyconfig_map</ib><bi>.startgroup</bi></p>
<p style="margin-left:22%;">Right after Apply container configparameters selected by <i>group</i>. Now the only possiblevalue for <i>group</i> is <b>vzctlname</b> has: to restore containerstarted a container, it executes this script name based on <b>NAME</b> variable in a containercontextconfiguration file.</p>
<p style="margin-left:11%;"><i>CTID<=== I/i><b>.stop</b></p>O scheduling ====
<p style="margin-left:2211%;">Right before <b>vzctl--ioprio</b> hasstopped a container, it executes this script in a containercontext.<i>priority</i></p>
<p style="margin-left:1122%;">Assigns disk I/O priority tocontainer. <i>Priority</i> range is <b>0-7</b>vps.umountThe greater<i>priority</bi>is,the more time for I/O activity containerhas. By default each container has <i>CTIDpriority</i>of<b>4</b>.umount</p> <p style="margin-left:11%;"><b>--iolimit</b><i>limit</i>[<b>B</b>|<b>K</b>|<b>M</b>|<b>G</b>]</p> <p style="margin-left:22%;">Assigns disk I/O bandwidthlimit for a container. Value is either a number with anoptional suffix, or a literal string <b>unlimited</b>. Valueof <b>0</b> means &quot;unlimited&quot;. By default acontainer has no I/O limit. Maximum allowed limit is 2gigabytes per second; values exceeding the limit aretruncated.</p>
<p style="margin-left:22%;margin-top: 1em">Global and per-CT umountIf no suffix isscripts which are executed for a container before it provided, the <i>limit</i> isassumed to be in megabytes perunmountedsecond. Scripts Available suffixes are executed in the host system context: <br>&bull; <b>b</b>,<b>B</b> -- bytes per second; <br>while a CT is mounted. Global script&bull; <b>k</b>, if exists<b>K</b> -- kilobytes per second; <br>&bull; <b>m</b>, is executed<b>M</b> -- megabytes per second (default);<br>first.&bull; <b>g</b>, <b>G</b> -- gigabytes per second;</p>
<p style="margin-left:11%;"><b>vps.postumount--iopslimit</b>,<i>CTIDiops</i><b>.postumount</b></p>
<p style="margin-left:22%;">Global and per-CT umountscripts which are executed Assigns IOPS limit for a container right after it , in number of input/output operations per second.Value isa number or a literal string <b>unlimited</b>.unmounted. Otherwise they are the same as Value of <b>.umount0</b>means &quot;unlimited&quot;. By default ascriptscontainer has no IOPS limit.</p>
<p style="margin-left:11%; margin-top: 1em">The environmentpassed to all the <b>*mount</b> scripts is the standardenvironment of the parent (i.e. <b>vzctl</b>) with twoadditional variables: <b>$VEID</b> == Suspending and <b>$VE_CONFFILE</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 <b>$VE_ROOT</b>, it needs to get thosefrom global and per-CT configuration files.</p>resuming ===
<p style="margin-left:11%; margin-top: 1em">Here Checkpointing is ana feature ofexample OpenVZ kernel which allows to save a complete in-kernelstate of a mount scriptrunning container, which makes host system&rsquo;s/mnt/disk available and to container(s)restore it later. Script name can either</p> be <p style="margin-left:11%;"><b>/etc/vz/conf/vps.mountsuspend</b> or|<b>/etc/vz/conf/chkpnt</b><i>CTID</i>[<b>.mount--dumpfile</b>.<i>name</i>]</p>
<pre p style="margin-left:1117%; margin-top: 1em"> # This command suspends acontainer to a dump file If one of these files does not exist then something # is really broken [ an option <b>--f dumpfile</etc/sysconfig/vz ] || exit 1b> is [ -f $VE_CONFFILE ] || exit 1not set, default dump file name # Source both files. Note the order is important. . <b>/etcvz/vzdump/vzDump.conf . $VE_CONFFILE mount -n --bind </mntb><i>CTID</disk $VE_ROOT/mnt/diski> is used.</prep>
<p style== EXIT STATUS =="margin-left:11%;"><b>resume</b>|<b>restore</b><i>CTID</i> [<b>--dumpfile</b> <i>name</i>]</p>
<p style="margin-left:1117%; margin-top: 1em">Returns 0 uponThis command restores asuccess, or an appropriate error code in case of ancontainer from the dump file created by the <b>suspend</b>error:command.</p>
<table width="100%" border="0" rules="none" frameSnapshotting ="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="4%">
<p>1</p></td><td widthstyle="7%margin-top: 1em">Snapshotting is a feature basedon checkpointing and ploop shapshots. It allows to save acomplete state of container file system. Plus, if thecontainer is running, it&rsquo;s in-memory state (as incheckpointing). Note that snapshot functionality is onlyworking for containers on ploop device.</td><td width="78%"p>
<pstyle="margin-left:11%;"><b>snapshot</b> <i>CTID</i>[<b>--id</b> <i>Failed to set a UBC parameteruuid</pi>] [<b>--name</tdb> <i>name</tri>][<b>--description<tr valign="top" align="left"/b> <i>desc</i>] <br>[<b>--skip-suspend<td width="11%"/b>] [<b>--skip-config</tdb>]<td width="4%"/p>
<pstyle="margin-left:17%;">2Creates a container snapshot,i.e. saves the current container state, including its filesystem state, running processes state, and configurationfile.</p></td> <td widthp style="7margin-left:17%; margin-top: 1em">If a containeris running, and <b>--skip-suspend</tdb>option is notspecified, a container is checkpointed and then restored,and CT memory dump becomes the part of snapshot.<td width="78%"/p>
<p>Failed to set a fair scheduler parameter</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">Unless<td width="11%"b>--skip-config</tdb>option is given, containerconfiguration file is saved to the snapshot.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">If <i>uuid</i>3is not specified, it is auto-generated. Options<b>--name</pb> and <b>--description</tdb>can be used tospecify the snapshot name and description, respectively.Name is displayed by <td width="7%"b>snapshot-list</tdb>.<td width="78%"/p>
<pstyle="margin-left:11%;"><b>snapshot-switch</b><i>Generic system errorCTID</pi> [<b>--skip-resume</tdb> | <b>--must-resume</trb>][<b>--skip-config</b>] <b><tr valign="top" align="left"br>--id</b> <td width="11%"i>uuid</tdi><td width="4%"/p>
<p>5</p></td><td widthstyle="7margin-left:17%;">Switches the container to asnapshot identified by <i>uuid</tdi>, restoring its filesystem state, configuration (if available) and its runningstate (if available).<td width="78%"/p>
<p>The running kernel is not an OpenVZ kernel (or someOpenVZ modules are not loaded)</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em"><td width="11%"b>Note thatthe current state of a container (including its file systemstate and its configuration file) is lost!</tdb><td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">6Option</pb>--skip-resume</tdb>is used to ignore a CT memory dump filein a snapshot, as a result the container will end up beingin a stopped state (same as if a snapshot has been takenwith <td width="7%"b>--skip-suspend</tdb>).<td width="78%"/p>
<p>Not enough system resources</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">If option<td width="11%"b>--must-resume</tdb>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.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Option option<b>--skip-config</b> is used to ignore the CT configurationfile in a snapshot, i.e. the current configuration file willbe left as is.</p> <p style="margin-left:11%;"><b>snapshot-delete</b><i>CTID</i> <b>--id</b> <i>uuid</i></p> <p style="margin-left:17%;">Removes a specifiedsnapshot.</p> <p style="margin-left:11%;"><b>snapshot-mount</b><i>CTID</i> <b>--id</b> <i>uuid</i> <b>--target</b><i>directory</i></p> <p style="margin-left:17%;">Mounts a snapshot specified by<i>uuid</i> to a <i>directory</i>7. Note this mount isread-only.</p> <p style="margin-left:11%;"><b>snapshot-umount</b><i>CTID</i> <b>--id</b> <i>uuid</i></tdp> <td widthp style="7margin-left:17%;">Unmounts a specifiedsnapshot.</tdp> <td widthp style="78margin-left:11%;"><b>snapshot-list</b><i>CTID</i> [<b>-H</b>] [<b>-o</b><i>field</i>[,<i>field</i>...] [<b>--id</b> <i>uuid</i>]</p> <p style="margin-left:17%;">List container&rsquo;ssnapshots.</p> <p style="margin-left:17%; margin-top: 1em">You cansuppress displaying header using <b>-H</b> option.</p>
<pstyle="margin-left:17%; margin-top: 1em">You can use the<b>ENV_CREATE-o</b> ioctl failedoption to display only the specified</pi>field</td></tri>(s). List of available fields can be obtainedusing <tr valign="top" align="left"b>-L<td width="11%"/b>option.</td><td width="4%"p>
<p>8</p></td><td width="7%"></td><td width="78%">= Performing container actions ===
<p>Command executed by <b>vzctl exec</b> returned non-zerotable width="100%" border="0" rules="none" frame="void"exit code</p></td></tr cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="49%">
<pstyle="margin-top: 1em"><b>create</b>9</p></td><td width="72%"></td>
<td width="78%">
<pstyle="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>Container is locked by another path</i>][<b>vzctl--ipadd&nbsp;</b><i>addr</i>]invocation[<b>--hostname&nbsp;</b><i>name</pi>][<b> --name&nbsp;</tdb><i>name</tri>][<tr valign="top" align="left"b>--local_uid&nbsp;</b><i>uid</i>][<b>--local_gid&nbsp;</b><i>gid</i>]</p> </td width="11%"></tdtr><td width="4%"/table>
<p>10</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">Creates a newcontainer area. This operation should be done once, beforethe first start of the container.</td><td width="78%"p>
<pstyle="margin-left:17%; margin-top: 1em">Global OpenVZ configuration file By default, anOS template denoted by <b>DEF_OSTEMPLATE</b> parameter of[[Man/vz.conf.5|<b>vz.conf</b>(5)]] notis used to create a container. This can befoundoverwritten by </pb> --ostemplate</tdb>option.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">11By default, anew container configuration file is created from a sampleconfiguration denoted by value of </pb>CONFIGFILE</tdb>parameter of [[Man/vz.conf.5|<td width="7%"b>vz.conf</tdb>(5)]]. If the containerconfiguration file already exists, it will not bemodified.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">A vzctl helper script file not foundThe value of</pb>CONFIGFILE</tdb>can be overwritten by using the</trb>--config<tr valign="top" align="left"/b><td width="11%"i>name</tdi>option. This option can not beused if the container configuration file already exists.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">A new containercan either be created using <b>simfs</b> filesystem or on a<b>ploop</b> device. The default is set by value of<b>12VE_LAYOUT</pb> parameter of [[Man/vz.conf.5|<b>vz.conf</b>(5)]] and can beoverwritten by <b>--layout</b> option. In case <b>ploop</b>is used, one can additionally specify ploop disk imageformat after a colon. Possible ploop formats are<b>expanded</b>, <b>plain</b> and <b>raw</tdb>. Default is<td width="7%"b>expanded</b>. Using value other than <b>expanded</tdb>isnot recommended and is currently not supported.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">You can use<b>Permission denied--diskspace</pb>and </tdb>--diskinodes</trb>options to<tr valign="top" align="left">specify container file system size. Note that for<td width="11%"b>ploop</tdb>layout, you will not be able to change inodesvalue later.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">If<b>13DISKSPACE</pb> is not specified either in the sampleconfiguration file used for creation or in globalconfiguration file [[Man/vz.conf.5|<b>vz.conf</b>(5)]], <b>--diskspace</tdb>parameter is required for <td width="7%"b>ploop</tdb>layout.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Suffixes<b>Capability setting failedG</pb>, <b>M</tdb>, </trb>K<tr valign="top" align="left"/b>can also be specified (see<td width="11%"b>Resource limits</tdb>section for more info onsuffixes).<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">14You can use<b>--root</pb> <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</tdb>(5)]] file).Argument can contain literal string <td width="7%"b>$VEID</tdb>, which willbe substituted with the numeric CT ID.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">You can use<b>--private</b> <i>path</i>Container configuration file 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/ctidvz.conf.5|<b>ctidvz.conf</b>(5)]] notfile). Argument can containfoundliteral string </pb> $VEID</td></trb>, which will be substituted with<tr valign="top" align="left"><td width="11%">the numeric CT ID.</td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">15You can use</pb>--ipadd</tdb><td width="7%"i>addr</tdi>option to assign an IP address toa container. Note that this option can be used multipletimes.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Timeout on You can use<b>vzctl exec--hostname</b></pi>name</td></tri>option to set a host name for<tr valign="top" align="left"><td width="11%">a container.</td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">When runningwith an upstream Linux Kernel that supports user namespaces(&gt;= 3.8), the parameters <b>--local_uid</b> and<b>16--local_gid</pb> can be used to select which <i>uid</i>and <i>gid</i> respectively will be used as a base user inthe host system. Note that user namespaces provide a 1:1mapping between container users and host users. If theseoptions are not specified, the values <b>LOCAL_UID</b> and<b>LOCAL_GID</tdb>from global configuration file[[Man/vz.conf.5|<td width="7%"b>vz.conf</b>(5)]] are used. An explicit <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="78%"/b> is ignored.</p>
<pstyle="margin-left:17%; margin-top: 1em">Error during <b>vzctl chkpntWarning:</b>use <b>--local_uid</pb>and </tdb>--local_gid</trb>with care,specially when migrating containers. In all situations, the<tr valign="top" align="left">container&rsquo;s files in the filesystem needs to be<td width="11%">correctly owned by the host-side users.</td><td width="4%"p>
<pstyle="margin-left:11%;"><b>17destroy</pb> | <b>delete</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<p>Error during <b>vzctl restore</b></p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Removes a container private<td width="11%">area by deleting all files, directories and theconfiguration file of this container.</td><td width="4%"p>
<pstyle="margin-left:11%;">18<b>start</pb> <i>CTID</tdi>[<b>--wait</b>] [<b>--force</b>] [<td width="7%"b>--skip-fsck</tdb>][<b>--skip-remount<td width="78%"/b>]</p>
<pstyle="margin-left:17%;">Error from <b>setluidMounts (if necessary)andstarts a container. Unless </b> syscall--wait</pb>option isspecified, </tdb>vzctl</trb>will return immediately; otherwise<tr valign="top" align="left">an attempt to wait till the default runlevel is reached willbe made by <td width="11%"b>vzctl</tdb>.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">20Specify</pb>--force</tdb>if you want to start a container which isdisabled (see <td width="7%"b>--disabled</tdb>).<td width="78%"/p>
<p>Invalid command line parameter</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>21</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">Invalid value for Note that thiscommand line parametercan 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%;">22<b>stop</pb> <i>CTID</tdi>[<b>--fast<td width="7%"/b>] [<b>--skip-umount</tdb>]<td width="78%"/p>
<pstyle="margin-left:17%;">Container root directory Stops a container and unmountsit (unless <b>VE_ROOT--skip-umount</b>is given) not set. 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>23vzctl 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">Container private directory (Note that thiscommand can lead to execution of <b>VE_PRIVATEstop</b>) notset, <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%;">24<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 template directory (Restarts a container, i.e.stops it if it is running, and starts again. Accepts all the<b>TEMPLATEstart</b>) notsetand </pb> stop</tdb>options.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<p>28</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">Note that thiscommand can lead to execution of some action scripts (see<b>ACTION SCRIPTS</tdb>below).<td width="78%"/p>
<pstyle="margin-left:11%;">Not all required UBC parameters are set, unable to startcontainer</pb> status</tdb></tri>CTID<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<p>29</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>OS template is not specified, unable to createcontainer</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>31</p></td><td widthstyle="7margin-left:17%; margin-top: 1em">Second word isthe numeric <i>CT ID</tdi>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Container Third word isshowing whether this container exists or not running, 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">32Fourth word isshowing the status of the container filesystem, it can beeither </pb>mounted</tdb>or <td width="7%"b>unmounted</tdb>.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Container already Fifth 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">33Sixth 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>Unable to stop container</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%;">34</pb>mount</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Unable Mounts container private area.Note that this command can lead to add IP address to containerexecution of</pb>premount</tdb>and </trb>mount<tr valign="top" align="left"/b>action scripts (see<td width="11%"b>ACTION SCRIPTS</tdb>below).<td width="4%"/p>
<pstyle="margin-left:11%;">40</pb>umount</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Unmounts container privatearea. Note that this command can lead to execution of<b>umount</b> and <b>Container not mountedpostumount</pb> action scripts (see<b>ACTION SCRIPTS</tdb>below).</trp> <tr valignp style="margin-left:17%; margin-top" align="left: 1em">Note that<td width="11%"b>stop</b> does <b>umount</tdb>automatically.<td width="4%"/p>
<pstyle="margin-left:11%;">41<b>convert</pb> <i>CTID</tdi>[<td width="7%"b>--layoutploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b>|<b>raw</tdb>}]]<td width="78%"/p>
<p>Container already mounted</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Convert CT private area toreside on a ploop device (available in kernel version<td width="11%">042stab052.8 and greater). Conversion should be performedwhen a container is stopped, plus disk space quota should beset.</td><td width="4%"p>
<pstyle="margin-left:11%;">43</pb>compact</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<p>Container private area not found</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Compact container image. This<td width="11%">only makes sense for ploop layout.</td><td width="4%"p>
<pstyle="margin-left:11%;">44</pb>quotaon</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Container private area already existsTurn disk quota on. Not that</pb>mount</tdb>and </trb>start<tr valign="top" align="left"><td width="11%"/b>does that automatically.</td><td width="4%"p>
<pstyle="margin-left:11%;">46</pb>quotaoff</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Turn disk quota off. Not enough disk spacethat</pb>umount</tdb>and </trb>stop<tr valign="top" align="left"><td width="11%"/b>does that automatically.</td><td width="4%"p>
<pstyle="margin-left:11%;">47</pb>quotainit</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Bad/broken container Initialize disk quota (i.e. run<b>/sbin/vzquota init</b> or) with the parameters taken from the CTconfiguration file [[Man/ctid.conf.5|<b>/bin/shctid.conf</b> not found(5)]].</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%">
<pstyle="margin-left:11%;">48</pb>exec</tdb><td width="7%"i>CTIDcommand</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Unable to create a new container private areaExecutes </pi>command</tdi>in acontainer. Environment variables are not set inside thecontainer. Signal handlers may differ from default settings.If </tri>command<tr valign="top" align="left"/i>is <td width="11%"b>-</tdb>, commands are read fromstdin.<td width="4%"/p>
<pstyle="margin-left:11%;">49</pb>exec2</tdb><td width="7%"i>CTIDcommand</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Unable to create a new container root area</p>The same as </tdb>exec</trb>, butreturn code is that of <tr valign="top" align="left"i>command<td width="11%"/i>.</td><td width="4%"p>
<pstyle="margin-left:11%;">50</pb>runscript</tdb><td width="7%"i>CTIDscript</tdi><td width="78%"/p>
<p>Unable to mount container</p></td></tr><tr valign="top" alignstyle="margin-left:17%;">Run specified shell script inthe container. Argument <td width="11%"i>script</tdi>is a file on the host<td width="4%">system 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<pb>51</p>proc</tdb>) are mounted, no startup scripts are executedetc. Thus the environment in which the script is running isfar from normal and is only usable for very basic<td width="7%">operations.</td><td width="78%"p>
<pstyle="margin-left:11%;">Unable to unmount container<b>enter</pb> <i>CTID</tdi>[<b>--exec</trb><tr valign="top" align="left"i>command</i>[<td width="11%"i>arg</tdi>...]]<td width="4%"/p>
<p>52</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">Unable to delete a containerOption<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>
<pstyle="margin-left:17%; margin-top: 1em">You need to logout manually from the shell to finish session (even if youspecified <b>53--exec</pb>).</tdp> <td widthp style="7margin-left:11%;"><b>console</b> <i>CTID</tdi>[<i>ttynum<td width="78%"/i>]</p>
<pstyle="margin-left:17%;">Container private area not existAttach to a container console.Optional <i>ttynum</pi> argument is tty number (such as<b>4</tdb> for <b>tty4</trb>), default is <b>1<tr valign="top" align="left"/b>which is usedfor container&rsquo;s <td width="11%"b>/dev/console</tdb>.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">60Note theconsoles are persistent, meaning that: </pbr>&bull; it can be attached to even if the container is notrunning; </tdbr>&bull; there is no automatic detachment upon the containerstop; <td width="7%"br>&bull; detaching from the console leaves anything running inthis console as is.</td><td width="78%"p>
<p><b>vzquota on</b> failed</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">The followingescape sequences are recognized by <td width="11%"b>vzctl console</tdb>.Note that these sequences are only recognized at thebeginning of a line.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">61&bull;</pb>Esc</tdb>then <td width="7%"b>.</tdb>to detach from the console.<td width="78%"/p>
<pstyle="margin-left:17%; margin-top: 1em">&bull;<b>vzquota initEsc</b> failedthen </pb>!</td></trb>to kill anything running on the<tr valign="top" align="left">console (SAK). This is helpful when one expects a login<td width="11%">prompt but there isn&rsquo;t one.</td><td width="4%"p>
<p>62</p></td><td width="7%"></td><td width="78%">= Other options ===
<pstyle="margin-left:11%;"><b>vzquota setlimit--help</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%">
<p>63</p></td><td widthstyle="7margin-left:17%;">Prints help message with abrief list of possible options.</td><td width="78%"p>
<pstyle="margin-left:11%;">Parameter <b>DISKSPACE--version</b> not set</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%">
<p>64</p></td><td widthstyle="7margin-left:17%;">Prints <b>vzctl</tdb>version.<td width="78%"/p>
<p>Parameter <b>DISKINODES</b> not set</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>66vzctl</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">Action scriptsare located in the <b>vzquota off/etc/vz/conf/</b> faileddirectory. There areglobal and per-CT scripts. Global scripts have a literalprefix of </pb>vps.</tdb>and are executed for all containers.Per-CT scripts have a </tri>CTID<tr valign="top" align="left"/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">67Please 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">ugid quota not initializedThe 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>
<pstyle="margin-left:22%;">71Global 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.</p></td> <td widthp style="7margin-left:11%;"><b>vps.mount</tdb>,<td width="78%"i>CTID</i><b>.mount</b></p>
<p>Incorrect IP address format</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Global and per-CT mount scriptswhich are executed for a container right after it ismounted. Otherwise they are the same as <td width="11%"b>.premount</tdb>scripts.<td width="4%"/p>
<pstyle="margin-left:11%;">74</pi>CTID</tdi><td width="7%"b>.start</tdb><td width="78%"/p>
<p>Error changing password</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Right after <td width="11%"b>vzctl</tdb>hasstarted a container, it executes this script in a containercontext.<td width="4%"/p>
<pstyle="margin-left:11%;">78</pi>CTID</tdi><td width="7%"b>.stop</tdb><td width="78%"/p>
<p style="margin-left:22%;">Right before <b>vzctl</b> hasstopped a container, it executes this script in a containercontext.</p> <p style="margin-left:11%;"><b>vps.umount</b>,<i>CTID</i><b>.umount</b></p> <p style="margin-left:22%;">Global and per-CT umountscripts which are executed for a container before it isunmounted. Scripts are executed in the host system context,while a CT is mounted. Global script, if exists, is executedfirst.</p> <p style="margin-left:11%;"><b>vps.postumount</b>,<i>CTID</i><b>.postumount</b></p> <p style="margin-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</b>scripts.</p> <p style="margin-left:11%; margin-top: 1em">The environmentpassed to all the <b>*mount</b> scripts is the standardenvironment of the parent (i.e. <b>vzctl</b>) with twoadditional variables: <b>$VEID</b> and <b>$VE_CONFFILE</b>.The first one holds the ID of the container, and the secondone holds the full path to the container configuration file.If the script needs to get other CT configurationparameters, such as <b>$VE_ROOT</b>, it needs to get thosefrom global and per-CT configuration files.</p> <p style="margin-left: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>.mount</b>.</p> <pre style="margin-left:11%; margin-top: 1em"> # If one of these files does not exist then something # is really broken [ -f /etc/vz/vz.conf ] || exit 1 [ -f $VE_CONFFILE ] || exit 1 # Source both files. Note the order is important. . /etc/vz/vz.conf . $VE_CONFFILE SRC=/mnt/disk DST=/mnt/disk mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC</pre> == EXIT STATUS == <p style="margin-left:11%; margin-top: 1em">Returns 0 uponsuccess, or an appropriate error code in case of anerror:</p> <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>1</p></td><td width="7%"></td><td width="78%"> <p>Failed to set a UBC parameter</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>2</p></td><td width="7%"></td><td width="78%"> <p>Failed to set a fair scheduler parameter</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>3</p></td><td width="7%"></td><td width="78%"> <p>Generic system error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>5</p></td><td width="7%"></td><td width="78%"> <p>The running kernel is not an OpenVZ kernel (or someOpenVZ modules are not loaded)</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>6</p></td><td width="7%"></td><td width="78%"> <p>Not enough system resources</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>7</p></td><td width="7%"></td><td width="78%"> <p><b>ENV_CREATE</b> ioctl failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>8</p></td><td width="7%"></td><td width="78%"> <p>Command 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>9</p></td><td width="7%"></td><td width="78%"> <p>Container is locked by another <b>vzctl</b>invocation</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>10</p></td><td width="7%"></td><td width="78%"> <p>Global 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>Permission denied</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>13</p></td><td width="7%"></td><td width="78%"> <p>Capability setting failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>14</p></td><td width="7%"></td><td width="78%"> <p>Container configuration file [[Man/ctid.conf.5|<b>ctid.conf</b>(5)]] notfound</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>15</p></td><td width="7%"></td><td width="78%"> <p>Timeout on <b>vzctl exec</b></p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>16</p></td><td width="7%"></td><td width="78%"> <p>Error 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>79148</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 container IO parameters (<b>--devices</b> or<b>--devnodes</b>ioprio)</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>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