中文 English

ProxmoxVE Upgrade from 8 to 9 How to upgrade to PVE9

Published: 2025-08-06
PVE Proxmox VE trixie upgrade
参考文档:https://pve.proxmox.com/wiki/Upgrade_from_8_to_9

Preparation before upgrading

pve8to9

apt update
apt dist-upgrade
pveversion

#reboot 建议更新完毕后重启1次

Operation step one (back up existing files)

cp /etc/apt/sources.list /etc/apt/sources.list_202508_bak
cp /etc/apt/sources.list.d/pve-install-repo.list /etc/apt/sources.list.d/pve-install-repo.list_202508_bak

Operation step two (start upgrading)

sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/pve-install-repo.list

apt update
apt dist-upgrade

Operation step three (remove unsubscribed prompts)

sed -i_orig "s/data.status === 'Active'/true/g" /usr/share/pve-manager/js/pvemanagerlib.js
sed -i_orig "s/if (res === null || res === undefined || \!res || res/if(/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
sed -i_orig "s/.data.status.toLowerCase() !== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
systemctl restart pveproxy

Operation step four (add display script to UI)

#稳定版
wget -q -O /root/pve_source.tar.gz \
'https://bbs.x86pi.cn/file/topic/2023-11-28/file/01ac88d7d2b840cb88c15cb5e19d4305b2.gz' \
&& tar zxvf /root/pve_source.tar.gz && /root/./pve_source

Operation step five (restart)

reboot