Editing Basic operations in OpenVZ environment/ru
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | Данная статья предполагает, что у Вас уже [[Quick installation|установлен Openvz]]. Если не установлен, то пройдите по ссылке, что бы выполнить необходимые | + | Данная статья предполагает, что у Вас уже [[Quick installation|установлен Openvz]]. Если не установлен, то пройдите по ссылке, что бы выполнить необходимые действия. |
− | == | + | == Create and start a container == |
− | + | To create and start a [[container]], run the following commands: | |
<pre> | <pre> | ||
[host-node]# vzctl create CTID --ostemplate osname | [host-node]# vzctl create CTID --ostemplate osname | ||
Line 11: | Line 11: | ||
</pre> | </pre> | ||
− | + | 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]]. | |
− | + | Example: | |
<pre> | <pre> | ||
[host-node]# vzctl create 101 --ostemplate fedora-core-5-minimal | [host-node]# vzctl create 101 --ostemplate fedora-core-5-minimal | ||
Line 21: | Line 21: | ||
</pre> | </pre> | ||
− | + | Your freshly-created [[container]] should be up and running now; you can see its processes: | |
<pre> | <pre> | ||
Line 27: | Line 27: | ||
</pre> | </pre> | ||
− | == | + | == Enter to and exit from the container == |
− | + | To enter [[container]] give the following command: | |
<pre> | <pre> | ||
[host-node]# vzctl enter CTID | [host-node]# vzctl enter CTID | ||
Line 36: | Line 36: | ||
</pre> | </pre> | ||
− | + | To exit from [[container]], just type <code>exit</code> and press Enter: | |
<pre> | <pre> | ||
[container]# exit | [container]# exit | ||
Line 43: | Line 43: | ||
</pre> | </pre> | ||
− | == | + | == Stop and destroy the container == |
− | + | To stop [[container]]: | |
<pre> | <pre> | ||
Line 54: | Line 54: | ||
</pre> | </pre> | ||
− | + | And to destroy [[container]]: | |
<pre> | <pre> | ||
[host-node]# vzctl destroy CTID | [host-node]# vzctl destroy CTID | ||
Line 61: | Line 61: | ||
</pre> | </pre> | ||
− | + | Now, when you know how to manage your [[container]], learn about [[Resource management]]. | |
[[Category: Installation]] | [[Category: Installation]] | ||
[[Category: HOWTO]] | [[Category: HOWTO]] |