Adding a VPS in OpenVZ
This is another really basic guide that is aimed at getting a very basic VPS online. It is the companion guide to my guide on installing openvz. The below shows the downside to useing openvz instead of paying thousands for a real Virtuozo license. If you can deal with doing a little by shell you can save a lot of cash. This is also an open source project so if you wanted to help contribute you could. I do not go into all of the detauls to configuring it but by the end of the guide you will have a vps with just ssh running.
First off I want to give the link to the official users guide, it is really good and was used extensively in creating a lot of my VPS information.
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
cd /etc/sysconfig/vz-scripts
cp ve-vps.basic.conf-sample vps.basic.conf
cp ve-vps.light.conf-sample vps.light.conf
Now edit the 2 above files as needed. They are the configs, or as most people would call them packages, that will be used when you create a vps.
The 101 used in all of the commands below is the vps number, this will obviously change for every user. Just Pick another number when you are adding another user.
vzctl create 101 –ostemplate centos-4-i386-minimal –config vps.basic
vzctl set 101 –onboot yes –save
vzctl set 101 –hostname testing.eth0.us –save
vzctl set 101 –ipadd 67.15.186.XXX –-save
(this is the ip address the server will be using)
vzctl set 101 –nameserver 67.15.31.XXX –save
(this is the ip address used in the resolve.conf)
vzctl start 101
vzctl exec 101 service sshd start
vzctl set 101 –userpasswd root:t3mp