Changes

Jump to: navigation, search

Man/vzctl.8

1,831 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>
<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>
<p>[<i>flags</i>] <b>snapshot-switch</b> <i>CTID</i>
[<b>--skip-resume</b> | <b>--must-resume</b>] [<b>--skip-config</b>] <b>--id</b><i>uuid</i></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
[<b>--name&nbsp;</b><i>name</i>]
[<b>--description&nbsp;</b><i>string</i>]
[<b>--ostemplate&nbsp;</b><i>string</i>]
[<b>--stop-timeout&nbsp;</b><i>seconds</i>]
[<b>--ipadd&nbsp;</b><i>addr</i>]
<p style="margin-left:17%;">Add a textual description for a
container.</p>
 
<p style="margin-left:11%;"><b>--ostemplate</b>
<i>string</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. Useful
after a change/upgrade of a distribution running inside
container, as vzctl uses the value of OSTEMPLATE to run
distribution-specific scripts.</p>
<p style="margin-left:11%;"><b>--stop-timeout</b>
netfilter/iptables modules for a container. This option
replaces obsoleted <b>--iptables</b>.</p>
 
<p style="margin-left:22%; margin-top: 1em">The following
arguments can be used: <br>
&bull; <b>disabled</b> -- no iptables allowed <br>
&bull; <b>stateless</b> -- everything but conntracks and NAT
is allowed (i.e. filter and mangle) <br>
&bull;&nbsp;<b>stateful</b> -- everything but NAT is allowed
<br>
&bull;&nbsp;<b>full</b> -- all netfilter functionality</p>
<p style="margin-left:22%; margin-top: 1em">Note that
changing this parameter requires container restart, so
consider using <b>--setmode</b> option.</p>
 
<p style="margin-left:22%; margin-top: 1em">The following
arguments can be used: <b><br>
&bull; disabled</b></p>
 
<p style="margin-left:32%;">no modules are allowed</p>
 
<p style="margin-left:22%;"><b>&bull; stateless</b></p>
 
<p style="margin-left:32%;">all modules except NAT and
conntracks are allowed (i.e. filter and mangle); this is the
default</p>
 
<p style="margin-left:22%;"><b>&bull; stateful</b></p>
 
<p style="margin-left:32%;">all modules except NAT are
allowed</p>
 
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="9%">
 
<p><b>&bull; full</b></p></td>
<td width="1%"></td>
<td width="36%">
 
<p>all modules are allowed</p></td>
<td width="32%">
</td></tr>
</table>
<p style="margin-left:11%;"><b>--iptables</b>
<p style="margin-left:11%;"><b>snapshot-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%;">Switches the container to a
snapshot identified by <i>uuid</i>, restoring its filesystem state, configuration (if available) and its runningstate (if available). </p> <p style="margin-left:17%; margin-top: 1em"><b>Note that the currentstate of a container (including its file systemcontainer state and its configuration file system state ) is lost! If</b></p> <p style="margin-left:17%; margin-top: 1em">Optionsnapshot contains <b>--skip-resume</b> is used to ignore a CT memory dumpfilein a snapshot, and as a result the container will end up beingin a stopped state (same as if a snapshot has been takenwith <b>--skip-suspend</b>).</p> <p style="margin-left:17%; margin-top: 1em">If option<b>--skipmust-resume</b> is not specifiedset, container absense of a memory dump isrestoredtreated as an error, otherwise it and the inability to restore from thememory dump is stoppedtreated as an error rather than warning. If snapshot contains CT</p> configuration file, and <p style="margin-left:17%; margin-top: 1em">Option option <b>--skip-config</b> is notused to ignore the CT configurationspecifiedfile in a snapshot, container i.e. the current configuration file willbe left as is restored.</p>
<p style="margin-left:11%;"><b>snapshot-delete</b>
<p style="margin-left:11%;"><b>start</b> <i>CTID</i>
[<b>--wait</b>] [<b>--force</b>] [<b>--skip-fsck</b>][<b>--skip-remount</b>]</p>
<p style="margin-left:17%;">Mounts (if necessary) and
<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">By default, if
a container to be started happens to be already mounted, it
is unmounted and mounted again. This behavior can be turned
off by using <b>--skip-remount</b> flag.</p>
<p style="margin-left:17%; margin-top: 1em">Note that this
2,253
edits

Navigation menu