debian 11 安装 pve
比如Debian11可以复制以下全部内容到ssh窗口中执行,其它的系统自行替换对应的镜像源
cat > /etc/apt/sources.list <<EOF
deb http://mirrors.ustc.edu.cn/debian bullseye main
deb http://mirrors.ustc.edu.cn/debian bullseye-updates main
deb http://mirrors.ustc.edu.cn/debian-security bullseye-security main
deb http://mirrors.ustc.edu.cn/debian bullseye-backports main
EOF
添加源
echo "deb [arch=amd64] http://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
添加key
wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
更新及安装依赖
sudo apt-get update -y && sudo apt-get full-upgrade -y
安装PVE7
apt install -y proxmox-ve postfix open-iscsi
重启后,若没有将PVE作为双启动安装在另一个操作系统上,那么可以移除掉操作系统探测器包。
apt remove os-prober
iptables -t nat -A POSTROUTING -s '192.168.5.0/24' -o enp5s0f0 -j MASQUERADE
暂无标签