Recent Changes - Search:




Main.OpenVZ History

Hide minor edits - Show changes to output

June 26, 2007, at 06:16 AM by -
Added lines 1-2:
Tue Jun 26 15:43:23 2007 reference linux man pages and
June 26, 2007, at 06:09 AM by -
Changed lines 3-4 from:
*[[OpneVZ Commands]]
*[[vzctl Commands]]
June 26, 2007, at 05:51 AM by -
Added lines 3-4:
*[[OpneVZ Commands]]
June 26, 2007, at 05:43 AM by -
Added lines 1-120:
OpenVZ is an Operating System-level server virtualization solution, built on Linux. OpenVZ creates isolated, secure virtual environments.

Most of the step for installing OpenVz can be found at

After installing your operating system run the following %red%yum update -y; shutdown -r now

*Step 1 Downloading and Installing OpenVZ Kernel and utilities

# cd /etc/yum.repos.d

# wget

# yum install ovzkernel
# yum install vzctl vzquota

*Step 2 Installing template utilities

# yum install vzpkg vzyum vzrpm43-python vzrpm44-python

*Step 3 Download Precreated template cache

#cd /vz/template/cache

Download Precreated Templates from:

*Most of the quick install steps can be found at

*Example Configuration After installing all the needed softwares:

[root@server1 template]# vzctl create 201 --ostemplate centos-4-i386-default
Creating VE private area (centos-4-i386-default)
Performing postcreate actions
VE private area was created

[root@server1 template]# vzctl set 201 --ipadd --save
Saved parameters for VE 201
[root@server1 template]# vzctl start 201
Starting VE ...
VE is mounted
Adding IP address(es):
Setting CPU units: 1000
VE start in progress...

[root@server1 template]# vzctl set 201 --onboot yes --save
Saved parameters for VE 201

[root@server1 template]# vzctl set 101 --hostname --save %red% syntax mistake made
Warning: distribution not specified default used /etc/vz/dists/default
Saved parameters for VE 101

[root@server1 template]# vzctl set 201 --hostname --save
Set hostname:
Saved parameters for VE 201

[root@server1 template]# vzctl set 201 --nameserver --save
File resolv.conf was modified
Saved parameters for VE 201

[root@server1 template]# vzctl set 201 --nameserver --save
File resolv.conf was modified
Saved parameters for VE 201

*Here i noted that the nameserver file resolv.conf get overwritten, which needs to be setup later.

[root@server1 template]# vzctl exec 201 service sshd status
sshd (pid 10026) is running...

[root@server1 template]# cd /etc/sysconfig/vz-scripts

[root@server1 vz-scripts]# ll
total 28
-rw-r--r-- 1 root root 228 Mar 13 08:58 0.conf
-rw-r--r-- 1 root root 1702 May 31 21:35 100.conf.destroyed
-rw-r--r-- 1 root root 26 Jun 25 12:23 101.conf
-rw-r--r-- 1 root root 1756 Jun 25 12:26 201.conf
-rw-r--r-- 1 root root 1703 Jun 15 15:22 202.conf
-rw-r--r-- 1 root root 1539 Mar 13 08:58 ve-light.conf-sample
-rw-r--r-- 1 root root 1558 Mar 13 08:58 ve-vps.basic.conf-sample

[root@server1 vz-scripts]# vzctl set 201 --userpasswd root:;server1 %red% Some problem with ; in passwd
-bash: !: event not found

[root@server1 vz-scripts]# vzctl enter 201
entered into VE 201

[root@cvps-11 /]# hostname

[root@server1 /]# passwd root
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

[root@server1 /]# exit
exited from VE 201
[root@server1 vz-scripts]#

%red%Setup memory for openvz - vzctl set 201 --vmguarpages 512M:600M --save

[root@server1 template]# vzctl destroy 201
Destroying VE private area: /vz/private/201
VE private area was destroyed
Edit - History - Print - Recent Changes - Search
Page last modified on June 26, 2007, at 06:16 AM