PVE 9.0 带来的变化和升级教程
与8.4的版本差异
区别方面 | PVE 8.4 | PVE 9.0 |
基础系统 | 基于 Debian 12.10 “Bookworm”, 默认使用 Linux 内核 6.8.12 | 基于 Debian 13.0 “Trisquel”,默认使用 Linux 内核 6.14.12 |
虚拟化引擎 | QEMU 9.2.0 | QEMU 10.0.0 |
容器技术 | LXC 6.0.0 | LXC 6.0.4 |
存储技术 | OpenZFS 2.2.8,Ceph Squid 19.2.1 | OpenZFS 2.3.3,Ceph 19.2.3 |
新特性 | Mobile Web UI |
升级前准备工作:备份PVE的主要配置信息
一键脚本
https://github.com/GoGoBlacktea/Home.Data.Center/blob/main/backup_pve.sh
注意:
# 定义备份存储位置[根据实际情况修改]
_BACKUP_DIR="/home/pve/SystemBackup/PVE-Config"
此处如果有需要修改的,可以在脚本中修改后执行
wget https://raw.githubusercontent.com/GoGoBlacktea/Home.Data.Center/main/backup_pve.sh chmod +x backup_pve.sh ./backup_pve.sh
升级步骤
更新源服务器信息
vi /etc/apt/sources.list
## 默认禁用源码镜像以提高速度,如需启用请自行取消注释
deb http://mirrors.nju.edu.cn/debian trixie main contrib non-free non-free-firmware deb http://mirrors.nju.edu.cn/debian trixie-updates main contrib non-free non-free-firmware deb http://mirrors.nju.edu.cn/debian trixie-backports main contrib non-free non-free-firmware deb http://mirrors.nju.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
vi /etc/apt/sources.list.d/ceph.sources
Types: deb URIs: https://enterprise.proxmox.com/debian/ceph-squid Suites: trixie Components: enterprise Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg Enabled: false
vi /etc/apt/sources.list.d/pve-enterprise.sources
Types: deb URIs: https://enterprise.proxmox.com/debian/pve Suites: trixie Components: pve-enterprise Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg Enabled: false
vi /etc/apt/sources.list.d/pve-no-subscription.list
deb http://mirrors.nju.edu.cn/proxmox/debian/pve trixie pve-no-subscription # deb http://mirrors.nju.edu.cn/proxmox/debian/pbs trixie pbs-no-subscription # deb http://mirrors.nju.edu.cn/proxmox/debian/pbs-client trixie pbs-client-no-subscription # deb http://mirrors.nju.edu.cn/proxmox/debian/pmg trixie pmg-no-subscription
禁用旧源
mv ceph.list ceph.list.bak mv pve-enterprise.list pve-enterprise.bak
一键脚本:
pve9.sources.sh (不带自动更新)
https://github.com/GoGoBlacktea/Home.Data.Center/blob/main/pve9.sources.sh
在线执行
bash <(curl -sSL https://raw.githubusercontent.com/GoGoBlacktea/Home.Data.Center/main/pve9.sources.sh)
离线执行
wget https://raw.githubusercontent.com/GoGoBlacktea/Home.Data.Center/main/pve9.sources.sh chmod +x pve9.sources.sh ./pve9.sources.sh
确认是否换源成功

通过[刷新]->[升级]

一键自动更新脚本
注意!注意!注意!
如果想通过手打命令升级系统,务必使用以下命令进行升级!
apt dist-upgrade
注意!注意!注意!
https://github.com/GoGoBlacktea/Home.Data.Center/blob/main/PVE9.Update.sh
bash <(curl -sSL https://raw.githubusercontent.com/GoGoBlacktea/Home.Data.Center/main/PVE9.Update.sh)
wget https://raw.githubusercontent.com/GoGoBlacktea/Home.Data.Center/main/PVE9.Update.sh chmod +x PVE9.Update.sh ./PVE9.Update.sh

提示操作
此处按 [q],余下全部回车继续





可能会出现以下提示,可以无视,不影响使用

proxmox-ve: 9.0.0 (running kernel: 6.8.12-1-pve) pve-manager: 9.0.3 (running version: 9.0.3/025864202ebb6109) proxmox-kernel-helper: 9.0.3 proxmox-kernel-6.14.8-2-pve-signed: 6.14.8-2 proxmox-kernel-6.14: 6.14.8-2 proxmox-kernel-6.8.12-13-pve-signed: 6.8.12-13 proxmox-kernel-6.8: 6.8.12-13 proxmox-kernel-6.8.12-11-pve-signed: 6.8.12-11 proxmox-kernel-6.8.12-10-pve-signed: 6.8.12-10 proxmox-kernel-6.8.12-1-pve: 6.8.12-1 proxmox-kernel-6.8.4-2-pve-signed: 6.8.4-2 ceph: 19.2.3-pve1 ceph-fuse: 19.2.3-pve1 corosync: 3.1.9-pve2 criu: 4.1.1-1 frr-pythontools: 10.3.1-1+pve4 ifupdown2: 3.3.0-1+pmx9 ksm-control-daemon: 1.5-1 libjs-extjs: 7.0.0-5 libproxmox-acme-perl: 1.7.0 libproxmox-backup-qemu0: 2.0.1 libproxmox-rs-perl: 0.4.1 libpve-access-control: 9.0.3 libpve-apiclient-perl: 3.4.0 libpve-cluster-api-perl: 9.0.6 libpve-cluster-perl: 9.0.6 libpve-common-perl: 9.0.9 libpve-guest-common-perl: 6.0.2 libpve-http-server-perl: 6.0.4 libpve-network-perl: 1.1.6 libpve-rs-perl: 0.10.7 libpve-storage-perl: 9.0.13 libspice-server1: 0.15.2-1+b1 lvm2: 2.03.31-2 lxc-pve: 6.0.4-2 lxcfs: 6.0.4-pve1 novnc-pve: 1.6.0-3 openvswitch-switch: 3.5.0-1+b1 proxmox-backup-client: 4.0.11-1 proxmox-backup-file-restore: 4.0.11-1 proxmox-backup-restore-image: 1.0.0 proxmox-firewall: 1.1.1 proxmox-kernel-helper: 9.0.3 proxmox-mail-forward: 1.0.2 proxmox-mini-journalreader: 1.6 proxmox-offline-mirror-helper: 0.7.0 proxmox-widget-toolkit: 5.0.5 pve-cluster: 9.0.6 pve-container: 6.0.9 pve-docs: 9.0.8 pve-edk2-firmware: 4.2025.02-4 pve-esxi-import-tools: 1.0.1 pve-firewall: 6.0.3 pve-firmware: 3.16-3 pve-ha-manager: 5.0.4 pve-i18n: 3.5.2 pve-qemu-kvm: 10.0.2-4 pve-xtermjs: 5.5.0-2 qemu-server: 9.0.16 smartmontools: 7.4-pve1 spiceterm: 3.4.0 swtpm: 0.8.0+pve2 vncterm: 1.9.0 zfsutils-linux: 2.3.3-pve1
最后祝愿各位同学升级顺利!完结撒花!

grafana依然可用!