Manalyse: различия между версиями
Перейти к навигации
Перейти к поиску
Vovan (обсуждение | вклад) (→Установка PVE) |
Avp (обсуждение | вклад) |
||
(не показано 10 промежуточных версий 1 участника) | |||
Строка 42: | Строка 42: | ||
echo 'default via 172.16.1.1' > /etc/net/ifaces/vmbr0/ipv4route | echo 'default via 172.16.1.1' > /etc/net/ifaces/vmbr0/ipv4route | ||
service network restart | service network restart | ||
+ | |||
+ | |||
+ | MACHINE_NAME='altedu-pve-a-XX' | ||
+ | |||
+ | hostnamectl set-hostname $MACHINE_NAME | ||
+ | IP=$(ip a | grep vmbr0 | tail -1 | awk {'print $2'} | awk -F '/' {'print $1'}) | ||
+ | HOST=$(hostname) | ||
+ | echo "127.0.0.1 localhost" > /etc/hosts | ||
+ | echo "$IP $HOST.nntc.nnov.ru $HOST" >> /etc/hosts | ||
+ | |||
+ | apt-get update -qq | ||
+ | apt-get dist-upgrade | ||
+ | apt-get install -qq -y pve-manager | ||
+ | |||
+ | systemctl start rrdcached ksmtuned crond lxcfs openvswitch nfs-client.target | ||
+ | systemctl enable rrdcached ksmtuned crond lxcfs openvswitch nfs-client.target | ||
+ | |||
+ | systemctl start pve-cluster | ||
+ | systemctl enable pve-cluster | ||
+ | |||
+ | systemctl start lxc lxc-net lxc-monitord pvedaemon pve-firewall pvestatd pve-ha-lrm pve-ha-crm spiceproxy pveproxy | ||
+ | systemctl enable corosync lxc lxc-net lxc-monitord pve-cluster pvedaemon pve-firewall pvestatd pve-ha-lrm pve-ha-crm spiceproxy pveproxy pve-guests | ||
+ | |||
+ | update-kernel -t un-def | ||
+ | apt-get install -qq -y kernel-modules-zfs-un-def | ||
+ | |||
+ | reboot | ||
+ | |||
+ | ==REPEAT== | ||
+ | |||
+ | ssh student@172.16.224.198 | ||
+ | su - | ||
+ | sed -i 's/#PermitRootLogin without-password/PermitRootLogin yes/g' /etc/openssh/sshd_config | ||
+ | systemctl restart sshd | ||
+ | exit | ||
+ | exit | ||
+ | ssh root@172.16.224.198 | ||
+ | |||
+ | ==Check kernel== | ||
+ | |||
+ | uname -a | ||
+ | |||
+ | |||
+ | |||
+ | goto http://localhost:8006 | ||
+ | |||
+ | [[Категория:Альт]] | ||
+ | [[Категория:PVE]] |
Текущая версия на 09:58, 4 августа 2021
Содержание
ОС "Alt Образование" (P9) с развёртыванием внутри PVE
Дистрибутив:
https://mirror.yandex.ru/altlinux/p9/images/education/x86_64/alt-education-9.1-x86_64.iso
Установка
1g /boot 20g /dev/alt-vg/root 1g /dev/alt-vg/swap_1
Установить пакеты среднее, высшее и средне-специальное образование (при инсталляции)
Установка PVE
ssh student@172.16.224.198 su -
sed -i 's/#PermitRootLogin without-password/PermitRootLogin yes/g' /etc/openssh/sshd_config systemctl restart sshd exit exit ssh root@172.16.224.198
rm -rf /etc/net/ifaces/* mkdir /etc/net/ifaces/vmbr0 cat << EOF > /etc/net/ifaces/vmbr0/options TYPE=bri ONBOOT=yes DISABLED=no NM_CONTROLLED=no CONFIG_WIRELESS=no CONFIG_IPV4=yes CONFIG_IPV6=no BOOTPROTO=static HOST="eth0" EOF
echo '172.16.224.198/16' > /etc/net/ifaces/vmbr0/ipv4address echo 'default via 172.16.1.1' > /etc/net/ifaces/vmbr0/ipv4route service network restart
MACHINE_NAME='altedu-pve-a-XX'
hostnamectl set-hostname $MACHINE_NAME IP=$(ip a | grep vmbr0 | tail -1 | awk {'print $2'} | awk -F '/' {'print $1'}) HOST=$(hostname) echo "127.0.0.1 localhost" > /etc/hosts echo "$IP $HOST.nntc.nnov.ru $HOST" >> /etc/hosts
apt-get update -qq apt-get dist-upgrade apt-get install -qq -y pve-manager
systemctl start rrdcached ksmtuned crond lxcfs openvswitch nfs-client.target systemctl enable rrdcached ksmtuned crond lxcfs openvswitch nfs-client.target
systemctl start pve-cluster systemctl enable pve-cluster
systemctl start lxc lxc-net lxc-monitord pvedaemon pve-firewall pvestatd pve-ha-lrm pve-ha-crm spiceproxy pveproxy systemctl enable corosync lxc lxc-net lxc-monitord pve-cluster pvedaemon pve-firewall pvestatd pve-ha-lrm pve-ha-crm spiceproxy pveproxy pve-guests
update-kernel -t un-def apt-get install -qq -y kernel-modules-zfs-un-def
reboot
REPEAT
ssh student@172.16.224.198 su - sed -i 's/#PermitRootLogin without-password/PermitRootLogin yes/g' /etc/openssh/sshd_config systemctl restart sshd exit exit ssh root@172.16.224.198
Check kernel
uname -a
goto http://localhost:8006