Linux.RedHat . Redhat install openvz.

RedHat install OpenVZ

Used http://openvz.org/Quick_installation.


Steps:

1. Get OpenVZ repo
Run:
wget -P /etc/yum.repos.d/ http://ftp.openvz.org/openvz.repo


2. Sign/Import OpenVZ GPG key
Run:
rpm --import http://ftp.openvz.org/RPM-GPG-Key-OpenVZ


3. Install kernel
if ARCH i386:
Run:
$ yum install -y vzkernel.i686



if ARCH x64:
Run:
$ yum install -y vzkernel.x86_64



4. Install VZ tools:
Run:
$ yum install -y vzctl vzquota ploop


5. Edit '/etc/sysctl.conf' file.
Add next lines:
...
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 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
# 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. Disable SELinux.
Run:
$ echo "SELINUX=disabled" > /etc/sysconfig/selinux


Коментарі