openvz install & use
Installation
x86_64 (2 cores)
CentOS5.1
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
(It will install x86 & x86_64, so del the i386, or it will lead to some errors.)
rpm -e ovzkernel-2.6.18-53.1.19.el5.028stab053.14.i686
(Change the /etc/sysctl.conf add or change the values)
# For Openvz
# 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
(add the following lines to /etc/modprobe.conf)
options ip_conntrack ip_conntrack_enable_ve0=1
reboot
Labels: linux VPS
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home