13
edits
Changes
m
VE->container
This article assumes you have already [[Quick installation|installed OpenVZ]] and prepared the [[OS template cache]](s). If not, follow the links to perform the steps needed.
== Create and start a VE container ==
To create and start a [[VEcontainer]], run the following commands:
<pre>
[host-node]# vzctl create VEID --ostemplate osname
</pre>
Here <tt>VEID</tt> is the numeric ID for the VE[[container]]; <tt>osname</tt> is the name of the OS template for the VE[[container]], and <tt>a.b.c.d</tt> is the IP address to be assigned to the VE[[container]].
Example:
</pre>
Your freshly-created VE [[container]] should be up and running now; you can see its processes:
<pre>
</pre>
== Enter to and exit from the VE container ==
To enter VE [[container]] give the following command:
<pre>
[host-node]# vzctl enter VEID
</pre>
To exit from VE[[container]], just type <code>exit</code> and press enter:
<pre>
[ve]# exit
</pre>
== Stop and destroy the VE container ==
To stop VE[[container]]:
<pre>
</pre>
And to destroy VE[[container]]:
<pre>
[host-node]# vzctl destroy VEID
</pre>
Now, when you know how to manage your [[VEcontainer]], learn about [[Resource management]].
[[Category: Installation]]
[[Category: HOWTO]]