Starterkits/server-pve: различия между версиями
м (нач) |
м (заготовка) |
||
Строка 1: | Строка 1: | ||
{{Stub}} | |||
Настройка [http://nightly.altlinux.org/p8/beta/basealt-p8-server-pve-20160610-x86_64.iso basealt-p8-server-pve.iso] после установки со слов shrek@: | Настройка [http://nightly.altlinux.org/p8/beta/basealt-p8-server-pve-20160610-x86_64.iso basealt-p8-server-pve.iso] после установки со слов shrek@: | ||
Версия от 18:42, 10 июня 2016
Настройка basealt-p8-server-pve.iso после установки со слов shrek@:
# mkdir /etc/net/ifaces/vmbr0 # mv /etc/net/ifaces/eth0/* /etc/net/ifaces/vmbr0/ # cp /etc/net/ifaces/vmbr0/options /etc/net/ifaces/eth0/ # cat /etc/net/ifaces/vmbr0/options BOOTPROTO=static CONFIG_WIRELESS=no CONFIG_IPV4=yes HOST='eth0' ONBOOT=yes TYPE=bri # printf "stp AUTO off\nsetfd AUTO 0\n" > /etc/net/ifaces/vmbr0/brctl # echo "10.0.0.254 mypve.localdomain mypve" >> /etc/hosts # . /etc/sysconfig/clock; echo $ZONE > /etc/timezone # cp /usr/share/doc/pve-cluster-4.*/rrdcached.sysconfig /etc/sysconfig/rrdcached # mkdir -p /var/lib/rrdcached/{db,journal} # systemctl start ntpd rrdcached ksmtuned crond # systemctl enable ntpd rrdcached ksmtuned crond # rm -f /etc/corosync/corosync.conf # systemctl start pve-cluster # pvecm create mypve # systemctl restart corosync pve-cluster # printf "\nauto vmbr0\n\tiface vmbr0 inet static\n\taddress 10.0.0.254\n\tnetmask 255.255.255.0\n\tgateway 10.0.0.1\n\tbridge_ports eth0\n\tbridge_stp off\n\tbridge_fd 0\n" >> /etc/network/interfaces # systemctl start pve-manager