OpenVZ Forum


Home » General » Support » Ideal Cento's Setup
Ideal Cento's Setup [message #8704] Sun, 03 December 2006 22:01 Go to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
I am buying a server soon and want to setup OpenVz on it, ive been playing about with it on my home built server but does not fully function because of its setup.

I just want to make sure I do everything correct when it comes to the real server. Bellow is what I do so far.

1/ First install Centos 4.* on main server with minimal setup 615MB
2/ Run yum update -y to make sure fully updated
3/ Install Openvz kernel
4/ Configure boot loader
5/ Configure sysctl by changing the following lines
There is a number of kernel parameters that should be set for OpenVZ to work correctly. These parameters are stored in /etc/sysctl.conf file. Here is the relevant part of the file; please edit it accordingly.

# 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

6/ Turn off SELinux
7/ Reboot into OpenVZ kernel and install utilaties
8/ Run yum install vztmpl-centos-4.i386
9/ Run vzpkgcache
10/ Create VZ vzctl create 112 --ostemplate centos-4-i386-default
11/ Add ip vzctl set 112 --ipadd 192.168.6.112 --save
12/ I then start the vps and all works fine.

However i can not connect to the outside world at the moment due to me running OpenVz in VMware meaning only having one ip.

However I have a few questions:
1/ Is this the best way to install and is it correct
2/ When I add a ip to a VPS could I use a inbuilt one for example 192.168.0.100 and still have the VPS connect to the outside world. If so do i need to add anything to iptables on main host.
3/ When I add a servers ip to a VPS for example 246.156.234.123 do I have to do anything else for the VPS to be accessible by the outside world. Or running the ipadd line do this for me?

Thanks in Advance, sorry for the long post want to make sure i do it correctly Cool
Re: Ideal Cento's Setup [message #8705 is a reply to message #8704] Mon, 04 December 2006 06:54 Go to previous messageGo to next message
tanfwc is currently offline  tanfwc
Messages: 18
Registered: November 2006
Junior Member
I will answer question 1 & 3.

1) As long as you following the installation guide, you are safe.
3)Yes, use the command ipadd and the OpenVZ will handle it for you.


http://static.openvz.org/userbars/openvz-user.png
Re: Ideal Cento's Setup [message #8714 is a reply to message #8705] Mon, 04 December 2006 14:50 Go to previous message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
Ok thanks very much, so anyone have any ideas about question 2.

Thanks in Advance
Previous Topic: Viewing specific VPS's user_beancounters from the node.
Next Topic: *SOLVED* not /etc/init.d/vz in debain package
Goto Forum:
  


Current Time: Sun Nov 17 16:57:21 GMT 2024

Total time taken to generate the page: 0.02914 seconds