2,253
edits
Changes
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>]</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>]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
is set to the value of <b>VERBOSE</b> parameter in the
global configuration file [[Man/vz.conf.5|<b>vz.conf</b>(5)]], or to <b>0</b>
if not set by <b>VERBOSEViERBOSE</b> parameter.</p>
=== Setting container parameters ===
[<b>--name </b><i>name</i>]
[<b>--description </b><i>string</i>]
[<b>--stop-timeout </b><i>seconds</i>]
[<b>--ipadd </b><i>addr</i>]
[<b>--ipdel </b><i>addr</i>|<b>all</b>]
<p style="margin-left:17%;">Add a textual description for a
container.</p>
<p style="margin-left:11%;"><b>--stop-timeout</b>
<i>seconds</i></p>
<p style="margin-left:17%;">Sets a time to wait for
container to stop on <b>vzctl stop</b> before forcibly
killing it, in seconds. Note this option can not be used
without <b>--save</b> flag.</p>
<p style="margin-left:17%; margin-top: 1em">Special value
of <b>0</b> means to use compiled-in default.</p>
==== Networking ====
<p style="margin-left:11%;"><b>start</b> <i>CTID</i>
[<b>--wait</b>] [<b>--force</b>] [<b>--skip-fsck</b>]</p>
<p style="margin-left:17%;">Mounts (if necessary) and
<b>--force</b> if you want to start a container which is
disabled (see <b>--disabled</b>).</p>
<p style="margin-left:17%; margin-top: 1em">Specify
<b>--skip-fsck</b> to skip fsck for ploop-based container
filesystem (this option is used by vz initscript).</p>
<p style="margin-left:17%; margin-top: 1em">Note that this
syscall instead which is faster but can lead to unclean
container shutdown.</p>
<p style="margin-left:17%; margin-top: 1em">Note that
<b>vzctl stop</b> is not asyncronous, in other words vzctl
waits for container’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 changed
globally, by setting <b>STOP_TIMEOUT</b> in
[[Man/vz.conf.5|<b>vz.conf</b>(5)]], or per container (<b>STOP_TIMEOUT</b> in
[[Man/ctid.conf.5|<b>ctid.conf</b>(5)]], see <b>--stop-timeout</b>).</p>
<p style="margin-left:17%; margin-top: 1em">Note that this
<p style="margin-left:11%;"><b>restart</b> <i>CTID</i>
[<b>--wait</b>] [<b>--force</b>] [<b>--fast</b>][<b>--skip-fsck</b>]</p>
<p style="margin-left:17%;">Restarts a container, i.e.
<td width="78%">
<p>Parameter <b>DISKSPACE</b> not set (or set too high)</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>