PVE 7 升级 8 笔记

升级前准备

  1. 磁盘空间检查 df -h
  2. 备份重要文件
  3. 当前 PVE7 是最新的小版本,执行此命令更新 apt update && apt upgrade && apt dist-upgrade
  4. 进行升级检测,执行 pve7to8 命令

升级检测

此步骤需确认执行结果FAILURES: 0,WARNINGS部分也要查看是否存在关键的影响。

resolved node ip not configured or active for 'pve' 错误 可能是修改过安装 PVE 时候的网段,cat /etc/hosts 查看,修改到匹配当前 PVE 的默认IP 地址即可.

最终再次执行完整升级检测 pve7to8 --full

升级

源更新

Debian 源sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list

PVE源sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list.d/pve-enterprise.list 如果还添加了其他的仓库比如 no-subscription 也需要更新。

Ceph软件包源echo "deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list

  • 执行 grep '' /etc/apt/sources.list* /etc/apt/sources.list.d/* review 是否还有 bullseye 源地址未修改为 bookworm.
  • 最终执行 apt update 刷新源索引(如果出现 401 错误,检查 enterprise 源是否已注释)

开始升级

apt dist-upgrade -y

升级完成之后 reboot 重启

升级过程中可能有的提示

  1. 如果出现 /etc/issue 相关提示,按 N 即可
  2. 如果出现提示 libc 等是否需要重启服务,切换成 YES 并回车
  3. 如果出现 openssh-server 选择 Keep the local version currently installed
  4. 如果出现 /etc/lvm/lvm.conf 提示,如果没有自己更新过此文件则按_Yes_(使用包维护者的版本)
  5. 如果出现 /etc/default/grub 相关提示,建议使用它提供的 diff 界面查看差异(如果配置过硬件直通等修改过此文件的场景),再选择
  6. 如果出现 pve-enterprise.list 修改的提示,按 N 回车

升级后

  1. 清理 apt autoremove
  2. 检查
    • 硬件直通是否正常
    • 如果更新过微码则需检查微码 grep 'stepping\|model\|microcode' /proc/cpuinfo
    • 虚拟机、LXC等功能是否正常
Published At
Tagged with
This site is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at https://wayjam.me.