wiki:jazz/13-08-29

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 6.0 才有。官方只有提供 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
    ########### After reboot ###########
    cd /var/lib/vz/template/cache
    wget http://download.openvz.org/template/precreated/contrib/debian-6.0-i386-minimal.tar.gz
    wget http://download.openvz.org/template/precreated/contrib/debian-7.0-i386-minimal.tar.gz
    wget http://download.openvz.org/template/precreated/contrib/ubuntu-10.04-minimal_10.04_i386.tar.gz
    wget http://download.openvz.org/template/precreated/ubuntu-12.04-x86.tar.gz
    wget http://download.openvz.org/template/precreated/ubuntu-12.10-x86.tar.gz
    wget http://download.openvz.org/template/precreated/ubuntu-13.04-x86.tar.gz
    
  • 更多 Image 可到 http://download.openvz.org/template/ 下載。也可以直接透過 OpenVZ Web Panel 排程下載。

安裝 OpenVZ Web Panel

Last modified 11 years ago Last modified on Sep 6, 2013, 4:32:37 PM