Changes
created
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.
To create and start a [[VE]], run the following commands:
<pre>
[host-node]# vzctl create VEID --ostemplate osname
[host-node]# vzctl set VEID --ipadd a.b.c.d --save
[host-node]# vzctl start VEID
</pre>
Here <tt>VEID</tt> is the numeric ID for the VE; <tt>osname</tt> is the name of the OS template for the VE, and <tt>a.b.c.d</tt> is the IP address to be assigned to the VE.
Example:
<pre>
[host-node]# vzctl create 101 --ostemplate fedora-core-5-minimal
[host-node]# vzctl set 101 --ipadd 10.1.2.3 --save
[host-node]# vzctl start 101
</pre>
Your freshly-created VPS should be up and running now; you can see its processes:
<pre>
[host-node]# vzctl exec VEID ps ax
</pre>
See the [http://openvz.org/documentation/mans/vzctl.8 vzctl(8) man page] for more information.
[[Category: Installation]]
[[Category: HOWTO]]
To create and start a [[VE]], run the following commands:
<pre>
[host-node]# vzctl create VEID --ostemplate osname
[host-node]# vzctl set VEID --ipadd a.b.c.d --save
[host-node]# vzctl start VEID
</pre>
Here <tt>VEID</tt> is the numeric ID for the VE; <tt>osname</tt> is the name of the OS template for the VE, and <tt>a.b.c.d</tt> is the IP address to be assigned to the VE.
Example:
<pre>
[host-node]# vzctl create 101 --ostemplate fedora-core-5-minimal
[host-node]# vzctl set 101 --ipadd 10.1.2.3 --save
[host-node]# vzctl start 101
</pre>
Your freshly-created VPS should be up and running now; you can see its processes:
<pre>
[host-node]# vzctl exec VEID ps ax
</pre>
See the [http://openvz.org/documentation/mans/vzctl.8 vzctl(8) man page] for more information.
[[Category: Installation]]
[[Category: HOWTO]]