:: OpenVZ on CentOS

:: Whati is
Please take a look at this.

:: Install OpenVZ
Installing OpenVZ on CentOS

:: Using OpenVZ on CentOS
Before using OpenVZ, you must have a virtual machine template that will be used, it's usually stored in the /var/template/cache directory. you can create a virtual machine by your hands or download it at http://wiki.openvz.org/Download/template/precreated
+ Download a virtual machine template (CentOS 5)
[root@mail ~]# cd /vz/template/cache/
[root@mail cache]# wget http://download.openvz.org/template/precreated/centos-5-x86.tar.gz

+ Create VPS from CentOS 5 virtual machine template
[root@mail cache]# vzctl create 333 --ostemplate centos-5-x86 --config vps.basic --ipadd 10.100.100.35 --hostname tox.blackonsole.org
Creating container private area (centos-5-x86)
Performing postcreate actions
Container private area was created
where :
* 333 : VPS ID, you must using number for this options.
* centos-5-i386-minimal : name of os/virtual machine template
* vps.basic : file configuration for vps, you can take a look other script on /etc/vz/conf directory.
* 10.100.100.35 : IP Address used for VPS
* tox.blackonsole.org : hostname of VPS

+ Set IP resolver and root password for VPS
[root@mail cache]# vzctl set 333 --nameserver 202.158.3.7 --userpasswd root:rootpasswd --save
where:
* 333 : VPS ID for setting
* 202.158.3.7 : IP Address of resolver
* root:rootpasswd : set password for root user

+ Starting VPS
[root@mail cache]# vzctl start 333
* 333 : ID VPS

+ Show VPS list
[root@mail cache]# vzlist
CTID NPROC STATUS IP_ADDR HOSTNAME
333 3 running 10.100.100.35 tox.blackonsole.org

+ Enter to VPS
[root@mail ~]# vzctl enter 333
you can login to VPS with that command or ssh client by remote login.

:: Destroy VPS
[root@mail cache]# vzctl stop 333
Stopping container ...
Container was stopped
Container is unmounted
[root@mail cache]# vzctl destroy 333
Destroying container private area: /vz/private/333
Container private area was destroyed

:: Links
+ GoogleLinux
+ HowToForge

0 komentar:

Post a Comment

:: Cheap Web Hosting :: ~ only from Rp. 900/mo; 250Mb/mo of Bandwidth ~ :: Web Hosting Murah Meriah :: ~ mulai dari Rp. 900/bln; Bandwidth 250Mb/bln ~