PROXMOX VE8.0到9.0轻松升级
|Proxmox VE 9.0 正式发布了,主要的更新是基于Debian13,然后小修小补,所以新鲜升级。
首先确定现有版本是最新的8.4
apt update
apt dist-upgrade
更新版本之后,运行以下的命令,确定是否兼容,如果有Failures,先解决Failures。
pve8to9 #快速检查
pve8to9 --full #完全检查

完成之后,更新源
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/pve-enterprise.list
以下添加PVE 9.0的软件源
cat > /etc/apt/sources.list.d/proxmox.sources << EOF
Types: deb
URIs: http://download.proxmox.com/debian/pve
Suites: trixie
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF
添加ceph的无订阅源
cat > /etc/apt/sources.list.d/ceph.sources << EOF
Types: deb
URIs: http://download.proxmox.com/debian/ceph-squid
Suites: trixie
Components: no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF
添加完了之后,最好运行下pve8to9,重新检查下。
apt update
apt dist-upgrade
其中会有一段文字需要阅读,我直接就输入Q,退出了。然后会有两个提问,一个是是否允许系统自动重启一些程序,我是选择了yes。然后是一些配置文件怎么处理,我选择了保留。因为我怕系统出问题。中间根据情况,可能还要更新下CPU的微码.
我遇到的问题
更新CPU的微码
确保启用 non-free-firmware
软件源,在/etc/apt/sources.list里面找到
deb http://deb.debian.org/debian bookworm main contrib
修改为:
deb http://deb.debian.org/debian bookworm main contrib non-free-firmware
其他的也依葫芦画瓢,果你还有 /etc/apt/sources.list.d/pve-enterprise.list
或 pve-no-subscription.list
,也要确认加上 non-free-firmware
。修改好了之后,运行安装
apt update
apt install intel-microcode
升级PVE的时候提醒移除
FAIL: systemd-boot meta-package installed. This will cause problems on upgrades of other boot-related packages. Remove ‘systemd-boot’ See https://pve.proxmox.com/wiki/Upgrade_from_8_to_9#sd-boot-warning for more information.
解决方案:
apt remove systemd-boot
不要删除 systemd-boot-efi
或 systemd-boot-tools
,除非脚本明确说可以。
之后出现一些常见问题,可以查询我的另外一篇文章:PVE疑难杂症汇总