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
pveversion
最新的版本是 7.4.15
第三步:检查是否有兼容性问题
1
pve7to8
第四步:备份并替换Debian源
1 2
cp /etc/apt/sources.list /etc/apt/sources.list_bak sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
第五步:备份并新增PVE8升级源
1 2
cp /etc/apt/sources.list.d/pve-install-repo.list /etc/apt/sources.list.d/pve-install-repo.list_bak sed -i -e 's/bullseye/bookworm/g'/etc/apt/sources.list.d/pve-install-repo.list
第六步:CEPH需要,这里略
第七步:开始正式升级
1 2
apt update apt dist-upgrade
升级中会出现一些交互界面,下面是官网的建议
1 2 3 4 5 6 7 8 9 10 11 12
/etc/issue -> Proxmox VE will auto-generate this file on boot, and it has only cosmetic effects on the login console. Using the default"No" (keep your currently-installed version) is safe here.
/etc/lvm/lvm.conf -> Changes relevant for Proxmox VE will be updated, and a newer config version might be useful. If you did not make extra changes yourself and are unsure it's suggested to choose "Yes" (install the package maintainer's version) here.
/etc/ssh/sshd_config -> If you have not changed this file manually, the only differences should be a replacement of ChallengeResponseAuthentication no with KbdInteractiveAuthentication no and some irrelevant changes in comments (lines starting with #). If this is the case, both options are safe, though we would recommend installing the package maintainer's version in order to move away from the deprecated ChallengeResponseAuthentication option. If there are other changes, we suggest to inspect them closely and decide accordingly.
/etc/default/grub -> Here you may want totake special care, as this is normally only asked forif you changed it manually, e.g., for adding some kernel command line option. It's recommended to check the difference for any relevant change, note that changes in comments (lines starting with #) are not relevant. If unsure, we suggested to selected "No" (keep your currently-installed version)
第八步:去掉未订阅提示
1 2 3 4
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