Well then here is a quick howto build a CentOS OpenVZ server and two Virtual Environments (VEs), just I case it helps you. OF COURSE this has the IPs I used, they should be replaced with whatever IPs you use (this is not necessarily for your benefit netlogic, more for the random person that may stumble upon this and try it
)
#### OpenVZ server build ####
# Install minimal CentOS with disabled SELinux
yum -y update
cd /etc/yum.repos.d
wget
http://download.openvz.org/openvz.repo
rpm --import
http://download.openvz.org/RPM-GPG-Key-OpenVZ
yum install ovzkernel-smp
### OR (I found that yum worked on one system but had to use rpm on another)
rpm -ihv ovzkernel-2.6.18-8.1.8.el5.028stab039.1.i686.rpm
# /etc/sysctl.conf file. Here is the relevant part of the file;
#please edit it accordingly. Only lines with two comments are
#commented out lines with one comment are essentially uncommented lines.
vi /etc/sysctl.conf
## On Hardware Node we generally need
## packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
## Enables source route verification
net.ipv4.conf.all.rp_filter = 1
## Enables the magic-sysrq key
kernel.sysrq = 1
## TCP Explict Congestion Notification
##net.ipv4.tcp_ecn = 0
## we do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
#SELinux should be disabled. To that effect, put the following line
#to /etc/sysconfig/selinux: SELINUX=disabled
shutdown -r -t 1 now
yum -y install vzctl vzquota
/sbin/service vz start
yum -y install vzpkg vzyum vzrpm43-python vzrpm44-python
yum search vztmpl
yum -y install vztmpl-centos-4.i386
vzpkgcache centos-4-i386-minimal
rpm -Uvh
http://download.openvz.org/contrib/u...0-2.noarch.rpm
rpm -Uvh
ftp://ftp.pbone.net/mirror/ftp.sourc...0-1.noarch.rpm
# To create and start a VE, run the following commands:
# vzctl create VEID --ostemplate osname
# vzctl set VEID --ipadd a.b.c.d --save
# vzctl start VEID
#Here VEID is the numeric ID for the VE; osname is the name of the OS template for the VE, and a.b.c.d is the IP address to be assigned to the VE.
#Example:
vzctl create 1921682188 --ostemplate centos-4-i386-minimal
vzctl set 1921682188 --ipadd 192.168.2.188 --save
vzctl start 1921682188
#Your freshly-created VE should be up and running now; you can see its processes:
vzctl exec 1921682188 ps ax
#To enter VE give the following command:
vzctl enter 1921682188
#To exit from VE, just type exit and press enter:
exit
#To stop the VE:
vzctl stop 1921682188
#And to destroy VE:
vzctl destroy 1921682188
###### Cloning a VE
# OLDVE=1921682188 NEWVE=1921682189 # Just an example
vzctl stop 1921682188
mkdir /vz/root/1921682189
cp /etc/vz/conf/1921682189.conf /etc/vz/conf/1921682189.conf
mkdir /vz/private/1921682189
pushd /vz/private/1921682188; tar c --numeric-owner * | tar x --numeric-owner -C /vz/private/1921682189; popd
vi /etc/vz/conf/1921682189.conf
# Change the IP_ADDRESS
vzctl start 1921682189
vzctl start 1921682188
#Because the base VE is a minimal CentOS system it is handy to have yum, below is a script that installs all of yum's dependancies and yum.
#Please note that the version numbers below may need updating!!!
####################
##
## Misc and YUM installs
##
####################
#correct your GATEWAY, as it will probably NOT be the default!!!
mv /etc/sysconfig/network /etc/sysconfig/network.original
touch /etc/sysconfig/network
echo "NETWORKING="yes"" >> /etc/sysconfig/network
echo "GATEWAY="xx.xx.xx.xX"" >> /etc/sysconfig/network
#Where xx.xx.xx.xx is the IP of your gateway
# Add nameserver
touch /etc/resolv.conf
echo "nameserver xx.xx.xx.xx" >> /etc/resolv.conf
#Where xx.xx.xx.xx is the IP of your nameserver, do it twice if there are two nameservers
service network restart
rpm -Uvh
http://mirror.centos.org/centos-4/4/...1.4-3.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/....3-13.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...-14.4.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...16-10.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...16-10.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...5.7-4.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...entos.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...3.6-2.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...1.2.1.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...7.1-4.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...onptl.i386.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...8-2.noarch.rpm
rpm -Uvh
http://mirror.centos.org/centos-4/4/...tos.noarch.rpm
yum -y update
yum -y install wget
rpm -Uvh
http://download.openvz.org/contrib/u...0-2.noarch.rpm
Have fun, go surfing