在Linux 下配置OPENVZ 实例 推荐使用Fedora Core 4/5/3 或者RHEL/CentOS 4。 1. 下载安装文件 根据您的内核版本在这里:http://openvz.org/download/kernel/ 下载。......
在Linux 下配置OPENVZ 实例
推荐使用Fedora Core 4/5/3 或者RHEL/CentOS 4。
1. 下载安装文件
根据您的内核版本在这里:http://openvz.org/download/kernel/ 下载。
# rpm -ihv vzkernel-name*.rpm
2.修改grub.conf 文件
title OpenVZ (2.6.8-022stab029.1) root (hd0,0) kernel
/vmlinuz-2.6.8-022stab029.1 ro root=/dev/sda5 initrd /initrd-2.6.8-022stab029.1.img |
3.修改、etc/sysyctl.conf文件:
/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
#net.ipv4.tcp_ecn = 0
# we do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1 |
4. 如果你运行了iptables防火墙和SELinux,先关闭和禁止。
编辑/etc/sysconfig/selinux:
SELINUX=disabled。
另外还要关闭iptables防火墙。
5.安装OpenVZ管理软件
根据您的版本在这里:http://openvz.org/download/utils/ 下载。
# rpm –Uhv vzctl*.rpm vzquota*.rpm vzpkg*.rpm
1/3 1 2 3 下一页 尾页 |