#!/bin/bash
cd /etc/yum.repos.d
wget
http://download.openvz.org/openvz.repo
rpm –import
http://download.openvz.org/rpm-gpg-key-openvz
yum -y remove lksctp-tools
yum -y install ovzkernel vzctl vzquota
cat< /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
eof
cd /root
wget
http://download.lxlabs.com/download/...stall-slave.sh
sh ./hypervm-install-slave.sh –virtualization-type=none