步骤1: 升级pve7到最新版本
备份好原始源数据
pve7的清华源-/etc/apt/sources.list
# 7.x
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-backports main contrib non-free
# security updates
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
pve7的清华企业源-/etc/apt/sources.list.d/pve-enterprise.list
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription
apt update && apt upgrade -y
步骤2:修改源为pve8同时删除pve7的源
pve8的清华源
# 8.0
deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports main contrib non-free non-free-firmware
# security updates
#deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
保留官方的加密源,防止清华源抽风
pve8的清华企业源
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
apt update
步骤3:添加ceph.list,防止出现404报错
echo "deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list
步骤4:下载密钥
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
步骤5:检查升级
pve7to8 --full
步骤6:没有错误之后,升级
apt update
apt dist-upgrade
可能会出现需要--fix-missing的情况,修复之后继续
apt-get update --fix-missing
没有特殊需求就一路回车
步骤7:升级完成重启,然后检查升级结果
systemctl reboot