Version 3 (modified by jazz, 11 years ago) (diff) |
---|
2013-08-29
OpenVZ & ovz-web-panel
安裝 OpenVZ
- [參考] http://www.howtoforge.com/installing-openvz-plus-management-of-vms-through-ispconfig-3-debian-6.0
- [備忘] 本來也有裝 ISPConfig3 ,但實驗環境所需要的需求複雜度並沒有那麼高,因此改用 OpenVZ Web Panel
- Ubuntu 目前沒有套件,Debian 才有。官方只有提供 RPM 套件。
apt-get -y install linux-image-openvz-686 vzctl vzquota vzdump ln -s /var/lib/vz /vz cat >> /etc/sysctl.conf << EOF net.ipv4.conf.all.rp_filter=1 net.ipv4.icmp_echo_ignore_broadcasts=1 net.ipv4.conf.default.forwarding=1 net.ipv4.conf.default.proxy_arp = 0 net.ipv4.ip_forward=1 kernel.sysrq = 1 net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.all.send_redirects = 0 net.ipv4.conf.eth0.proxy_arp=1 EOF sysctl -p cat /etc/vz/vz.conf | grep NEIGHBOUR_DEVS sed -i 's#NEIGHBOUR_DEVS=detect#NEIGHBOUR_DEVS=all#' /etc/vz/vz.conf cat /etc/vz/vz.conf | grep NEIGHBOUR_DEVS reboot
安裝 OpenVZ Web Panel
- [參考] http://code.google.com/p/ovz-web-panel/
wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh