Changes

Jump to: navigation, search

Basic operations in OpenVZ environment

171 bytes added, 23:28, 25 December 2015
Marked this version for translation
<translate>
<!--T:1-->
This article assumes you have already [[Quick installation|installed OpenVZ]]. If not, follow the link to perform the steps needed.
== Create and start a container ==<!--T:2-->
<!--T:3-->
To create and start a [[container]], run the following commands:
<pre>
</pre>
<!--T:4-->
Here <tt>CTID</tt> is the numeric ID for the [[container]]; <tt>osname</tt> is the name of the OS template for the [[container]], and <tt>a.b.c.d</tt> is the IP address to be assigned to the [[container]].
<!--T:5-->
Example:
<pre>
</pre>
<!--T:6-->
Your freshly-created [[container]] should be up and running now; you can see its processes:
<!--T:7-->
<pre>
[host-node]# vzctl exec CTID ps ax
</pre>
== Enter to and exit from the container ==<!--T:8-->
<!--T:9-->
To enter [[container]] give the following command:
<pre>
</pre>
<!--T:10-->
To exit from [[container]], just type <code>exit</code> and press Enter:
<pre>
</pre>
== Stop and destroy the container ==<!--T:11-->
<!--T:12-->
To stop [[container]]:
<!--T:13-->
<pre>
[host-node]# vzctl stop CTID
</pre>
<!--T:14-->
And to destroy [[container]]:
<pre>
</pre>
<!--T:15-->
Now, when you know how to manage your [[container]], learn about [[Resource management]].
</translate>

Navigation menu