To create and start a VPs, run the following commands:
Quote:
[server-node]# vzctl create VEID --ostemplate osname
[server-node]# vzctl set VEID --ipadd b.c.d.e --save
[server-node]# vzctl start VEID
|
Here VEID is the numeric ID for the
VPS Hosting; osname is the name of the OS template for the
VPS Hosting, and b.c.d.e is the IP address to be assigned to the VE.
For example:
Quote:
[server-node]# vzctl create 102 --ostemplate centos-4-minimal
[server-node]# vzctl set 102 --ipadd b.c.d.e --save
[server-node]# vzctl start 102
|
Your new VPs should be up and running now. You can see its processes:
Quote:
|
[server-node]# vzctl exec VEID ps ax
|
To enter
VPS Hosting give the following command:
Quote:
[server-node]# vzctl enter VEID
entered into VPS Hosting VEID
[ve]#
|
To exit from
VPS Hosting, just type exit and press enter:
To stop VPs:
To destroy VPs:
Quote:
[server-node]# vzctl destroy VEID
Destroying VPS Hosting private area: /vz/private/VEID
VPS Hosting private area was destroyed
|
Njoy,