Changes

Jump to: navigation, search

Man/vzctl.8

16,065 bytes added, 18:21, 23 April 2015
Automated import of articles *** existing text overwritten ***
<p>[<i>flags</i>] <b>start</b> <i>CTID</i> [<b>--wait</b>]
[<b>--force</b>] [<b>--skip-fsck</b>][<b>--skip-remount</b>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>stop</b> <i>CTID</i>[<b>--fast</b>][<b>--fastskip-umount</b>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<p>[<i>flags</i>] <b>restart</b> <i>CTID</i>
[<b>--wait</b>] [<b>--force</b>] [<b>--fast</b>][<b>--skip-fsck</b>] [<b>--skip-remount</b>]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>chkpntsuspend</b> | <b>restoreresume</b><i>CTID</i> [<b>--dumpfile&nbsp;</b><i>name</i>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>snapshot</b> <i>CTID</i>
[<b>--id&nbsp;</b><i>uuid</i>]
[<b>--name&nbsp;</b><i>name</i>]
[<b>--description&nbsp;</b><i>desc</i>][<b>--skip-suspend</b>] [<b>--skip-config</b>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>snapshot-switch</b> <i>CTID</i>[<b>--skip-resume</b> |<b>--must-resume</b>][<b>snapshot-delete -skip-config</b>] <b>--id</b> <i>uuid</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>snapshot-listdelete</b> <i>CTID</i><b>--id</b> <i>uuid</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>setsnapshot-mount</b> <i>CTID --parameter value</i>[...] [<b>--saveid</b>] [<bi>--forceuuid</bi>][<b>--setmode&nbsp;restarttarget</b>|<bi>ignoredir</bi>]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>destroy</b> | <b>delete</b> |<b>mount</b> | <b>snapshot-umount</b> | <bi>statusCTID</bi> |<b>quotaon</b> | <b>quotaoff</b> | <b>quotainit</b> |<b>console--id</b> <i>CTIDuuid</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>convertsnapshot-list</b> <i>CTID</i>[<b>--layout&nbsp;ploopH</b>] [<b>:-o</b>{<bi>field</i>[,<i>expandedfield</bi>|...][<b>plain--id</b>|<bi>rawuuid</bi>}]]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>execset</b> | <i>CTID --parameter value</i>[...] [<b>exec2--save</b> ] [<b>--force<i/b>CTID]command[<b>--setmode&nbsp;restart</ib> [|<ib>argignore</ib> ...]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>enterset</b> <i>CTID</i>[<b>--exec&nbsp;reset_ub</b><i>command&nbsp;</i>[<i>arg&nbsp;</i>...]]</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>runscriptdestroy</b> | <b>delete</b> |<b>mount</b> | <b>umount</b> | <b>status</b> |<b>quotaon</b> | <b>quotaoff</b> | <b>quotainit</b><i>CTID script</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">
<p>[<i>flags</i>] <b>--helpconsole</b> | <bi>CTID</i>[<i>--versionttynum</bi>]</p></td></tr><tr valign="top" align="left"><td width="11%"></tabletd><td width="7%">
<p><b>vzctl</b></p></td><td width="2%"></td><td width= DESCRIPTION =="80%">
<p style="margin>[<i>flags</i>] <b>convert</b> <i>CTID</i>[<b>--left:11%layout&nbsp; margin-topploop</b>[<b>: 1em"</b>{<b>expanded</b>|<b>plain</b>Utility|<b>vzctlraw</b> runs on the host system (otherwise known as}]]</p> </td></tr>Hardware Node, or HN) and performs direct manipulations with<tr valign="top" align="left">containers (CTs).<td width="11%"></ptd><td width="7%">
<p style="margin-left:11%; margin-top: 1em">Containers canbe referred to by either numeric <ib>vzctl</b></p>CTID</itd> or by name (see<btd width="2%">--name</btd> option). Note that CT ID &lt;= 100 arereserved for OpenVZ internal purposes.</ptd width="80%">
<p>[<i>flags</i>] <b>compact</b> <i>CTID</i></p></td></tr><tr valign="top" align= OPTIONS "left"><td width="11%"></td><td width="7%">
<p><b>vzctl</b></p></td><td width="2%"></td><td width== Flags ==="80%">
<p style="margin-top: 1em">These [<i>flags come before a</i>] <b>exec</b> | <b>exec2</b> <i>CTIDcommand, and can be used with any command</i> [<i>arg</i> ... They affect]</p></td></tr>logging to console (terminal) only, and do not affect<tr valign="top" align="left">logging to a log file.<td width="11%"></ptd><td width="7%">
<p style="margin-left:11%;"><b>--quietvzctl</b></p></td><td width="2%"></td><td width="80%">
<p style>[<i>flags</i>] <b>enter</b> <i>CTID</i>[<b>--exec&nbsp;</b><i>command&nbsp;</i>[<i>arg&nbsp;</i>...]]</p> </td></tr><tr valign="top" align="margin-left:17"><td width="11%;">Disables output. Note that</td>scripts run by vzctl are still able to produce someoutput.</ptd width="7%">
<p style="margin-left:11%;"><b>--verbosevzctl</b></p></td><td width="2%"></td><td width="80%">
<p style="margin-left:17%;">Increments logging level upfrom the default. Can be used multiple times. Default valueis set to the value of [<bi>VERBOSEflags</bi> parameter in theglobal configuration file [[Man/vz.conf.5|] <b>vz.confrunscript</b>(5)]], or to <bi>0CTID script</bi>if not set by <b/p>VERBOSE</btd> parameter.</p> === Setting container parameters === <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="47%">
<p style="margin-top: 1em"><b>setvzctl</b></p></td>
<td width="2%"></td>
<td width="8380%"> <p><b>--help</b> | <b>--version</b></p></td></tr></table>
== DESCRIPTION == <p style="margin-left:11%; margin-top: 1em"><i>CTID</i>Utility[<b>--onboot&nbsp;yesvzctl</b>|<b>noruns on the host system (otherwise known asHardware Node, or HN) and performs direct manipulations withcontainers (CTs).</bp>][<b>p style="margin-left:11%; margin-bootorder&nbsp;</btop: 1em">Containers canbe referred to by either numeric <i>numberCTID</i>]or by name (see[<b>--root&nbsp;name</b><i>path</i>]option). Note that CT ID &lt;= 100 arereserved for OpenVZ internal purposes. A numeric ID should[not be more than <b>--private&nbsp;2147483644</b>.<i/p>path</i>][== OPTIONS == === Flags === <bp style="margin-top: 1em">--userpasswd&nbsp;These flags come before acommand, and can be used with any command. They affectlogging to console (terminal) only, and do not affectlogging to a log file.</bp> <i>user</i>p style="margin-left:<i11%;">pass</i>][<b>--disabled&nbsp;yesquiet</b>|<b/p>no</b>][<b>p style="margin--name&nbspleft:17%;</b"><i>nameDisables output. Note thatscripts run by vzctl are still able to produce someoutput.</ip>][<p style="margin-left:11%;"><b>--description&nbsp;verbose</b><i/p>string </ip style="margin-left:17%;">]Increments logging level upfrom the default. Can be used multiple times. Default value[is set to the value of <b>--ipadd&nbsp;<VERBOSE</b>parameter in theglobal configuration file [[Man/vz.conf.5|<ib>addrvz.conf</ib>(5)][], or to <b>--ipdel&nbsp;0</b>if not set by <ib>addrVERBOSE</i>|<b>allparameter.</bp>][<b>--hostname&nbsp;</b><i>name</i>][=== Setting container parameters === <b>--nameserver&nbsp;</btable width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><i>addr</itr valign="top" align="left">][<btd width="11%">--searchdomain&nbsp;</btd><itd width="4%">name </ip style="margin-top: 1em">][<b>--netif_add&nbsp;set</b><i/p>dev</itd>[,<itd width="2%">params</itd>...]][<btd width="83%">--netif_del&nbsp; </bp style="margin-top: 1em"><i>devCTID</i>|<b>all</b>][<b>--ifnameonboot&nbsp;yes</b> |<ib>devno</ib>][<b>--macbootorder&nbsp;</b><i>hwaddrnumber</i>][<b>--host_ifnameroot&nbsp;</b><i>devpath</i>][<b>--host_macprivate&nbsp;</b><i>hwaddrpath</i>][<b>--bridgemount_opts&nbsp;</b><i>nameoptions</i>][<b>--mac_filteruserpasswd&nbsp;on</b>|<bi>offuser</bi>:<i>pass</i>]][<b>--numprocdisabled&nbsp;yes</b>|<ib>itemsno</ib>][<b>--numtcpsockname&nbsp;</b><i>itemsname</i>][<b>--numothersockdescription&nbsp;</b><i>itemsstring</i>][<b>--vmguarpagesostemplate&nbsp;</b><i>pagesstring</i>][<b>--kmemsizestop-timeout&nbsp;</b><i>bytesseconds</i>][<b>--tcpsndbufipadd&nbsp;</b><i>bytesaddr</i>][<b>--tcprcvbufipdel&nbsp;</b><i>bytesaddr</i>|<b>all</b>][<b>--othersockbufhostname&nbsp;</b><i>bytesname</i>][<b>--dgramrcvbufnameserver&nbsp;</b><i>bytesaddr</i>][<b>--oomguarpagessearchdomain&nbsp;</b><i>pagesname</i>][<b>--lockedpagesnetif_add&nbsp;</b><i>pagesdev</i>][<b>--privvmpages&nbsp;</b>,<i>pagesparams</i>...]][<b>--shmpagesnetif_del&nbsp;</b><i>pagesdev</i>|<b>all</b>][<b>--numfile&nbsp;ifname</b><i>itemsdev</i>][<b>--numflockmac&nbsp;</b><i>itemshwaddr</i>][<b>--numptyhost_ifname&nbsp;</b><i>itemsdev</i>][<b>--numsiginfohost_mac&nbsp;</b><i>itemshwaddr</i>][<b>--dcachesizebridge&nbsp;</b><i>bytesname</i>][<b>--numiptentmac_filter&nbsp;on</b>|<ib>numoff</ib>]][<b>--physpagesnumproc&nbsp;</b><i>pagesitems</i>][<b>--swappagesnumtcpsock&nbsp;</b><i>pagesitems</i>][<b>--ramnumothersock&nbsp;</b><i>bytesitems</i>][<b>--swapvmguarpages&nbsp;</b><i>bytespages</i>][<b>--cpuunitskmemsize&nbsp;</b><i>numbytes</i>][<b>--cpulimittcpsndbuf&nbsp;</b><i>numbytes</i>][<b>--cpustcprcvbuf&nbsp;</b><i>numbytes</i>][<b>--cpumaskothersockbuf&nbsp;</b><i>cpusbytes</i>|<b>all</b>]][<b>--meminfodgramrcvbuf&nbsp;none</b>|<i>mode</i>:<i>valuebytes</i>][<b>--iptablesoomguarpages&nbsp;</b><i>namepages</i>][<b>--netdev_addlockedpages&nbsp;</b><i>ifnamepages</i>][<b>--netdev_delprivvmpages&nbsp;</b><i>ifnamepages</i>][<b>--diskquotashmpages&nbsp;yes</b>|<bi>nopages</bi>][<b>--diskspacenumfile&nbsp;</b><i>numitems</i>][<b>--diskinodesnumflock&nbsp;</b><i>numitems</i>][<b>--quotatimenumpty&nbsp;</b><i>secondsitems</i>][<b>--quotaugidlimitnumsiginfo&nbsp;</b><i>numitems</i>][<b>--noatimedcachesize&nbsp;yes</b>|<bi>nobytes</bi>][<b>--capabilitynumiptent&nbsp;</b><i>capnamenum</i>:][<b>on--physpages&nbsp;</b>|<bi>offpages</bi>][<b>--devnodesswappages&nbsp;</b><i>parampages</i>][<b>--devicesram&nbsp;</b><i>parambytes</i>][<b>--pci_addswap&nbsp;</b><i>devbytes</i>][<b>--pci_delvm_overcommit&nbsp;</b><i>devfloat</i>][<b>--featurescpuunits&nbsp;</b><i>paramnum</i>:][<b>on--cpulimit&nbsp;</b>|<bi>offnum</bi>][<b>--applyconfigcpus&nbsp;</b><i>namenum</i>][<b>--applyconfig_mapcpumask&nbsp;</b><i>groupcpus</i>|<b>auto</b>|<b>all</b>][<b>--ioprionodemask&nbsp;</b><i>numnodes</i>] [|<b>--saveall</b>][<b>--forcememinfo&nbsp;none</b>|<i>mode</i>:<i>value</i>][<b>--setmodeiptables&nbsp;restart</b>|<bi>ignorename</i>[<b>],</pb> ...]][</tdb>--netfilter&nbsp;disabled</trb>|<tr valign="top" align="left"b>stateless<td width="11%"/b>|<b>stateful</tdb>|<td width="4%"b>full</tdb>][<td width="2%"b>--netdev_add&nbsp;</b></tdi>ifname<td width="83%"/i>] [<pb>This command sets various container parameters.--netdev_del&nbsp;</pb></tdi>ifname</tri>][<b>--diskquota&nbsp;yes</tableb|<p style="margin-left:17%; margin-top: 1em"b>no</b>If a][<b>--savediskspace&nbsp;</b> flag is given, parameters are saved incontainer configuration file [[Man/ctid.conf.5|<b<i>ctid.confnum</bi>(5)]]. Use[<b>--forcediskinodes&nbsp;</b> to save the parameters even if the current<i>num</i>]kernel doesn[<b>--quotatime&rsquonbsp;t support OpenVZ.</pb> <p style="margin-left:17%; margin-top: 1em"i>seconds</i>If the]container is currently running, [<b>vzctl--quotaugidlimit&nbsp;</b> applies theseparameters to the container.<i>num</pi>] [<p style="marginb>--left:17%capability&nbsp; margin-top: 1em"</b>Note that a fewparameters can only be applied by restarting the container.By default, <bi>vzctlcapname</bi> warns if such parameters arepresent and a container is running. Use :<b>--setmoderestarton</b> to restart a container in such a case, or|<b>--setmode ignoreoff</b> to suppress the above mentionedwarning.[<b>,</pb>...]] <p style="margin-left:17%; margin-top: 1em">The followingparameters can be used with [<b>set<--devnodes&nbsp;</b> command.<i>param</pi>] ==== Miscellaneous ==== [<p style="marginb>--left:11%devices&nbsp;"</b><bi>--onboot yesparam</bi> |][<b>no--pci_add&nbsp;</b></pi>dev</i>] [<p style="marginb>--left:17%pci_del&nbsp;"</b><i>Sets whether the container willbe started during system boot. The container will not bedev</i>]auto-started unless this parameter is set to [<b>yes--features&nbsp;</b>.<i>name</pi:<p style="margin-left:11%;"b>on</b>--bootorder|</b>off<i/b>number[</ib>,</pb>...]] [<p style="marginb>--left:17%applyconfig&nbsp;"</b>Sets the boot order priorityfor this CT. The higher the <i>numbername</i> is, the earlier in]the boot process this container starts. By default thisparameter is unset, which is considered to be the lowestpriority, so containers with unset [<b>bootorder--applyconfig_map&nbsp;</b> willstart last.</pi>group</i>] <p style="margin-left:11%;">[<b>--rootioprio&nbsp;</b> <i>pathnum</i>][</pb<p style="margin-left:17%-iolimit&nbsp;"</b>Sets the path to root directory(<bi>VE_ROOTmbps</i>][<b>) for this container. This is essentially amount point for container--iopslimit&rsquonbsp;s root directory. Argumentcan contain literal string </b><i>iops</i>] [<b>$VEID--save</b>, which will be]substituted with the numeric CT ID.[<b>--force</b>] [<b>--reset_ub</b>][<b>--setmode&nbsp;restart</b>|<b>ignore</b>]</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"></td><td width="2%"></td><td width="83%">
<p style="margin-left:11%;">This command sets various container parameters. If thecontainer is currently running, <b>--privatevzctl</b>applies theseparameters to the container. The following options can beused with <ib>pathset</ib>command.</p></td></tr></table>
<p style="margin-left:17%;">Sets the path to privatedirectory (<b>VE_PRIVATE</b>) for this container. This is adirectory in which all the container&rsquo;s files arestored. Argument can contain literal string <b>$VEID</b>,which will be substituted with the numeric CT ID.</p>=== Flags ====
<p style="margin-left:11%;"><b>--userpasswdsave</b><i>user</i>:<i>password</i></p>
<p style="margin-left:17%;">Sets password for the If this flag is givenuser in a container, creating the user if it does notexists. Note that this option is not parameters are saved in container configurationfilefile at all (so [[Man/ctid.conf.5|<b>--savectid.conf</b> flag is useless), it isapplied to the container (by modifying its /etc/passwd and/etc/shadow files5)]].</p>
<p style="margin-left:1711%; margin"><b>-top: 1em"-force</b>In casecontainer root filesystem is not mounted, it isautomatically mounted, then all the appropriate file changesare applied, then it is unmounted.</p>
<p style="margin-left:17%; margin">If this flag is given togetherwith <b>--top: 1em"save</b>, parameters are saved even if the currentkernel doesn&rsquo;t support OpenVZ. Note thatthis flag does notcontainer should be created before using this optionmake sense without <b>--save</b>, so <b>--save</b> isrequired.</p>
<p style="margin-left:11%;"><b>--disabled yes</b> |<b>noreset_ub</b></p>
<p style="margin-left:17%;">Disable container start. ToIf this flag is given,force the start of a disabled container, use <b>vzctl start--force</b>applies all User Beancounter parameters fromthe configuration file to a running container. This ishelpful in case configuration file is modified manually.Please note this flag is exclusive, i.e. it can not becombined with any other options or flags.</p>
<p style="margin-left:11%;"><b>--namesetmode restart</b> |<ib>nameignore</ib></p>
<p style="margin-left:17%;">Add A few parameters can only beapplied by restarting the container. By default,<b>vzctl</b> prints a name for warning if such parameters aresupplied and a containeris running. TheUse <ib>name--setmoderestart</ib> can later be used in subsequent calls totogether with <b>vzctl--save</b> flag to restart acontainer in place of such a case, or <ib>CTID--setmode ignore</ib>tosuppress the warning.</p>
<p style="margin-left:11%;"><b>--description</b><i>string</i></p>=== Miscellaneous ====
<p style="margin-left:1711%;">Add a textual description for a<b>--onboot yes</b> |container.<b>no</b></p>
<p style==== Networking ===="margin-left:17%;">Sets whether the container willbe started during system boot. The container will be startedon boot by <b>vz</b> initscript if either this parameter isset to <b>yes</b>, or the container was running just beforelast reboot, and this parameter is not set to <b>no</b>.Default value is unset, meaning the container will bestarted if it was running before the last reboot.</p>
<p style="margin-left:11%;"><b>--ipaddbootorder</b> <i>addrnumber</i></p>
<p style="margin-left:17%;">Adds an IP address Sets the boot order priorityfor this CT. The higher the <i>addrnumber</i>is, the earlier into a given the boot process this containerstarts. Address can optionally have a netmaskBy default thisspecified in parameter is unset, which is considered to be the CIDR notation (e.g. lowestpriority, so containers with unset <b>bootorder</b>10willstart last.1.2.3</25p> <p style="margin-left:11%;"><b>--root</b>).Note that this option is incremental, so <i>addrpath</i> areadded to already existing ones.</p>
<p style="margin-left:1117%;">Sets the path to root directory(<b>--ipdelVE_ROOT</b> <i>addr</i> |) for this container. This is essentially amount point for container&rsquo;s root directory. Argumentcan contain literal string <b>all$VEID</b>, which will besubstituted with the numeric CT ID.</p>
<p style="margin-left:1711%;">Removes IP address <ib>addr--private</ib>from a container. If you want to remove all the addresses,use <bi>--ipdel allpath</bi>.</p>
<p style="margin-left:1117%;">Sets the path to privatedirectory (<b>--hostnameVE_PRIVATE</b>) for this container. This is adirectory in which all the container&rsquo;s files arestored. Argument can contain literal string <ib>name$VEID</ib>,which will be substituted with the numeric CT ID.</p>
<p style="margin-left:1711%;">Sets container hostname.<b>--mount_opts</b><i>option</i>[<b>vzctl,</b> writes it to the appropriate file inside acontainer (distribution-dependent)<i>option</i>...]</p>
<p style="margin-left:1117%;">Sets additional mount optionsfor container file system. Only applicable for <b>--nameserverploop</b><i>addr</i>layout, ignored otherwise.</p>
<p style="margin-left:1711%;">Sets DNS server IP address fora container. If you want to set several nameservers, youshould do it at once, so use <b>--nameserveruserpasswd</b> optionmultiple times in one call to <bi>vzctluser</bi>, as all the nameserver values set in previous calls to :<bi>vzctlpassword</bi> areoverwritten.</p>
<p style="margin-left:1117%;">Sets password for the givenuser in a container, creating the user if it does notexists. Note that this option is not saved in configurationfile at all (so <b>--searchdomainsave</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 other<i>name</i>options.</p>
<p style="margin-left:17%;margin-top: 1em">Sets DNS search domains for aIn casecontainer. If you want to set several search domainswas not running, youshould do it at once, so use <b>--searchdomain</b> optionis automatically started thenmultiple times in one call to <b>vzctl</b>, as all theappropriate changes are applied, then it issearch domain values set in previous calls to <b>vzctl</b>are overwrittenstopped.</p>
<p style="margin-left:1117%;margin-top: 1em"><b>--netif_add</b>Note that<i>ifname[</i>,<i>mac</i>,<i>host_ifname</i>,<i>host_mac</i>,<i>bridge]</i>container should be created before using this option.</p>
<p style="margin-left:1711%;">Adds a virtual Ethernet device(veth) to a given container. Here <i>ifname</i> is theEthernet device name in the container, <ib>mac--disabled yes</ib> is its MAC|address, <ib>host_ifnameno</ib> is the Ethernet device name onthe host, and <i>host_mac</i> is its MAC address. MACaddresses should be in the format like XX:XX:XX:XX:XX:XX.<i>bridge</i> is an optional parameter which can be used incustom network start scripts to automatically add theinterface to a bridge. All parameters except <i>ifname</i>are optional and are automatically generated if notspecified.</p>
<p style="margin-left:1117%;">Disable container start. Toforce the start of a disabled container, use <b>vzctl start--netif_del</b><i>dev_name</i> | <b>allforce</b>.</p>
<p style="margin-left:1711%;">Removes virtual Ethernet devicefrom a container. If you want to remove all devices, use<b>all--name</b>.<i>name</i></p>
<p style==== veth interface configuration ===="margin-left:17%;">Add a name for a container. The<i>name</i> can later be used in subsequent calls to<b>vzctl</b> in place of <i>CTID</i>. Note this option cannot be used without <b>--save</b>.</p>
<p style="margin-left:11%; margin-top: 1em">The followingoptions can be used to reconfigure the already-createdvirtual Ethernet interface. To select the interface toconfigure, use <b>--ifnamedescription</b> <i>name</i> option. <b><br>--mac</b> <i>XX:XX:XX:XX:XX:XXstring</i></p>
<p style="margin-left:2217%;">MAC address of interface insideAdd a textual description for aa container.</p>
<p style="margin-left:11%;"><b>--host_ifnameostemplate</b><i>namestring</i></p> <p style="margin-left:17%;">Sets a new value of<b>OSTEMPLATE</b> parameter in container configuration file[[Man/ctid.conf.5|<b>ctid.conf</b>(5)]]. Requires <b>--save</b> flag. Usefulafter a change/upgrade of a distribution running insidecontainer, as vzctl uses the value of OSTEMPLATE to rundistribution-specific scripts.</p>
<p style="margin-left:2211%;">interface name for virtual<b>--stop-timeout</b>interface in the host system.<i>seconds</i></p>
<p style="margin-left:1117%;">Sets a time to wait forcontainer to stop on <b>--host_macvzctl stop</b>before forciblykilling it, in seconds. Note this option can not be usedwithout <ib>XX:XX:XX:XX:XX:XX--save</ib>flag.</p>
<p style="margin-left:2217%;margin-top: 1em">MAC address Special valueof interface <b>0</b> means to use compiled-in thehost systemdefault.</p>
<p style="margin-left:22%; margin-top: 1em">If you want anindependent communication with the Container through thebridge, you should specify a multicast MAC address here(FE:FF:FF:FF:FF:FF).</p>=== Networking ====
<p style="margin-left:11%;"><b>--bridgeipadd</b> <i>nameaddr</i></p>
<p style="margin-left:2217%;">Bridge nameAdds an IP address <i>addr</i>to a given container. Custom networkAddress can optionally have a netmaskstart scripts can use specified in the CIDR notation (e.g. <b>10.1.2.3/25</b>).Note that this value to automatically add theoption is incremental, so <i>addr</i> areinterface added to a bridgealready existing ones.</p>
<p style="margin-left:11%;"><b>--mac_filter onipdel</b> <i>addr</i> |<b>offall</b></p>
<p style="margin-left:2217%;">EnablesRemoves IP address <i>addr</disables MAC addressfiltering for the Container veth device and the possibilityi>of configuring the MAC address of this device from insidethe Containera container. If you want to remove all the filtering is turned on: addresses,use <brb>&bull; the veth device accepts only those packets that havea MAC address in their headers corresponding to that of thisdevice (excluding --ipdel all broadcast and multicast packets); <br/b>&bull; it is impossible to modify the veth MAC address frominside the Container.</p>
<p style="margin-left:2211%; margin"><b>--top: 1em"hostname</b>By default,this functionality is enabled for all veth devices existinginside the Container.<i>name</i></p>
<p style==== VSwap limits ===="margin-left:17%;">Sets container hostname.<b>vzctl</b> writes it to the appropriate file inside acontainer (distribution-dependent).</p>
<p style="margin-left:11%; margin-top: 1em">The followingoptions sets memory and swap limits for VSwap<b>--enablednameserver</b>kernels (kernel version 042stab042 or greater).<i>addr</i></p>
<p style="margin-left:1117%; margin-top: 1em">Argument is inSets DNS server IP address forbytesa container. If you want to set several nameservers, unless otherwise specified by an optional suffix.Available suffixes are:</p>you<p style="margin-left:11%; margin-top: 1em">&bull;<b>T</b>should do it at once, so use <b>t</b> - terabytes; <br>&bull; <b>G</b>, <b>g</b> - gigabytes; <br>&bull; <b>Mnameserver</b>, <b>m</b> - megabytes; <br>option&bull; multiple times in one call to <b>Kvzctl</b>, <b>k</b> - kilobytes; <br>as all the name&bull; server values set in previous calls to <b>Pvzctl</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>are&bull; <b>B</b>, <b>b</b> - bytesoverwritten. <b><br>--ram</b> <i>bytes</i></p>
<p style="margin-left:2217%;margin-top: 1em">Sets physical memory A special valueof <b>inherit</b> can be used to auto-propagate nameservervalue(RAMs)available to a container. Actually, from the option is a shortcuthost system&rsquo;sfor setting <b>--physpages/etc/resolv.conf</b> limit (the barrier is set to0)file.</p>
<p style="margin-left:11%;"><b>--swapsearchdomain</b> <i>bytesname</i></p>
<p style="margin-left:2217%;">Set swap space available to Sets DNS search domains for acontainer. ActuallyIf you want to set several search domains, the option is a shortcut for settingyoushould do it at once, so use <b>--swappagessearchdomain</b> limit (optionmultiple times in one call to <b>vzctl</b>, as all the barrier is search domain values set in previous calls to 0)<b>vzctl</b>are overwritten.</p>
<p style="margin-left:1117%; margin-top: 1em">Here is anA special valueexample of setting container 777 <b>inherit</b> can be used to have 512 megabytes ofauto-propagate searchdomain value(s) from the host system&rsquo;sRAM and 1 gigabyte of swap:<b>/etc/resolv.conf</b> file.</p>
<pre p style="margin-left:11%;"> vzctl set 777 <b>--ram 512M --swap 1G --savenetif_add</b><i>ifname[</i>,<i>mac</i>,<i>host_ifname</i>,<i>host_mac</i>,<i>bridge]</i></prep>
<p style="margin-left:17%;">Adds a virtual Ethernet device(veth) to a given container. Here <i>ifname</i> is theEthernet device name in the container, <i>mac</i> is its MACaddress, <i>host_ifname</i> is the Ethernet device name onthe host, and <i>host_mac</i> is its MAC address. MACaddresses should be in the format like XX:XX:XX:XX:XX:XX.<i>bridge</i> is an optional parameter which can be used incustom network start scripts to automatically add theinterface to a bridge. All parameters except <i>ifname</i>are optional and are automatically generated if notspecified.</p> <p style=== User Beancounter limits ===="margin-left:11%;"><b>--netif_del</b><i>dev_name</i> | <b>all</b></p>
<p style="margin-left:1117%; margin-top: 1em">The followingRemoves virtual Ethernet deviceoptions sets barrier and limit for various userfrom a container. If you want to remove all devices, usebeancounters<b>all</b>.</p>
<p style="margin-left:11%; margin-top: 1em">Note that forVSwap-enabled kernels (version 042stab042 or greater) theselimits are optional, you must only set <b>--ram</b> and<b>--swap</b> (see above). For older kernels, these limitsare obligatory.</p>=== veth interface configuration ====
<p style="margin-left:11%; margin-top: 1em">Each optionThe followingoptions can be used to reconfigure the already-createdrequires one or two argumentsvirtual Ethernet interface. In case of one argumentTo select the interface toconfigure,use <b>vzctl--ifname</b> sets barrier and limit to the same value<i>name</i> option. In<b><br>case of two colon-separated arguments, the first is abarrier, and the second is a limit. Each argument is eithera number, a number with a suffix, or a special value-mac</b>unlimited<i>XX:XX:XX:XX:XX:XX</bi></p> <p style="margin-left:22%;">MAC address of interface insidea container.</p>
<p style="margin-left:11%; margin-top: 1em">Arguments arein items, pages or bytes. Note that page size isarchitecture<b>--specific, it is 4096 bytes on x86 and x86_64host_ifname</b>platforms.<i>name</i></p>
<p style="margin-left:1122%; margin-top: 1em">You can alsospecify different suffixes for User Beancounter parameters(except interface name for those which names start with <b>num</b>). Forexample, <b>vzctl set</b> <i>CTID</i> <b>--privvmpages5M:6M</b> should set <b>privvmpages</b>&rsquo; barrier to 5virtualmegabytes and its limit to 6 megabytesinterface in the host system.</p>
<p style="margin-left:11%; margin"><b>--top: 1em"host_mac</b>Availablesuffixes are<i>XX:XX:XX:XX:XX:XX</i></p>
<p style="margin-left:1122%; margin-top: 1em">&bull;<b>T</b>, <b>t</b> - terabytes; <br>&bull; <b>G</b>, <b>g</b> - gigabytes; <br>&bull; <b>M</b>, <b>m</b> - megabytes; <br>&bull; <b>K</b>, <b>k</b> - kilobytes; <br>MAC address of interface in the&bull; <b>P</b>, <b>p</b> - memory pages (arch-specific,usually 4KB); <br>&bull; <b>B</b>, <b>b</b> - byteshost system.</p>
<p style="margin-left:1122%; margin-top: 1em">You can alsoIf you want anspecify independent communication with the literal word <b>unlimited</b> in place of anumber. In that case Container through the corresponding value will be set to<b>LONG_MAX</b>bridge, i. e. the maximum possible value. <b><br>you should specify a multicast MAC address here--numproc</b> <i>items</i>[(FE:FF:FF:FF:FF:<i>items</i>]FF).</p>
<p style="margin-left:2211%;">Maximum number of processes andkernel<b>-level threads. Setting the barrier and the limit todifferent values does not make practical sense.-bridge</b> <i>name</i></p>
<p style="margin-left:1122%;"><b>--numtcpsock</b>Bridge name. Custom networkstart scripts can use this value to automatically add the<i>items</i>[:<i>items</i>]interface to a bridge.</p>
<p style="margin-left:2211%;">Maximum number of TCP sockets.<b>--mac_filter on</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.<b>off</b></p>
<p style="margin-left:1122%;"><b>--numothersock<Enables/b>disables MAC addressfiltering for the Container veth device and the possibilityof configuring the MAC address of this device from inside<i>items</i>[the Container. If the filtering is turned on:<ibr>items&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 number of non-TCPBy default,sockets (local sockets, UDP and other types of sockets).this functionality is enabled for all veth devices existingSetting inside the barrier and the limit to different values doesnot make practical senseContainer.</p>
<p style="margin-left:11%;"><b>--vmguarpages</b><i>pages</i>[:<i>pages</i>]</p>=== VSwap limits ====
<p style="margin-left:2211%;margin-top: 1em">Memory allocation guarantee.This parameter controls how much memory is available to aThe followingcontainer. The barrier is the amount of options sets memory thatand swap limits for VSwap-enabledcontainer&rsquo;s applications are guaranteed to be able toallocate. The meaning of the limit is currently unspecified;it should be set to <b>unlimited</b>kernels (kernel version 042stab042 or greater).</p>
<p style="margin-left:11%;margin-top: 1em"><b>--kmemsize</b>Argument is in<i>bytes</i>[, unless otherwise specified by an optional suffix.Available suffixes are:<i>bytes</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum amount of kernel memory&bull;used. This parameter is related to <b>T</b>, <b>t</b>-terabytes; <br>&bull; <b>G</b>, <b>g</b> -numprocgigabytes; <br>&bull; <b>M</b>. Each, <b>m</b> - megabytes; <br>process consumes certain amount of kernel memory &bull; <b>K</b>, <b>k</b> - 16 KB atkilobytes; <br>least&bull; <b>P</b>, 30<b>p</b> - memory pages (arch-50 KB typically. Very large processes may consumespecific,a bit more. It is important to have a certain safety gapbetween the barrier and the limit of this parameter: equalbarrier and limit may lead to the situation where the kernelusually 4KB); <br>will need to kill container&rsquobull;s applications to keep <b>B</b>, <b>b</b> - bytes (this is thedefault).<b>kmemsize<br>--ram</b> usage under the limit.<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>--tcpsndbufphyspages</b>limit (the barrier is set to<i>bytes</i>[:<i>bytes</i>]0).</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--swap</b> multiplied by 2.5KB.<i>bytes</i></p>
<p style="margin-left:22%;">Set swap space available to acontainer. Actually, the option is a shortcut for setting<b>--swappages</b> limit (the barrier is set to 0).</p> <p style="margin-left:11%;"><b>--tcprcvbufvm_overcommit</b><i>bytesfloat</i>[</p> <p style="margin-left:22%;">Set VM overcommitment value to<i>bytesfloat</i>]. If set, it is used to calculate<b>privmmpages</b> parameter in case it is not setexplicitly (see below). Default value is <b>0</b>, meaningunlimited privvmpages.</p> <p style="margin-left:11%; margin-top: 1em"><b>vzctl</b>checks if running kernel is VSwap capable, and refuses touse these parameters otherwise. This behavior can beoverriden by using <b>--force</b> flag beforeparameters.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size of TCP receiveIn VSwap mode,buffersall beancounters other than RAM and swap become optional. Barrier should be Note though that if some optional beancounters are not less than 64 KBset, anddifference between barrier they are calculated and limit should be equal to ormore than value of <b>numtcpsock</b> multiplied set by 2.5vzctl implicitly, using theKB.following formulae:</p>
<p style="margin-left:11%;margin-top: 1em"><b>--othersockbuf&bull;lockedpages.barrier = oomguarpages.barrier = ram</b><i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size of other (non-TCP)socket send buffers. If container<b>&rsquobull;s processes needs tosend very large datagrams, the barrier should be setaccordinglylockedpages. Increased limit is necessary for highperformance of communications through local (UNIX-domain)sockets= oomguarpages.limit = unlimited</b></p>
<p style="margin-left:11%;margin-top: 1em"><b>--dgramrcvbuf&bull;vmguarpages.barrier = vmguarpages.limit = ram + swap</b><i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum size of other (non-TCP)socket receive buffers. If container<b>&rsquobull;s processes needsto receive very large datagrams, the privvmpages.barrier should be setaccordingly= privvmpages. The difference between the barrier and thelimit = (ram + swap) *limit is not needed.vm_overcommit</b></p>
<p style="margin-left:11%;margin-top: 1em">(if<b>--oomguarpagesvm_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">Guarantees against OOM kill.Under this beancounter the kernel accounts the total amountHere is anexample of memory and swap space used by the setting container&rsquo;sprocesses. The barrier 777 to have 512 megabytes of this parameter is theout-RAM and 1 gigabyte of-memory guarantee. If the <b>oomguarpagesswap:</bp> usage isbelow the barrier, processes of this container areguaranteed not to be killed in out<pre style="margin-of-memory situations. Themeaning of limit is currently unspecifiedleft:11%; it should be "> vzctl setto <b>unlimited777 --ram 512M --swap 1G --save</b>.</ppre>
<p style="margin-left:11%;"><b>--lockedpages</b><i>pages</i>[:<i>pages</i>]</p>=== User Beancounter limits ====
<p style="margin-left:2211%;margin-top: 1em">Maximum number of pagesThe followingacquired by <b>mlock</b>(2)options sets barrier and limit for various userbeancounters.</p>
<p style="margin-left:11%;margin-top: 1em">Note that forVSwap-enabled kernels (version 042stab042 or greater) theselimits are optional, you must only set <b>--privvmpagesram</b>and<ib>pages--swap</ib>[:<i>pages</i>](see above). For older kernels, these limitsare obligatory.</p>
<p style="margin-left:2211%;margin-top: 1em">Allows controlling the amountEach optionrequires one or two arguments. In case of memory allocated by the applications. For shared (mappedone argument,as <b>MAP_SHAREDvzctl</b>) pages, each container really using asets barrier and limit to the same value. Inmemory page is charged for the fraction case of two colon-separated arguments, the pagefirst is a(depending on barrier, and the number of others using it)second is a limit. ForEach argument is either&quot;potentially private&quot; pages (mapped asa number, a number with a suffix, or a special value<b>MAP_PRIVATEunlimited</b>), container is charged either for afraction of the size or for the full size if the allocatedaddress space. In the latter case, the physical pagesassociated with the allocated address space may be inmemory, in swap or not physically allocated yet.</p>
<p style="margin-left:2211%; margin-top: 1em">The barrier andArguments arethe limit of this parameter control the upper boundary ofthe total size of allocated memoryin items, pages or bytes. Note that this upperpage size isboundary does not guarantee that container will be able toarchitecture-specific, it is 4096 bytes on x86 and x86_64allocate that much memory. The primary mechanism to controlmemory allocation is the <b>--vmguarpages</b> guaranteeplatforms.</p>
<p style="margin-left:11%;margin-top: 1em">You can alsospecify different suffixes for User Beancounter parameters(except for those which names start with <b>--shmpagesnum</b>). Forexample, <b>vzctl set</b> <i>pagesCTID</i>[<b>--privvmpages5M:6M</b> should set <ib>pagesprivvmpages</ib>]&rsquo; barrier to 5megabytes and its limit to 6 megabytes.</p>
<p style="margin-left:2211%;margin-top: 1em">Maximum IPC SHM segment size.AvailableSetting the barrier and the limit to different values doessuffixes are:</p> <p style="margin-left:11%; margin-top: 1em">&bull;<b>T</b>, <b>t</b> - terabytes; <br>&bull; <b>G</b>, <b>g</b> - gigabytes; <br>&bull; <b>M</b>, <b>m</b> - megabytes; <br>&bull; <b>K</b>, <b>k</b> - kilobytes; <br>not make practical sense&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>--numfilenumproc</b><i>items</i>[:<i>items</i>]</p>
<p style="margin-left:22%;">Maximum number of open files.In most cases the barrier processes and the limit should be set to thesame valuekernel-level threads. Setting the barrier to <b>0</b> effectivelydisables pre-charging optimization for this beancounter inand the kernel, which leads limit to the held value being precise butcould slightly degrade file open performancedifferent values does not make practical sense.</p>
<p style="margin-left:11%;"><b>--numflocknumtcpsock</b>
<i>items</i>[:<i>items</i>]</p>
<p style="margin-left:22%;">Maximum number of file locksTCP sockets.Safety gap should be between barrier This parameter limits the number of TCP connections and limit.</p> <p style="margin-left:11%;"><b>--numpty</b><i>items</i>[:<i>items</i>]</p>,<p style="margin-left:22%;">Number thus, the number of pseudo-terminalsclients the server application can(PTY). Note that handle in OpenVZ each container can have not morethan 255 PTYsparallel. Setting the barrier and the limit to
different values does not make practical sense.</p>
<p style="margin-left:11%;"><b>--numsiginfonumothersock</b>
<i>items</i>[:<i>items</i>]</p>
<p style="margin-left:22%;">Number Maximum number of siginfo structuresnon-TCPsockets (local sockets, UDP and other types of sockets).
Setting the barrier and the limit to different values does
not make practical sense.</p>
<p style="margin-left:11%;"><b>--dcachesizevmguarpages</b><i>pages</i>[:<i>pages</i>]</p> <p style="margin-left:22%;">Memory allocation guarantee.This parameter controls how much memory is available to acontainer. The barrier is the amount of memory thatcontainer&rsquo;s applications are guaranteed to be able toallocate. The meaning of the limit is currently unspecified;it should be set to <b>unlimited</b>.</p> <p style="margin-left:11%;"><b>--kmemsize</b>
<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%;">Maximum size amount ofkernel memoryfilesystem-related caches, such as directory entry and inodecachesused. Exists as a separate This parameter is related to impose a limit<b>--numproc</b>. Eachcausing file operations to sense process consumes certain amount of kernel memory shortage and return- 16 KB atan errno to applicationsleast, protecting from memory shortages30-50 KB typically. Very large processes may consumeduring critical operations that should not faila bit more. Safety It is important to have a certain safety gapshould be between the barrier and the limit of this parameter: equalbarrier and limit may lead to the situation where the kernelwill need to kill container&rsquo;s applications to keep the<b>kmemsize</b> usage under the limit.</p>
<p style="margin-left:11%;"><b>--numiptenttcpsndbuf</b><i>numbytes</i>[:<i>numbytes</i>]</p>
<p style="margin-left:22%;">Number Maximum size of iptables (netfilter)TCP sendentriesbuffers. Setting the Barrier should be not less than 64 KB, anddifference between barrier and the limit should be equal to differentorvalues does not make practical sensemore than value of <b>numtcpsock</b> multiplied by 2.5KB.</p>
<p style="margin-left:11%;"><b>--physpagestcprcvbuf</b><i>pagesbytes</i>[:<i>pagesbytes</i>]</p>
<p style="margin-left:22%;">On VSwap-enabled kernels, thislimits the amount Maximum size of physical memory (RAM) available to aTCP receivecontainerbuffers. The Barrier should be not less than 64 KB, anddifference between barrier and limit should be set equal to ormore than value of <b>0numtcpsock</b>, and thelimit to a total size of RAM that can be used used multiplied by a2.5containerKB.</p>
<p style="margin-left:2211%; margin-top: 1em">For olderkernels, this is an accounting<b>--only parameter, showing theusage of RAM by this container. Barrier should be set toothersockbuf</b><bi>0bytes</bi>, and limit should be set to [:<bi>unlimitedbytes</bi>.]</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-swappages</b>domain)<i>pages</i>[:<i>pages</i>]sockets.</p>
<p style="margin-left:2211%;">For VSwap-enabled kernels(042stab042 or greater), this parameter limits the amount ofswap space available to a container. The barrier should beset to <b>0--dgramrcvbuf</b>, and the limit to a total size of swap thatcan be used by a container.<i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:22%; margin-top: 1em">For olderMaximum size of other (prenon-VSwapTCP) kernelssocket receive buffers. If container&rsquo;s processes needsto receive very large datagrams, the limit is used to show a totalbarrier should be setamount of swap space available inside the containeraccordingly. Thedifference between the barrier and thebarrier of this parameter limit is ignored. The default value is<b>unlimited</b>, meaning total swap will be reported as0not needed.</p>
<p style==== CPU fair scheduler parameters ===="margin-left:11%;"><b>--oomguarpages</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%; margin-top: 1em">TheseGuarantees against OOM kill.Under this beancounter the kernel accounts the total amountparameters control CPU usage of memory and swap space used by the container&rsquo;sprocesses. The barrier of this parameter is theout-of-memory guarantee. If the <b>oomguarpages<br/b>usage isbelow the barrier, processes of this container areguaranteed not to be killed in out-of-cpuunitsmemory situations. Themeaning of limit is currently unspecified; it should be setto </b> <i>numunlimited</ib>.</p>
<p style="margin-left:2211%;">CPU weight for a container.Argument is positive non-zero number, passed to and used inthe kernel fair scheduler. The larger the number is, themore CPU time this container gets. Maximum value is 500000,minimal is 8. Number is relative to weights of all the otherrunning containers. If <b>cpuunits--lockedpages</b> are not specified,default value of 1000 is used.<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%; margin-top: 1em">You can set CPUMaximum number of pagesweight for CT0 (host system itself) as well (use acquired by <b>vzctlset 0 --cpuunitsmlock</b> <i>num</i>). Usually, OpenVZ initscript(<b>/etc/init.d/vz</b>2) takes care of setting this.</p>
<p style="margin-left:11%;"><b>--cpulimitprivvmpages</b><i>numpages</i>[:<bi>%pages</bi>]</p>
<p style="margin-left:22%;">Limit Allows controlling the amountof CPU usage for memory allocated by theapplications. For shared (mappedas <b>MAP_SHARED</b>) pages, each container, in per cent. Note if really using amemory page is charged for the fraction of the computer has 2 CPUs, itpagehas total (depending on the number of 200% CPU timeothers using it). Default CPU limit is For&quot;potentially private&quot; pages (mapped as<b>0MAP_PRIVATE</b>), container is charged either for afraction of the size or for the full size if the allocatedaddress space. In the latter case, the physical pagesassociated with the allocated address space may be in(no CPU limit)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>--cpusvmguarpages</b> <i>num</i>guarantee.</p>
<p style="margin-left:2211%;">sets number of CPUs available<b>--shmpages</b>in the container.<i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%;"><b>--cpumask</b> <i>cpus</i> |Maximum IPC SHM segment size.Setting the barrier and the limit to different values does<b>all</b>not make practical sense.</p>
<p style="margin-left:2211%;">sets list of allowed CPUs forthe container. Input format is a comma<b>-separated list ofdecimal numbers and ranges. Consecutively set bits are shownas two hyphen-separated decimal numbers, the smallest andnumfile</b>largest bit numbers set in the range. For example, if youwant the container to execute on CPUs 0, 1, 2, 7, you shouldpass <bi>0-2,7items</bi>. Default value is [:<bi>allitems</bi> (thecontainer can execute on any CPU).]</p>
<p style==== Memory output parameters ===="margin-left:22%;">Maximum number of open files.In most cases the barrier and the limit should be set to thesame value. Setting the barrier to <b>0</b> effectivelydisables pre-charging optimization for this beancounter inthe kernel, which leads to the held value being precise butcould slightly degrade file open performance.</p>
<p style="margin-left:11%; margin-top: 1em">ForVSwap<b>--enabled kernels (042stab042 or greater), thisnumflock</b>parameter is ignored. For older kernels, it controls theoutput of /proc<i>items</meminfo inside a container. <bi>[:<bri>--meminfo noneitems</bi>]</p>
<p style="margin-left:22%;">No /proc/meminfo virtualizationMaximum number of file locks.(the same as on host system)Safety gap should be between barrier and limit.</p>
<p style="margin-left:11%;"><b>--meminfonumpty</b><i>modeitems</i>[:<i>valueitems</i>]</p>
<p style="margin-left:22%;">Configure total memory outputNumber of pseudo-terminals(PTY). Note that in a OpenVZ each containercan have not morethan 255 PTYs. Reported free memory is evaluatedaccordingly to Setting the barrier and the mode being set. Reported swap isevaluated according limit to the settings of <b>--swappages</b>parameterdifferent values does not make practical sense.</p>
<p style="margin-left:2211%; margin-top: 1em">You can use thefollowing modes for <i>mode</i>: <br>&bull; <b>pages--numsiginfo</b>:<i>valueitems</i> - sets total memory inpages; <br>&bull; <b>privvmpages</b>[:<i>value</i> - sets total memoryas <b>privvmpages</b> * <i>valueitems</i>.]</p>
<p style="margin-left:22%; margin-top: 1em">Default isNumber of siginfo structures.<b>privvmpages:1</b>Setting the barrier and the limit to different values doesnot make practical sense.</p>
<p style==== iptables control parameters ===="margin-left:11%;"><b>--dcachesize</b><i>bytes</i>[:<i>bytes</i>]</p>
<p style="margin-left:11%;"><b>--iptables</b><i>name</i></p> <p style="margin-left:22%;">Allow to use the functionalityMaximum size of <i>name</i> iptables module inside the container. Tospecify multiple <i>name</i>s, repeat filesystem--iptables for eachrelated caches,such as directory entry and inodeor use space-separated list caches. Exists as a separate parameter to impose a limitcausing file operations to sense memory shortage and returnan argument (enclosed inerrno to applications, protecting from memory shortagesduring critical operations that should not fail. Safety gapsingle or double quotes to protect spaces)should be between barrier and limit.</p>
<p style="margin-left:2211%; margin-top: 1em">The defaultlist of enabled iptables modules is specified by the<b>IPTABLES--numiptent</b> variable in <i>num</i>[[Man/vz.conf.5|:<bi>vz.confnum</bi>(5)]].</p>
<p style="margin-left:22%; margin-top: 1em">You can use Number of iptables (netfilter)entries. Setting the barrier and thelimit to differentfollowing values for <i>name</i>: <b>iptable_filter</b>,<b>iptable_mangle</b>, <b>ipt_limit</b>,<b>ipt_multiport</b>, <b>ipt_tos</b>, <b>ipt_TOS</b>,<b>ipt_REJECT</b>, <b>ipt_TCPMSS</b>, <b>ipt_tcpmss</b>,<b>ipt_ttl</b>, <b>ipt_LOG</b>, <b>ipt_length</b>,<b>ip_conntrack</b>, <b>ip_conntrack_ftp</b>,<b>ip_conntrack_irc</b>, <b>ipt_conntrack</b>,<b>ipt_state</b>, <b>ipt_helper</b>, <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>does not make practical sense.</p>
<p style==== Network devices control parameters ===="margin-left:11%;"><b>--physpages</b><i>pages</i>[:<i>pages</i>]</p>
<p style="margin-left:1122%;">On VSwap-enabled kernels, thislimits the amount of physical memory (RAM) available to acontainer. The barrier should be set to <b>--netdev_add0</b>, and the<i>name</i>limit to a total size of RAM that can be used used by acontainer.</p>
<p style="margin-left:22%;margin-top: 1em">move network device from For olderkernels, this is an accounting-only parameter, showing thehost system usage of RAM by this container. Barrier should be set to a specified container<b>0</b>, and limit should be set to <b>unlimited</b>.</p>
<p style="margin-left:11%;"><b>--netdev_delswappages</b><i>namepages</i>[:<i>pages</i>]</p>
<p style="margin-left:22%;">delete network device from For VSwap-enabled kernels(042stab042 or greater), this parameter limits the amount ofswap space available to a container. The barrier should beset to <b>0</b>, and the limit to atotal size of swap thatspecified can be used by a container.</p>
<p style==== Disk quota parameters ===="margin-left:22%; margin-top: 1em">For older(pre-VSwap) kernels, the limit is used to show a totalamount of swap space available inside the container. Thebarrier of this parameter is ignored. The default value is<b>unlimited</b>, meaning total swap will be reported as0.</p>
<p style="margin-left:11%;"><b>--diskquota yes</b> |<b>no</b></p>=== CPU fair scheduler parameters ====
<p style="margin-left:2211%;margin-top: 1em">allows to enable or disableThesedisk quota for a parameters control CPU usage by container. By default, a global value(<b>DISK_QUOTA<br>--cpuunits</b>) from [[Man/vz.conf.5|<bi>vz.confnum</bi>(5)]] is used.</p>
<p style="margin-left:22%; margin-top: 1em">Note that CPU weight for a container.Argument is positive non-zero number, passed to and used inthe kernel fair scheduler. The larger the number is, themore CPU time thiscontainer gets. Maximum value is 500000,parameter minimal is 8. Number is ignored for relative to weights of all the otherrunning containers. If <b>ploopcpuunits</b> layoutare not specified,default value of 1000 is used.</p>
<p style="margin-left:1122%;margin-top: 1em">You can set CPUweight for CT0 (host system itself) as well (use <b>vzctlset 0 --diskspacecpuunits</b><i>num</i>[:). Usually, OpenVZ initscript(<ib>num/etc/init.d/vz</ib>]) takes care of setting this.</p>
<p style="margin-left:2211%;">For <b>simfs--cpulimit</b> layout, setssoft and hard disk quota limits, in blocks. First parameteris soft limit, second is hard limit. One block is currentlyequal to 1Kb.<i>num</i>[<b>%</b>]</p>
<p style="margin-left:22%; margin-top: 1em">ForLimit of CPU usage for thecontainer, in per cent. Note if the computer has 2 CPUs, ithas total of 200% CPU time. Default CPU limit is <b>ploop0</b> layout, sets the size of the ploop image file,in kilobytes(no CPU limit).</p>
<p style="margin-left:2211%; margin-top: 1em">Suffixes<b>G--cpus</b>, <bi>Mnum</b>, <b>K</b> can also be specified (see<b>Resource limits</bi> section for more info onsuffixes).</p>
<p style="margin-left:1122%;"><b>--diskinodes</b>sets number of CPUs available<i>num</i>[:<i>num</i>]in the container.</p>
<p style="margin-left:2211%;">sets soft and hard disk quotalimits, in <b>--cpumask</b> <i>cpus</i-nodes. First parameter is soft limit, second is> |hard limit.<b>auto</b> | <b>all</b></p>
<p style="margin-left:22%; margin-top: 1em">Note that thisSets 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, youparameter should pass <b>0-2,7</b>. Default value is ignored for <b>ploopall</b> (thecontainer can execute on any CPU). If used with the<b>--nodemask</b> option, value of <b>auto</b> layoutassigns allCPUs from the specified NUMA node to a container.</p>
<p style="margin-left:11%;"><b>--quotatimenodemask</b><i>secondsnodes</i>| <b>all</b></p>
<p style="margin-left:22%;">sets quota grace periodSets list of allowed NUMA nodesfor the container.Container Input format is permitted to exceed its soft limits the same as for thegrace period, but once it has expired, <b>--cpumask</b>. Note that <b>--nodemask</b> must be usedwith the soft limit isenforced as a hard limit<b>--cpumask</b> option.</p>
<p style="margin-left:22%; margin-top: 1em">Note that thisparameter is ignored for <b>ploop</b> layout.</p>=== Memory output parameters ====
<p style="margin-left:11%;margin-top: 1em">ForVSwap-enabled kernels (042stab042 or greater), thisparameter is ignored. For older kernels, it controls theoutput of /proc/meminfo inside a container. <b><br>--quotaugidlimitmeminfo none</b><i>num</i></p>
<p style="margin-left:22%;">sets maximum number ofuserNo /proc/group IDs in a container for which disk quota insidethe container will be accounted. If this value is set tomeminfo virtualization<b>0</b>, user and group quotas inside (the container willnot be accountedsame as on host system).</p>
<p style="margin-left:2211%; margin-top: 1em">Note that ifyou have previously set value of this parameter to <b>0--meminfo</b>,changing it while the container is running will not takeeffect.<i>mode</i>:<i>value</i></p>
<p style==== Mount option ===="margin-left:22%;">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>--swappages</b>parameter.</p>
<p style="margin-left:1122%;margin-top: 1em">You can use thefollowing modes for <i>mode</i>: <br>&bull; <b>pages</b>:<i>value</i>--noatime yessets total memory inpages; <br>&bull; <b>privvmpages</b> |:<i>value</i> - sets total memoryas <b>noprivvmpages</b>* <i>value</i>.</p>
<p style="margin-left:22%;margin-top: 1em">Sets noatime flag (do notDefault isupdate inode access times) on filesystem<b>privvmpages:1</b>.</p>
==== Capability option Netfilter (iptables) control parameters ====
<p style="margin-left:11%;"><b>--capabilitynetfilter&nbsp;disabled</b>|<ib>capnamestateless</ib>:|<b>onstateful</b>|<b>offfull</b></p>
<p style="margin-left:22%;">Sets a capability Restrict access tonetfilter/iptables modules for acontainer. Note that setting capability when the containeris running does not take immediate effect; restart thecontainer in order for the changes to take effect. Note acontainer has default set of capabilities, thus anyoperation on capabilities is &quot;logical and&quot; withThis optionthe default capability maskreplaces obsoleted <b>--iptables</b>.</p>
<p style="margin-left:22%; margin-top: 1em">You can use theNote thatfollowing 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>changing this parameter requires container restart,soconsider using <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--setmode</b>(7)option.</p>
<p style="margin-left:22%; margin-top: 1em">The followingarguments can be used: <b>WARNING</bbr>:setting some of those capabilities may have far reachingsecurity implications, so do not do it unless you know whatyou are doing. Also note that setting <b>setpcap:on&bull; disabled</b> fora container will most probably lead to inability to startit.</p>
<p style==== Device access management ===="margin-left:32%;">no modules are allowed</p>
<p style="margin-left:1122%;"><b>--devnodes</b><i>device</i>:[<b>r</b>][<b>w</b>][<b>q</b>]|<b>none&bull; stateless</b></p>
<p style="margin-left:2232%;">Give the container an accessall modules except NAT andconntracks are allowed (<b>r</b> - read, <b>w</b> - write, <b>q</b> - disk quotamanagement, <b>none</b> - no access) to a device designatedby the special file /dev/<i>device</i>. Device file e. filter and mangle); this isthecreated in a container by <b>vzctl</b>. Example:default</p>
<pre p style="margin-left:22%;"> vzctl set 777 --devnodes sdb:rwq<b>&bull; stateful</b></prep>
<p style="margin-left:1132%;"><b>--devicesall modules except NAT areb</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>allowed</p>
<p styletable width="margin-left:22100%;" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0">Give the container an access toa <b>b</b>lock or <b>c</btr valign="top" align="left">haracter device designated by its<i>major</i> and <itd width="22%">minor</itd> numbers. Device file have tobe created manually.</ptd width="9%">
<p><b>&bull; full</b></p></td><td width="1%"></td><td width=== PCI device management ===="36%">
<p style="margin-left:11%;">all modules are allowed<b/p>--pci_add</btd>[<itd width="32%">domain</itd>:]<i>bus</i>:<i>slot</i>.<i>func</itr></ptable>
<p style="margin-left:2211%;">Give the container an access to<b>--iptables</b>a specified PCI device. All numbers are hexadecimal (asprinted by <i>name</i>[<b>lspci,</b>(8) in the first column)...]</p>
<p style="margin-left:1122%;"><b>--pci_delNote</b>this option is[obsoleted, <ib>domain--netfilter</i>:]<i>bus</i>:<i>slot</ib>should be used instead.<i>func</i></p>
<p style="margin-left:22%;margin-top: 1em">Delete a PCI device from Allow to usethe functionality of <i>name</i> iptables module inside thecontainer. Multiple comma-separated <i>name</i>s can bespecified.</p>
<p style="margin-left:22%; margin-top: 1em">Note thatThe default<b>vps-pci</b> configuration script list of enabled iptables modules is executed defined bythe<b>vzctlIPTABLES</b> then configuring PCI devicesvariable in [[Man/vz. The script isusually located at conf.5|<b>/usr/lib[64]/vzctl/scripts/vz.conf</b>(5)]].</p>
<p style==== Features management ===="margin-left:22%; margin-top: 1em">You can use thefollowing values for <i>name</i>: <b>iptable_filter</b>,<b>iptable_mangle</b>, <b>ipt_limit</b>,<b>ipt_multiport</b>, <b>ipt_tos</b>, <b>ipt_TOS</b>,<b>ipt_REJECT</b>, <b>ipt_TCPMSS</b>, <b>ipt_tcpmss</b>,<b>ipt_ttl</b>, <b>ipt_LOG</b>, <b>ipt_length</b>,<b>ip_conntrack</b>, <b>ip_conntrack_ftp</b>,<b>ip_conntrack_irc</b>, <b>ipt_conntrack</b>,<b>ipt_state</b>, <b>ipt_helper</b>, <b>iptable_nat</b>,<b>ip_nat_ftp</b>, <b>ip_nat_irc</b>, <b>ipt_REDIRECT</b>,<b>xt_mac</b>, <b>ipt_recent</b>, <b>ipt_owner</b>.</p>
<p style="margin-left:11%;"><b>--features</b><i>name</i>:<b>on</b>|<b>off</b></p>=== Network devices control parameters ====
<p style="margin-left:2211%;">Enable or disable a specificcontainer feature. Known features are: <b>sysfs</b>,<b>nfs</b>, <b>sit</b>, <b>ipip</b>, <b>ppp--netdev_add</b>,<bi>ipgrename</b>, <b>bridge</b>, <b>nfsd</bi>.</p>
<p style==== Apply config ===="margin-left:22%;">move network device from thehost system to a specified container</p>
<p style="margin-left:11%;"><b>--applyconfignetdev_del</b>
<i>name</i></p>
<p style="margin-left:22%;">Read container parameters delete network device fromathe container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>name</i><tt>.conf-sample</tt>,and apply them, if <b>--save</b> option specified save tothe container config file. The following parameters are notchanged: <b>HOSTNAME</b>, <b>IP_ADDRESS</b>,<b>OSTEMPLATE</b>, <b>VE_ROOT</b>, and<b>VE_PRIVATE</b>.</p>
<p style="margin-left:11%;"><b>--applyconfig_map</b><i>group</i></p>=== Disk quota parameters ====
<p style="margin-left:2211%;">Apply container configparameters selected by <i>group</i>. Now the only possiblevalue for <i>group</i> is <b>name--diskquota yes</b>: to restore container|name based on <b>NAMEno</b> variable in containerconfiguration file.</p>
<p style==== I"margin-left:22%;">allows to enable or disabledisk quota for a container. By default, a global value(<b>DISK_QUOTA</b>) from [[Man/vz.conf.5|<b>vz.conf</b>(5)]] is used.</O priority management ====p>
<p style="margin-left:1122%;margin-top: 1em">Note that thisparameter is ignored for <b>--ioprioploop</b><i>priority</i>layout.</p>
<p style="margin-left:2211%;">Assigns I/O priority tocontainer. <i>Priority</i> range is <b>0-7-diskspace</b>. The greater<i>prioritynum</i> is, the more time for I/O activity containerhas. By default each container has [:<i>prioritynum</i> of<b>4</b>.]</p>
<p style=== Checkpointing "margin-left:22%;">For <b>simfs</b> layout, setssoft and restore ===hard disk quota limits. First parameter is softlimit, second is hard limit.</p>
<p style="margin-left:22%; margin-top: 1em">Checkpointing is a feature For<b>ploop</b> layout, initiates the procedure ofresizing theOpenVZ kernel which allows ploop image file to save a complete state of athe new size. Since there is nosoft/hard limit concept in ploop, second <i>num</i>, ifrunning containerspecified, and to restore it lateris ignored.</p>
<p style="margin-left:1122%;margin-top: 1em"><b>chkpnt</b> <By default,ploop resize is done online, i>CTID</i>.e. on a mounted ploop. Thisis a preferred way of doing resize. Although, in a rare casea container was using lots of disk space and should now beresized to a much smaller size, an offline resize might bemore appropriate. In this case, make sure the container isstopped and unmounted and use additional[<b>--dumpfileoffline-resize</b> <i>name</i>]option</p>
<p style="margin-left:1722%;margin-top: 1em">This command saves a completeNote that ploopstate of a running resize is NOT performed on container to a dump filestart, and stops theso forcontainer. If an option consistency <b>--dumpfilediskspace</b> is not set,must be used together withdefault dump file name <b>/vz/dump/Dump.--save</b><i>CTID</i> isusedflag.</p>
<p style="margin-left:1122%;margin-top: 1em">Suffixes<b>restoreG</b> , <ib>CTIDM</ib>[, <b>--dumpfileK</b> can also be specified (see<ib>nameResource limits</ib>]section for more info on suffixes).If suffix is not specified, value is in kilobytes.</p>
<p style="margin-left:1711%;">This command restores acontainer from the dump file created by the <b>chkpnt--diskinodes</b>command.<i>num</i>[:<i>num</i>]</p>
<p style=== Snapshotting ==="margin-left:22%;">sets soft and hard disk quotalimits, in i-nodes. First parameter is soft limit, second ishard limit.</p>
<p style="margin-left:22%; 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 thisparameter is onlyworking ignored for containers on <b>ploop device</b> layout.</p>
<p style="margin-left:11%;"><b>snapshot</b> |<b>snapshot-create</b> <i>CTID</i> [<b>--idquotatime</b><i>uuidseconds</i>]</p>
<p style="margin-left:1722%;">Creates a container snapshotsets quota grace period.If <i>uuid</i> Container is not specifiedpermitted to exceed its soft limits for thegrace period, but once it has expired, the soft limit is auto-generated. If acontainer is running, it&rsquo;s checkpointed and thenrestored. If enforced as a container is not running, only file systemstate is savedhard limit.</p>
<p style="margin-left:1122%;margin-top: 1em"><b>snapshot-switch</b>Note that this<i>CTID</i> parameter is ignored for <b>--idploop</b> <i>uuid</i>layout.</p>
<p style="margin-left:1711%;">Switches the container to a<b>--quotaugidlimit</b>snapshot identified by <i>uuidnum</i>. Note that the current</p> <p style="margin-left:22%;">Enables or disablesin-container state per-user and its file system state is lost! per-group disk quotas. If giventhesnapshot contains CT memory dumpvalue is set to <b>0</b> or not set, it disk quotas inside thecontainer is restoreddisabled and not accounted.</p> <p style="margin-left:22%; margin-top: 1em">For<b>simfs</b> layout containers, otherwisenon-zero value sets maximumit number of user/group IDs for which disk quota is stoppedaccounted.</p>
<p style="margin-left:1122%;margin-top: 1em">For<b>snapshot-deleteploop</b>layout containers, any non-zero value enables<i>CTID<disk quota inside the container; the number of user/i> <b>--id</b> <i>uuid</i>groupIDs used by disk quota is not limited by OpenVZ.</p>
<p style="margin-left:1722%;margin-top: 1em">Removes a specifiedNote thatsnapshotenabling or disabling in-container disk quotas requirescontainer restart, so consider using <b>--setmode</b>option.</p>
<p style="margin-left:11%;"><b>snapshot-list</b><i>CTID</i></p>=== Capability option ====
<p style="margin-left:1711%;">Lists all snapshots. Active<b>--capability</b>snapshot is marked with <i>capname</i>:<b>*on</b> sign|<b>off</b>[<b>,</b>...]</p>
<p style=== Performing "margin-left:22%;">Sets a capability for acontainer actions ===. Multiple comma-separated capabilities can bespecified.</p>
<table widthp style="100margin-left:22%; margin-top: 1em" border="0" rules="none" frame="void">Note that cellspacing="0" cellpadding="0">setting a capability when the container is running does not<tr valign="top" align="left">take immediate effect; restart the container in order forthe changes to take effect (consider using <td width="11%"b>--setmode</tdb>option).<td width="9%"/p>
<p style="margin-left:22%; margin-top: 1em"><b>create</b>A container hasthe default set of capabilities, thus any operation oncapabilities is &quot;logical AND&quot; with the defaultcapability mask.</p></td><td width="2%"></td><td width="78%">
<p style="margin-left:22%; margin-top: 1em">You can use thefollowing values for <i>CTIDcapname</i>: <b>chown</b>,[<b>--ostemplate&nbsp;dac_override</b>, <b>dac_read_search</b>, <ib>namefowner</ib>],[<b>--config&nbsp;fsetid</b>, <ib>namekill</ib>][, <b>--layout&nbsp;simfssetgid</b>|, <b>ploopsetuid</b>[,<b>:setpcap</b>{, <b>expandedlinux_immutable</b>|,<b>plainnet_bind_service</b>|, <b>rawnet_broadcast</b>}]],[<b>--diskspace&nbsp;net_admin</b>, <b>net_raw</b>, <ib>kbytesipc_lock</ib>],[<b>--private&nbsp;ipc_owner</b>, <b>sys_module</b>, <ib>pathsys_rawio</ib>],[<b>--root&nbsp;sys_chroot</b>, <b>sys_ptrace</b>, <ib>pathsys_pacct</ib>],[<b>--ipadd&nbsp;sys_admin</b>, <b>sys_boot</b>, <ib>addrsys_nice</ib>],[<b>--hostname&nbsp;sys_resource</b>, <b>sys_time</b>, <ib>namesys_tty_config</ib>],[<b>--name&nbsp;mknod</b>, <ib>namelease</ib>, <b>]setveid</pb>, <b> ve_admin</tdb>.For detailed description, see <b>capabilities</trb>(7).</tablep>
<p style="margin-left:1722%; margin-top: 1em">Creates a new<b>WARNING</b>:setting some of those capabilities may have far reachingsecurity implications, so do not do it unless you know whatcontainer areayou are doing. This operation should be done once, beforeAlso note that setting <b>setpcap:on</b> forthe first a container will most probably lead to inability to start of the containerit.</p>
<p style="margin-left:17%; margin-top: 1em">By default, anOS template denoted by <b>DEF_OSTEMPLATE</b> parameter of[[Man/vz.conf.5|<b>vz.conf</b>(5)]] is used to create a container. This can beoverwritten by <b>--ostemplate</b> option.</p>=== Device access management ====
<p style="margin-left:1711%; margin"><b>--top: 1em"devnodes</b>By default, anew container configuration file is created from a sampleconfiguration denoted by value of <i>device</i>:[<b>CONFIGFILEr</b>parameter of ][<b>w</b>][Man<b>q</vz.conf.5b>]|<b>vz.confnone</b>(5)]]. If the containerconfiguration file already exists, it will not bemodified.</p>
<p style="margin-left:1722%; margin-top: 1em">The value ofGive the container an access(<b>CONFIGFILEr</b> can be overwritten by using the- read, <b>w</b>-write, <b>q</b> -configdisk quotamanagement, <b>none</b> - no access) to a device designatedby the special file /dev/<i>namedevice</i> option. This option can not beDevice file isused if the created in a container configuration file already existsby <b>vzctl</b>.Example:</p>
<p pre style="margin-left:1722%; margin-top: 1em">A new containercan either be created using <b>simfs</b> filesystem or on a<b>ploop</b> device. The default is vzctl set by value of<b>VE_LAYOUT</b> parameter of [[Man/vz.conf.5|<b>vz.conf</b>(5)]] and can beoverwritten by <b>777 --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</b>. Default is<b>expanded</b>. Using <b>raw</b> is not recommended and isnot supported.devnodes sdb:rwq</ppre>
<p style="margin-left:1711%; margin-top: 1em">You can use<b>--diskspacedevicesb</b>|<b>c</b> option to specify container file systemsize. Suffixes :<i>major</i>:<i>minor</i>|<b>all</b>:[<b>Gr</b>, ][<b>Mw</b>, ][<b>Kq</b> can also bespecified (see ]|<b>Resource limitsnone</b> section for more infoon suffixes).</p>
<p style="margin-left:1722%; margin-top: 1em">You can useGive the container an access toa <b>--rootb</b> lock or <ib>pathc</ib> option to sets the path to themount point for the container root directory (default isharacter device designated by its<bi>VE_ROOTmajor</bi> specified in [[Man/vz.conf.5|and <bi>vz.confminor</bi>(5)]] numbers. Device file).Argument can contain literal string <b>$VEID</b>, which willhave tobe substituted with the numeric CT IDcreated manually.</p>
<p style="margin-left:17%; 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 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.</p>=== PCI device management ====
<p style="margin-left:1711%; margin-top: 1em">You can use<b>--ipaddpci_add</b> [<i>domain</i>:]<i>bus</i>:<i>addrslot</i> option to assign an IP address toa container. Note that this option can be used multipletimes.<i>func</i></p>
<p style="margin-left:1722%; margin-top: 1em">You can useGive the container an access toa specified PCI device. All numbers are hexadecimal (asprinted by <b>--hostnamelspci</b> <i>name</i> option to set a host name fora container(8) in the first column).</p>
<p style="margin-left:11%;"><b>destroy--pci_del</b> | [<i>domain</i>:]<i>bus</i>:<bi>deleteslot</bi>.<i>CTIDfunc</i></p>
<p style="margin-left:1722%;">Removes Delete a container privatearea by deleting all files, directories and PCI device from theconfiguration file of this container.</p>
<p style="margin-left:1122%;margin-top: 1em">Note that<b>startvps-pci</b> <i>CTID</i>configuration script is executed by[<b>--waitvzctl</b>] [then configuring PCI devices. The script isusually located at <b>--force/usr/libexec/vzctl/scripts/</b>].</p>
<p style="margin-left:17%;">Mounts (if necessary) andstarts a container. Unless <b>--wait</b> option isspecified, <b>vzctl</b> will return immediately; otherwisean attempt to wait till the default runlevel is reached willbe made by <b>vzctl</b>.</p>=== Features management ====
<p style="margin-left:1711%; margin-top: 1em">Specify<b>--forcefeatures</b> if you want to start a container which isdisabled (see <i>name</i>:<b>--disabledon</b>|<b>off</b>[<b>,</b>)...]</p>
<p style="margin-left:1722%; margin-top: 1em">Note that thisEnable or disable a specificcommand can lead to execution of container feature. Known features are: <b>premountsysfs</b>,<b>mountnfs</b> and , <b>startsit</b> action scripts (see , <b>ACTIONipip</b>, <b>ppp</b>,SCRIPTS<b>ipgre</b> below), <b>bridge</b>, <b>nfsd</b>. A few features canbe specified at once, comma-separated.</p>
<p style="margin-left:11%;"><b>stop</b> <i>CTID</i>[<b>--fast</b>]</p>=== Apply config ====
<p style="margin-left:1711%;">Stops and unmounts a container.Normally, <b>halt</b>(8) is executed inside a container;option <b>--fastapplyconfig</b> makes <bi>vzctlname</b> use <bi>reboot</b>(2)syscall instead which is faster but can lead to uncleancontainer shutdown.</p>
<p style="margin-left:1722%; margin">Read container parameters fromthe container sample configuration file<tt>/etc/vz/conf/ve-</tt><i>name</i><tt>.conf-top: 1em"sample</tt>Note that this,command can lead and apply them, if <b>--save</b> option specified save to execution of the container config file. The following parameters are notchanged: <b>stopHOSTNAME</b>, <b>umountIP_ADDRESS</b>,and <b>postumountOSTEMPLATE</b> action scripts (see , <b>ACTIONVE_ROOT</b>, andSCRIPTS<b>VE_PRIVATE</b> below).</p>
<p style="margin-left:11%;"><b>restart--applyconfig_map</b> <i>CTIDgroup</i>[<b>--wait</b>] [<b>--force</b>] [<b>--fast</b>]</p>
<p style="margin-left:1722%;">Restarts a Apply container, configparameters selected by <i>group</i>.e.Now the only possiblestops it if it value for <i>group</i> is running, and starts again. Accepts all the<b>startname</b> and : to restore containername based on <b>stopNAME</b> optionsvariable in containerconfiguration file.</p>
<p style="margin-left:17%; margin-top: 1em">Note that thiscommand can lead to execution of some action scripts (see<b>ACTION SCRIPTS<=== I/b> below).</p>O scheduling ====
<p style="margin-left:11%;"><b>status--ioprio</b> <i>CTIDpriority</i></p>
<p style="margin-left:1722%;">Shows a Assigns disk I/O priority tocontainer status. This<i>Priority</i> range is <b>0-7</b>. The greater<i>priority</i> is a line with five or six words, separated by spacesthe more time for I/O activity containerhas. By default each container has <i>priority</i> of<b>4</b>.</p>
<p style="margin-left:1711%; margin"><b>-top: 1em"-iolimit</b>First word isliterally <i>limit</i>[<b>B</b>|<b>K</b>|<b>M</b>|<b>CTIDG</b>.]</p>
<p style="margin-left:1722%; margin-top: 1em">Second word Assigns disk I/O bandwidthlimit for a container. Value iseither a number with anthe numeric optional suffix, or a literal string <b>unlimited</b>. Valueof <ib>CT ID0</ib>means &quot;unlimited&quot;. By default acontainer has no I/O limit. Maximum allowed limit is 2gigabytes per second; values exceeding the limit aretruncated.</p>
<p style="margin-left:1722%; margin-top: 1em">Third word If no suffix isshowing whether this container exists or notprovided, it can the <i>limit</i> is assumed to bein megabytes persecond. Available suffixes are: <br>either &bull; <b>existb</b> or , <b>deletedB</b>.-- bytes per second; <br>&bull; <b>k</b>, <b>K</b> -- kilobytes per second; <br>&bull; <b>m</b>, <b>M</b> -- megabytes per second (default);<br>&bull; <b>g</b>, <b>G</b> -- gigabytes per second;</p>
<p style="margin-left:1711%; margin-top: 1em">Fourth word isshowing the status of the container filesystem, it can beeither <b>mounted--iopslimit</b> or <bi>unmountediops</bi>.</p>
<p style="margin-left:1722%; margin-top: 1em">Fifth wordAssigns IOPS limit for ashows if the container is running, it can be eitherin number of input/output operations per second.Value is a number or a literal string <b>runningunlimited</b> or .Value of <b>down0</b>means &quot;unlimited&quot;. By default acontainer has no IOPS limit.</p>
<p style="margin-left:17%; margin-top: 1em">Sixth word, ifexists, is <b>suspended</b>. It appears if both a container== Suspending and its dump file exist (see <b>chkpnt</b>).</p>resuming ===
<p style="margin-left:17%; margin-top: 1em">This commandCheckpointing is a feature ofOpenVZ kernel which allows to save a complete in-kernelcan also be usable from scriptsstate of a running container, and to restore it later.</p>
<p style="margin-left:11%;"><b>mountsuspend</b> |<b>chkpnt</b><i>CTID</i>[<b>--dumpfile</b> <i>name</i>]</p>
<p style="margin-left:17%;">Mounts This command suspends acontainer private area.Note that this command can lead to execution ofa dump file If an option <b>premount--dumpfile</b> and isnot set, default dump file name<b>mount/vz/dump/Dump.</b> action scripts (see<bi>ACTION SCRIPTSCTID</bi> below)is used.</p>
<p style="margin-left:11%;"><b>umountresume</b> |<b>restore</b><i>CTID</i>[<b>--dumpfile</b> <i>name</i>]</p>
<p style="margin-left:17%;">Unmounts container privatearea. Note that this This command can lead to execution ofrestores acontainer from the dump file created by the <b>umount</b> and <b>postumountsuspend</b> action scripts (see<b>ACTION SCRIPTS</b> below)command.</p>
<p style="margin-left:17%; margin-top: 1em">Note that<b>stop</b> does <b>umount</b> automatically.</p>== Snapshotting ===
<p style="margin-lefttop:11%;1em"><b>convert</b> <i>CTID</i>Snapshotting is a feature basedon checkpointing and ploop shapshots. It allows to save acomplete state of container file system. Plus, if the[<b>container is running, it&rsquo;s in--layoutmemory state (as incheckpointing). Note that snapshot functionality is onlyworking for containers on ploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b>|<b>raw</b>}]]device.</p>
<p style="margin-left:1711%;">Convert CT private area to<b>snapshot</b> <i>CTID</i>reside on a ploop device (available in kernel version[<b>--id</b> <i>uuid</i>] [<b>--name</b> <i>name</i>]042stab052.8 and greater). Conversion should be performed[<b>--description</b> <i>desc</i>] <br>when a container is stopped, plus disk space quota should beset.[<b>--skip-suspend</b>] [<b>--skip-config</b>]</p>
<p style="margin-left:1117%;"><b>quotaon</b> <Creates a container snapshot,i>CTID</i>.e. saves the current container state, including its filesystem state, running processes state, and configurationfile.</p>
<p style="margin-left:17%;margin-top: 1em">Turn disk quota on. Not thatIf a containeris running, and <b>mount--skip-suspend</b> option is notspecified, a container is checkpointed and then restored,and <b>start</b> does that automaticallyCT memory dump becomes the part of snapshot.</p>
<p style="margin-left:1117%;margin-top: 1em">Unless<b>quotaoff--skip-config</b> <i>CTID</i>option is given, containerconfiguration file is saved to the snapshot.</p>
<p style="margin-left:17%;margin-top: 1em">Turn disk quota offIf <i>uuid</i>is not specified, it is auto-generated. Not thatOptions<b>umount--name</b> and <b>stop--description</b> can be used tospecify the snapshot name and description, respectively.Name is displayed by <b>snapshot-list</b> does that automatically.</p>
<p style="margin-left:11%;"><b>quotainitsnapshot-switch</b><i>CTID</i> [<b>--skip-resume</b> | <b>--must-resume</b>][<b>--skip-config</b>] <b><br>--id</b> <i>uuid</i></p>
<p style="margin-left:17%;">Initialize disk quota (i.e. runSwitches the container to asnapshot identified by <bi>vzquota inituuid</bi>, restoring its filesystem state, configuration (if available) with the parameters taken from the CTand its runningconfiguration file [[Man/ctid.conf.5|<b>ctid.conf</b>state (5if available)]].</p>
<p style="margin-left:1117%;margin-top: 1em"><b>execNote thatthe current state of a container (including its file systemstate and its configuration file) is lost!</b> <i>CTIDcommand</i></p>
<p style="margin-left:17%;margin-top: 1em">Executes Option<ib>command--skip-resume</ib> is used to ignore a CT memory dump filein asnapshot, as a result the container. Environment variables are not set inside thewill end up beingcontainer. Signal handlers may differ from default settings.in a stopped state (same as if a snapshot has been takenIf with <b>--skip-suspend<i/b>command).</ip> <p style="margin-left:17%; margin-top: 1em"> is If option<b>--must-resume</b>is set, absense of a memory dump istreated as an error, commands are read and the inability to restore fromthestdinmemory dump is treated as an error rather than warning.</p>
<p style="margin-left:1117%;margin-top: 1em">Option option<b>exec2--skip-config</b> <is used to ignore the CT configurationfile in a snapshot, i>CTID.e. the current configuration file willcommand</i>be left as is.</p>
<p style="margin-left:1711%;">The same as <b>execsnapshot-delete</b>, butreturn code is that of <i>commandCTID</i> <b>--id</b> <i>uuid</i>.</p>
<p style="margin-left:1117%;"><b>runscript</b> <i>CTIDRemoves a specifiedscript</i>snapshot.</p>
<p style="margin-left:1711%;">Run specified shell script in<b>snapshot-mount</b>the container. Argument <i>scriptCTID</i> is a file on the hostsystem which contents is read by vzctl and executed in thecontext of the container. For a running container, thecommand jumps into the container and executes the script.For a stopped container, it enters the container, mountscontainer&rsquo;s root filesystem, executes the script, andunmounts CT root. In the latter case, the container is notreally started, no file systems other than root (such as<b>--id</b> <i>uuid</proci> <b>--target</b>) are mounted, no startup scripts are executedetc. Thus the environment in which the script is running isfar from normal and is only usable for very basicoperations.<i>directory</i></p>
<p style="margin-left:1117%;"><b>enter</b> <i>CTID</i>Mounts a snapshot specified by[<b>--exec</b> <i>commanduuid</i> [to a <i>argdirectory</i> .Note this mount isread-only..]]</p>
<p style="margin-left:1711%;">Enters into a container (givinga container&rsquo;s root shell). This option is a back<b>snapshot-doorumount</b>for host root only. The proper way to have CT root shell isto use <i>CTID</i> <b>ssh--id</b>(1).<i>uuid</i></p>
<p style="margin-left:17%; margin-top: 1em">Option<b>--exec</b> is used to run <i>command</i> with argumentsafter entering into container. This is useful if command tobe run requires Unmounts a terminal (so <b>vzctl exec</b> can not bespecifiedused) and for some reason you can not use <b>ssh</b>(1)snapshot.</p>
<p style="margin-left:1711%; margin"><b>snapshot-top: 1em"list</b>You need to logout manually from the shell to finish session (even if you<i>CTID</i> [<b>-H</b>] [<b>-o</b>specified <i>field</i>[,<i>field</i>...] [<b>--execid</b>).<i>uuid</i>]</p>
<p style="margin-left:1117%;"><b>console</b> <i>CTID</i>List container&rsquo;ssnapshots.</p>
<p style="margin-left:17%;margin-top: 1em">Attach to the container&rsquo;sconsole. Note that the console is persistent, meaning it You canbe attached to even if the container is not running, andthere is no automatic detachment when the container isstoppedsuppress displaying header using <b>-H</b> option.</p>
<p style="margin-left:17%; margin-top: 1em">Type <b>Esc</b>You can use thethen <b>.-o</b> option to detach from display only the console. Type <b>Esc</b>specifiedthen <bi>,field</bi> to detach without killing anything(s). Note thatList of available fields can be obtainedthese sequences are only recognized after using <b>Enter-L</b>option.</p>
=== Other options Performing container actions ===
<p styletable width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="margin-left:"><td width="11%;"><b>--help</btd></ptd width="9%">
<p style="margin-lefttop:171em"><b>create</b></p></td><td width="2%;">Prints help message with a</td>brief list of possible options.</ptd width="78%">
<p style="margin-lefttop:11%;1em"><i>CTID</i>[<b>--versionostemplate&nbsp;</b><i>name</pi>][<b>--config&nbsp;</b><i>name</i>][<p style="marginb>--leftlayout&nbsp;simfs</b>|<b>ploop</b>[<b>:17%</b>{<b>expanded</b>|<b>plain</b>|<b>raw</b>}]][<b>--diskspace&nbsp;</b><i>kbytes</i>][<b>--diskinodes&nbsp;</b><i>num</i>][<b>--private&nbsp;</b><i>path</i>][<b>--root&nbsp;</b><i>path</i>][<b>--ipadd&nbsp;</b><i>addr</i>][<b>--hostname&nbsp;</b><i>name</i>][<b>--name&nbsp;"</b><i>name</i>Prints ][<b>vzctl--local_uid&nbsp;</b><i>uid</i>]version.[<b>--local_gid&nbsp;</b><i>gid</i>]</p> </td></tr></table>
<p style== ACTION SCRIPTS =="margin-left:17%; margin-top: 1em">Creates a newcontainer area. This operation should be done once, beforethe first start of the container.</p>
<p style="margin-left:1117%; margin-top: 1em">By default, anOS template denoted by <b>vzctlDEF_OSTEMPLATE</b>parameter ofhas an ability to execute user-defined scripts when aspecific [[Man/vz.conf.5|<b>vzctlvz.conf</b> command (5)]] is run for used to create a container. Thefollowing <b>vzctl</b> commands This can trigger execution ofbeaction scripts: overwritten by <b>start</b>, <b>stop</b>, <b>restart</b>,<b>mount</b> and <b>umount--ostemplate</b>option.</p>
<p style="margin-left:1117%; margin-top: 1em">Action scriptsBy default, aare located in the new container configuration file is created from a sampleconfiguration denoted by value of <b>/etc/vz/conf/CONFIGFILE</b> directoryparameter of [[Man/vz. There areglobal and per-CT scriptsconf. Global scripts have a literalprefix of 5|<b>vpsvz.conf</b> and are executed for all containers(5)]].If the containerPer-CT scripts have a <i>CTID</i> numeric prefix and areconfiguration file already exists, it will not beexecuted for the given container onlymodified.</p>
<p style="margin-left:1117%; margin-top: 1em">Please noteThe value ofscripts are executed in a host system (CT0) context, withthe exception of <b>.startCONFIGFILE</b> and can be overwritten by using the<b>.stop--config</b> scripts,<i>name</i> option. This option can not bewhich are executed in a used if the container contextconfiguration file already exists.</p>
<p style="margin-left:1117%; margin-top: 1em">A new containercan either be created using <b>simfs</b> filesystem or on a<b>ploop</b> device. The followingdefault is set by value of<b>VE_LAYOUT</b> parameter of [[Man/vz.conf.5|<b>vz.conf</b>(5)]] and can beaction scripts are currently defined: overwritten by <b>--layout</b> option. In case <b>ploop<br/b>vpsis used, one can additionally specify ploop disk imageformat after a colon.premountPossible ploop formats are<b>expanded</b>, <ib>CTIDplain</ib>and <b>raw</b>.premountDefault is<b>expanded</b>. Using value other than <b>expanded</b> isnot recommended and is currently not supported.</p>
<p style="margin-left:2217%;margin-top: 1em">Global You can use<b>--diskspace</b> and per<b>-CT mount scripts-diskinodes</b> options towhich are executed for a specify container before it is mountedfile system size.Note that forScripts are executed in the host system context<b>ploop</b> layout, while a CTis you will not yet mounted or running. Global script, if exists, isbe able to change inodesexecuted firstvalue later.</p>
<p style="margin-left:1117%;margin-top: 1em">If<b>vpsDISKSPACE</b> is not specified either in the sampleconfiguration file used for creation or in globalconfiguration file [[Man/vz.mountconf.5|<b>vz.conf</b>(5)]],<ib>CTID--diskspace</ib>parameter is required for <b>.mountploop</b>layout.</p>
<p style="margin-left:2217%;margin-top: 1em">Global and per-CT mount scriptsSuffixeswhich are executed for a container right after it is<b>G</b>, <b>M</b>, <b>K</b> can also be specified (seemounted. Otherwise they are the same as <b>.premountResource limits</b>section for more info onscriptssuffixes).</p>
<p style="margin-left:1117%;margin-top: 1em">You can use<b>--root</b><i>CTIDpath</i>option to sets the path to themount point for the container root directory (default is<b>VE_ROOT</b> specified in [[Man/vz.conf.5|<b>vz.startconf</b>(5)]] file).Argument can contain literal string <b>$VEID</b>, which willbe substituted with the numeric CT ID.</p>
<p style="margin-left:2217%;margin-top: 1em">Right after You can use<b>vzctl--private</b> has<i>path</i> option to set the path tostarted a directory in which all the files and directories specific tothis very containerare stored (default is <b>VE_PRIVATE</b>specified in [[Man/vz.conf.5|<b>vz.conf</b>(5)]] file). Argument can containliteral string <b>$VEID</b>, it executes this script in a containerwhich will be substituted withcontextthe numeric CT ID.</p>
<p style="margin-left:1117%;margin-top: 1em">You can use<ib>CTID--ipadd</ib><bi>.stopaddr</bi>option to assign an IP address toa container. Note that this option can be used multipletimes.</p>
<p style="margin-left:2217%;margin-top: 1em">Right before You can use<b>vzctl--hostname</b> has<i>name</i> option to set a host name forstopped a container, it executes this script in a containercontext.</p>
<p style="margin-left:1117%;margin-top: 1em">When runningwith an upstream Linux Kernel that supports user namespaces(&gt;= 3.8), the parameters <b>--local_uid</b> and<b>vps.umount--local_gid</b>,can be used to select which <i>uid</i>and <i>CTIDgid</i>respectively will be used as a base user inthe host system. Note that user namespaces provide a 1:1mapping between container users and host users. If theseoptions are not specified, the values <b>LOCAL_UID</b>and<b>LOCAL_GID</b> from global configuration file[[Man/vz.conf.5|<b>vz.conf</b>(5)]] are used.umountAn explicit <b>--local_uid</b>value of 0 will disable user namespace support, and run thecontainer as a privileged user. In this case,<b>--local_gid</b> is ignored.</p>
<p style="margin-left:2217%;margin-top: 1em">Global <b>Warning:</b>use <b>--local_uid</b> and per<b>--CT umountlocal_gid</b> with care,specially when migrating containers. In all situations, thescripts which are executed for a container before it is&rsquo;s files in the filesystem needs to beunmounted. Scripts are executed in correctly owned by the host system context,while a CT is mounted. Global script, if exists, is executedfirst-side users.</p>
<p style="margin-left:11%;"><b>vps.postumountdestroy</b>,| <ib>CTIDdelete</ib><bi>.postumountCTID</bi></p>
<p style="margin-left:2217%;">Global and per-CT umountscripts which are executed for Removes a container right after it isprivateunmounted. Otherwise they are area by deleting all files, directories and the same as <b>.umount</b>scriptsconfiguration file of this container.</p>
<p style="margin-left:11%; margin-top: 1em">The environmentpassed to all the <b>*mountstart</b> scripts is the standard<i>CTID</i>environment of the parent (i.e. [<b>vzctl--wait</b>) with twoadditional variables: ] [<b>$VEID--force</b> and ] [<b>$VE_CONFFILE--skip-fsck</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--skip-remount</b>, it needs to get thosefrom global and per-CT configuration files.]</p>
<p style="margin-left:1117%; margin-top: 1em">Here is anMounts (if necessary) andexample of starts a mount script, which makes host system&rsquo;s/mnt/disk available to container(s). Script name can eitherbe Unless <b>/etc/vz/conf/vps.mount--wait</b> oroption isspecified, <b>/etc/vz/conf/vzctl</b><i>CTID</i>will return immediately; otherwisean attempt to wait till the default runlevel is reached willbe made by <b>.mountvzctl</b>.</p>
<pre p style="margin-left:1117%; margin-top: 1em"> # If one of these files does not exist then somethingSpecify # <b>--force</b> if you want to start a container which is really broken [ disabled (see <b>-f /etc/sysconfig/vz ] || exit 1 [ -f $VE_CONFFILE ] || exit 1 # Source both files. Note the order is important. . disabled</etc/vz/vzb>).conf . $VE_CONFFILE SRC=/mnt/disk DST=/mnt/disk mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC</prep>
<p style== EXIT STATUS =="margin-left:17%; margin-top: 1em">Specify<b>--skip-fsck</b> to skip fsck for ploop-based containerfilesystem (this option is used by vz initscript).</p>
<p style="margin-left:1117%; margin-top: 1em">Returns 0 uponBy default, ifsuccessa container to be started happens to be already mounted, or an appropriate error code in case of anitis unmounted and mounted again. This behavior can be turnederror:off by using <b>--skip-remount</b> flag.</p>
<table widthp style="100margin-left:17%; margin-top: 1em" border="0" rules="none" frame="void">Note that this cellspacing="0" cellpadding="0"command can lead to execution of <b>premount</b>,<tr valign="top" align="left"b>mount</b>and <td width="11%"b>start</tdb> action scripts (see <b>ACTIONSCRIPTS</b> below).<td width="4%"/p>
<pstyle="margin-left:11%;">1<b>stop</pb> <i>CTID</tdi>[<b>--fast<td width="7%"/b>] [<b>--skip-umount</tdb>]<td width="78%"/p>
<pstyle="margin-left:17%;">Failed to set Stops a UBC parametercontainer and unmountsit (unless <b>--skip-umount</pb> is given). Normally,<b>halt</tdb>(8) is executed inside a container; option<b>--fast</trb>makes <b>vzctl<tr valign="top" align="left"/b>use <td width="11%"b>reboot</tdb>(2)syscall instead which is faster but can lead to uncleancontainer shutdown.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">Note that<b>2vzctl 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">Failed Note that thiscommand can lead to set a fair scheduler parameterexecution of <b>stop</pb>, </tdb>umount</trb>and <tr valign="top" align="left"b>postumount</b>action scripts (see <td width="11%"b>ACTIONSCRIPTS</tdb>below).<td width="4%"/p>
<pstyle="margin-left:11%;">3<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%;">Generic system errorRestarts a container, i.e.stops it if it is running, and starts again. Accepts all the</pb>start</tdb>and </trb>stop<tr valign="top" align="left"><td width="11%"/b>options.</td><td width="4%"p>
<p>5</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%;">The running kernel is not an OpenVZ kernel (or someOpenVZ modules are not loaded)</pb>status</tdb></tri>CTID<tr valign="top" align="left"><td width="11%"/i></td><td width="4%"p>
<p>6</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>Not enough system resources</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>7</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">Third word isshowing whether this container exists or not, it can beeither <b>ENV_CREATEexist</b> ioctl failedor </pb>deleted</tdb>.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">8Fourth 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">Command executed by Fifth wordshows if the container is running, it can be either<b>vzctl execrunning</b> returned non-zeroexit codeor </pb>down</tdb>.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:17%; margin-top: 1em">9Sixth word, ifexists, is </pb>suspended</tdb>. It appears if a dump fileexists for a stopped container (see <td width="7%"b>suspend</tdb>).<td width="78%"/p>
<p>Container is locked by another <b>vzctl</b>invocation</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%;">10</pb>mount</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Global OpenVZ configuration file [[Man/vzMounts container private area.conf.5|Note that this command can lead to execution of<b>vz.confpremount</b>(5)]] notfoundand </pb> mount</td></trb>action scripts (see<tr valign="top" align="left"b>ACTION SCRIPTS<td width="11%"/b>below).</td><td width="4%"p>
<pstyle="margin-left:11%;">11</pb>umount</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">A vzctl helper script file not foundUnmounts container privatearea. Note that this command can lead to execution of</pb>umount</tdb>and </trb>postumount<tr valign="top" align="left"/b>action scripts (see<td width="11%"b>ACTION SCRIPTS</tdb>below).<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">12Note that</pb>stop</tdb>does <td width="7%"b>umount</tdb>automatically.<td width="78%"/p>
<pstyle="margin-left:11%;"><b>Permission deniedconvert</pb></tdi>CTID</tri>[<tr valign="top" align="left"b>--layoutploop</b>[<b>:</b>{<td width="11%"b>expanded</b>|<b>plain</b>|<b>raw</b>}]]</tdp> <td widthp style="4margin-left:17%;">Convert CT private area toreside on a ploop device (available in kernel version042stab052.8 and greater). Conversion should be performedwhen a container is stopped, plus disk space quota should beset.</p>
<pstyle="margin-left:11%;">13</pb>compact</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<p>Capability setting failed</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%;">14</pb>quotaon</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Container configuration file [[Man/ctidTurn disk quota on.conf.5|Not that<b>ctid.confmount</b>(5)]] notfoundand </pb> start</tdb>does that automatically.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:11%;">15</pb>quotaoff</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Timeout on Turn disk quota off. Not that<b>vzctl execumount</b>and </pb>stop</tdb>does that automatically.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:11%;">16</pb>quotainit</tdb><td width="7%"i>CTID</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Error during Initialize disk quota (i.e. run<b>vzctl chkpntvzquota init</b><) with the parameters taken from the CTconfiguration file [[Man/p>ctid.conf.5|</tdb>ctid.conf</tr><tr valign="top" align="left"><td width="11%"b>(5)]].</td><td width="4%"p>
<pstyle="margin-left:11%;">17</pb>exec</tdb><td width="7%"i>CTIDcommand</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Error during Executes <bi>vzctl restorecommand</bi>in acontainer. Environment variables are not set inside thecontainer. Signal handlers may differ from default settings.If </pi>command</tdi>is </trb>-<tr valign="top" align="left"/b>, commands are read from<td width="11%">stdin.</td><td width="4%"p>
<pstyle="margin-left:11%;">18</pb>exec2</tdb><td width="7%"i>CTIDcommand</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Error from The same as <b>setluid()exec</b> syscall, butreturn code is that of </pi>command</tdi>.</tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"p>
<pstyle="margin-left:11%;">20</pb>runscript</tdb><td width="7%"i>CTIDscript</tdi><td width="78%"/p>
<pstyle="margin-left:17%;">Invalid command line parameterRun specified shell script inthe container. Argument </pi>script</td></tri>is a file on the hostsystem which contents is read by vzctl and executed in thecontext of the container. For a running container, thecommand jumps into the container and executes the script.For a stopped container, it enters the container, mountscontainer&rsquo;s root filesystem, executes the script, andunmounts CT root. In the latter case, the container is not<tr valign="top" align="left">really started, no file systems other than root (such as<td width="11%"b>/proc</tdb>) are mounted, no startup scripts are executedetc. Thus the environment in which the script is running isfar from normal and is only usable for very basicoperations.<td width="4%"/p>
<pstyle="margin-left:11%;"><b>enter</b> <i>21CTID</pi>[<b>--exec</b> <i>command</i> [<i>arg</i>...]]</tdp> <td widthp style="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).</p> <td widthp style="78margin-left:17%; margin-top: 1em">Option<b>--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).</p>
<p>Invalid value for command line parameter</p></td></tr><tr valignstyle="margin-left:17%; margin-top" align="left: 1em">You need to logout manually from the shell to finish session (even if youspecified <td width="11%"b>--exec</tdb>).<td width="4%"/p>
<pstyle="margin-left:11%;"><b>22console</pb> <i>CTID</tdi>[<td width="7%"i>ttynum</tdi>]<td width="78%"/p>
<pstyle="margin-left:17%;">Attach to a container console.Optional <i>ttynum</i>Container root directory argument is tty number (such as<b>VE_ROOT4</b>) not setfor </pb>tty4</tdb>), default is </trb>1<tr valign="top" align="left"/b>which is usedfor container&rsquo;s <td width="11%"b>/dev/console</tdb>.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">23Note theconsoles are persistent, meaning that: </pbr>&bull; it can be attached to even if the container is notrunning; </tdbr>&bull; there is no automatic detachment upon the containerstop; <td width="7%"br>&bull; detaching from the console leaves anything running inthis console as is.</td><td width="78%"p>
<pstyle="margin-left:17%; margin-top: 1em">Container private directory (The followingescape sequences are recognized by <b>VE_PRIVATEvzctl console</b>) not.setNote that these sequences are only recognized at thebeginning of a line.</p> </td></tr> <tr valignp style="margin-left:17%; margin-top" align="left: 1em">&bull;<td width="11%"b>Esc</b> then <b>.</tdb>to detach from the console.<td width="4%"/p>
<pstyle="margin-left:17%; margin-top: 1em">24&bull;</pb>Esc</tdb>then <td width="7%"b>!</tdb>to kill anything running on theconsole (SAK). This is helpful when one expects a loginprompt but there isn&rsquo;t one.<td width="78%"/p>
<p>Container template directory (<b>TEMPLATE</b>) notset</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td widthOther options ==="4%">
<p>28</p></td><td widthstyle="7margin-left:11%;"><b>--help</tdb><td width="78%"/p>
<p>Not all required UBC parameters are set, unable to startcontainer</p> </td></tr><tr valign="top" alignstyle="margin-left:17%;">Prints help message with a<td width="11%">brief list of possible options.</td><td width="4%"p>
<p>29</p></td><td widthstyle="7margin-left:11%;"><b>--version</tdb><td width="78%"/p>
<p>OS template is not specified, unable to createcontainer</p> </td></tr><tr valign="top" alignstyle="margin-left:17%;">Prints <td width="11%"b>vzctl</tdb>version.<td width="4%"/p>
<p>31</p></td><td width="7%"></td><td width="78%">ACTION SCRIPTS ==
<pstyle="margin-left:11%; margin-top: 1em"><b>Container not runningvzctl</pb>has an ability to execute user-defined scripts when aspecific <b>vzctl</tdb> command is run for a container. Thefollowing <b>vzctl</trb>commands can trigger execution ofaction scripts: <b>start</b>, <b>stop<tr valign="top" align="left"/b>, <b>restart</b>,<td width="11%"b>mount</b> and <b>umount</tdb>.<td width="4%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Action scriptsare located in the <b>32/etc/vz/conf/</pb> directory. There areglobal and per-CT scripts. Global scripts have a literalprefix of <b>vps.</tdb>and are executed for all containers.Per-CT scripts have a <td width="7%"i>CTID</i><b>.</tdb>numeric prefix andare executed for the given container only.<td width="78%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Container already runningPlease notescripts are executed in a host system (CT0) context, withthe exception of </pb>.start</tdb>and </trb>.stop<tr valign="top" align="left"/b>scripts,<td width="11%">which are executed in a container context.</td><td width="4%"p>
<pstyle="margin-left:11%; margin-top: 1em">33The followingaction scripts are currently defined: <b><br>vps.premount</pb>, <i>CTID</tdi><td width="7%"b>.premount</tdb><td width="78%"/p>
<p>Unable to stop container</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Global and per-CT mount scriptswhich are executed for a container before it is mounted.<td width="11%">Scripts are executed in the host system context, while a CTis not yet mounted or running. Global script, if exists, isexecuted first.</td><td width="4%"p>
<pstyle="margin-left:11%;">34<b>vps.mount</pb>,<i>CTID</tdi><td width="7%"b>.mount</tdb><td width="78%"/p>
<p>Unable to add IP address to container</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%;">40</pi>CTID</tdi><td width="7%"b>.start</tdb><td width="78%"/p>
<p>Container not mounted</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%;">41</pi>CTID</tdi><td width="7%"b>.stop</tdb><td width="78%"/p>
<p>Container already mounted</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Right before <td width="11%"b>vzctl</tdb>hasstopped a container, it executes this script in a containercontext.<td width="4%"/p>
<pstyle="margin-left:11%;">43<b>vps.umount</pb>,<i>CTID</tdi><td width="7%"b>.umount</tdb><td width="78%"/p>
<p>Container private area not found</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Global and per-CT umountscripts which are executed for a container before it is<td width="11%">unmounted. Scripts are executed in the host system context,while a CT is mounted. Global script, if exists, is executedfirst.</td><td width="4%"p>
<pstyle="margin-left:11%;">44<b>vps.postumount</pb>,<i>CTID</tdi><td width="7%"b>.postumount</tdb><td width="78%"/p>
<p>Container private area already exists</p></td></tr><tr valign="top" alignstyle="margin-left:22%;">Global and per-CT umountscripts which are executed for a container right after it isunmounted. Otherwise they are the same as <td width="11%"b>.umount</tdb>scripts.<td width="4%"/p>
<pstyle="margin-left:11%; margin-top: 1em">The environmentpassed to all the <b>*mount</b>46scripts is the standardenvironment of the parent (i.e. <b>vzctl</pb>) with twoadditional variables: <b>$VEID</b> and <b>$VE_CONFFILE</tdb>.The first one holds the ID of the container, and the secondone holds the full path to the container configuration file.If the script needs to get other CT configurationparameters, such as <td width="7%"b>$VE_ROOT</tdb>, it needs to get thosefrom global and per-CT configuration files.<td width="78%"/p>
<pstyle="margin-left:11%; margin-top: 1em">Not enough Here is anexample of a mount script, which makes host system&rsquo;s/mnt/disk spaceavailable 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 /tdetc/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:</trp> <table width="100%" border="0" rules="none" frame="void" cellspacing="0" cellpadding="0"><tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>471</p></td>
<td width="7%"></td>
<td width="78%">
<p>Bad/broken container (<b>/sbin/init</b> or<b>/bin/sh</b> not found)Failed to set a UBC parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>482</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable Failed to create set a new container private areafair scheduler parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>493</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to create a new container root areaGeneric system error</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>505</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to mount containerThe running kernel is not an OpenVZ kernel (or someOpenVZ modules are not loaded)</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>516</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to unmount containerNot enough system resources</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>527</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to delete a container<b>ENV_CREATE</b> ioctl failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>538</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container private area not existCommand 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>609</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container is locked by another <b>vzquota onvzctl</b> failedinvocation</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6110</p></td>
<td width="7%"></td>
<td width="78%">
<p>Global OpenVZ configuration file [[Man/vz.conf.5|<b>vzquota initvz.conf</b> failed(5)]] notfound</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6211</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>vzquota setlimit</b> failedA vzctl helper script file not found</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6312</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter <b>DISKSPACE</b> not setPermission denied</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6413</p></td>
<td width="7%"></td>
<td width="78%">
<p>Parameter <b>DISKINODES</b> not setCapability setting failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6514</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting second-level Container configuration file [[Man/ctid.conf.5|<b>ctid.conf</b>(ugid5) quota]] notfound</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6615</p></td>
<td width="7%"></td>
<td width="78%">
<p>Timeout on <b>vzquota offvzctl exec</b> failed</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>6716</p></td>
<td width="7%"></td>
<td width="78%">
<p>ugid quota not initializedError during <b>vzctl suspend</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7117</p></td>
<td width="7%"></td>
<td width="78%">
<p>Incorrect IP address formatError during <b>vzctl resume</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7418</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error changing passwordfrom <b>setluid()</b> syscall</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7820</p></td>
<td width="7%"></td>
<td width="78%">
<p>IP address already in useInvalid command line parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>7921</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container action script returned an errorInvalid value for command line parameter</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8222</p></td>
<td width="7%"></td>
<td width="78%">
<p>Config file copying errorContainer root directory (<b>VE_ROOT</b>) not set</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8623</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting devices Container private directory (<b>--devicesVE_PRIVATE</b> or) not<b>--devnodes</b>)set</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>8924</p></td>
<td width="7%"></td>
<td width="78%">
<p>IP address Container template directory (<b>TEMPLATE</b>) not availableset</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>9128</p></td>
<td width="7%"></td>
<td width="78%">
<p>OS template not foundNot 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>10029</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable OS template is not specified, unable to find createcontainer IP address</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10431</p></td>
<td width="7%"></td>
<td width="78%">
<p><b>VE_NETDEV</b> ioctl errorContainer not running</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10532</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container start disabledalready running</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10633</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to set iptables on a running stop container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10734</p></td>
<td width="7%"></td>
<td width="78%">
<p>Distribution-specific configuration file not foundUnable to add IP address to container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>10940</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to apply a configContainer not mounted</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>12941</p></td>
<td width="7%"></td>
<td width="78%">
<p>Unable to set meminfo parameterContainer already mounted</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13043</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting veth interfaceContainer private area not found</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13144</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting container nameContainer private area already exists</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13346</p></td>
<td width="7%"></td>
<td width="78%">
<p>Waiting for container start failedNot enough disk space</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>13947</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error saving Bad/broken container configuration file(<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>14848</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error setting Unable to create a new container IO parameters (ioprio)private area</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15049</p></td>
<td width="7%"></td>
<td width="78%">
<p>Ploop image file not foundUnable to create a new container root area</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15150</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error creating ploop imageUnable to mount container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15251</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error mounting ploop imageUnable to unmount container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15352</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error unmounting ploop imageUnable to delete a container</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>15453</p></td>
<td width="7%"></td>
<td width="78%">
<p>Container private area not exist</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>60</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota on</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>61</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota init</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>62</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota setlimit</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>63</p></td><td width="7%"></td><td width="78%"> <p>Parameter <b>DISKSPACE</b> not set</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>64</p></td><td width="7%"></td><td width="78%"> <p>Parameter <b>DISKINODES</b> not set</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>65</p></td><td width="7%"></td><td width="78%"> <p>Error setting in-container disk quotas</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>66</p></td><td width="7%"></td><td width="78%"> <p><b>vzquota off</b> failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>67</p></td><td width="7%"></td><td width="78%"> <p>ugid quota not initialized</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>71</p></td><td width="7%"></td><td width="78%"> <p>Incorrect IP address format</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>74</p></td><td width="7%"></td><td width="78%"> <p>Error changing password</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>78</p></td><td width="7%"></td><td width="78%"> <p>IP address already in use</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>79</p></td><td width="7%"></td><td width="78%"> <p>Container action script returned an error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>82</p></td><td width="7%"></td><td width="78%"> <p>Config file copying error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>86</p></td><td width="7%"></td><td width="78%"> <p>Error setting devices (<b>--devices</b> or<b>--devnodes</b>)</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>89</p></td><td width="7%"></td><td width="78%"> <p>IP address not available</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>91</p></td><td width="7%"></td><td width="78%"> <p>OS template not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>99</p></td><td width="7%"></td><td width="78%"> <p>Ploop is not supported by either the running kernel orvzctl.</p> </td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>100</p></td><td width="7%"></td><td width="78%"> <p>Unable to find container IP address</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>104</p></td><td width="7%"></td><td width="78%"> <p><b>VE_NETDEV</b> ioctl error</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>105</p></td><td width="7%"></td><td width="78%"> <p>Container start disabled</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>106</p></td><td width="7%"></td><td width="78%"> <p>Unable to set iptables on a running container</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>107</p></td><td width="7%"></td><td width="78%"> <p>Distribution-specific configuration file not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>109</p></td><td width="7%"></td><td width="78%"> <p>Unable to apply a config</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>129</p></td><td width="7%"></td><td width="78%"> <p>Unable to set meminfo parameter</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>130</p></td><td width="7%"></td><td width="78%"> <p>Error setting veth interface</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>131</p></td><td width="7%"></td><td width="78%"> <p>Error setting container name</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>133</p></td><td width="7%"></td><td width="78%"> <p>Waiting for container start failed</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>139</p></td><td width="7%"></td><td width="78%"> <p>Error saving container configuration file</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>148</p></td><td width="7%"></td><td width="78%"> <p>Error setting container IO parameters (ioprio)</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>150</p></td><td width="7%"></td><td width="78%"> <p>Ploop image file not found</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>151</p></td><td width="7%"></td><td width="78%"> <p>Error creating ploop image</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>152</p></td><td width="7%"></td><td width="78%"> <p>Error mounting ploop image</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>153</p></td><td width="7%"></td><td width="78%"> <p>Error unmounting ploop image</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>154</p></td><td width="7%"></td><td width="78%"> <p>Error resizing ploop image</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>155</p></td><td width="7%"></td><td width="78%"> <p>Error converting container to ploop layout</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>156</p></td><td width="7%"></td><td width="78%"> <p>Error creating ploop snapshot</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>157</p></td><td width="7%"></td><td width="78%"> <p>Error merging ploop snapshot</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>158</p></td><td width="7%"></td><td width="78%"> <p>Error deleting ploop snapshot</p></td></tr><tr valign="top" align="left"><td width="11%"></td><td width="4%"> <p>159</p></td><td width="7%"></td><td width="78%"> <p>Error switching ploop snapshot</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>158166</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error deleting compacting ploop snapshotimage</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p>159167</p></td>
<td width="7%"></td>
<td width="78%">
<p>Error switching listing ploop snapshotsnapsots</p></td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2000-20112013, Parallels, Inc. Licensed under GNU GPL.</p>
2,253
edits

Navigation menu