====== PVE Upgrade von Version 8.x zu 9.x ====== Anhand dieser Doku sollte ein Update von PVE Version 8.x zu 9.x durchführbar sein. \\ Doku von Proxmox selbst: [[https://pve.proxmox.com/wiki/Upgrade_from_8_to_9|https://pve.proxmox.com/wiki/Upgrade_from_8_to_9]] \\ ===== Backup Config Files ===== mkdir -p /root/backup/`date '+%Y%m%d'` tar -czf /root/backup/`date '+%Y%m%d'`/pve-cluster-backup.tar.gz /var/lib/pve-cluster tar -czf /root/backup/`date '+%Y%m%d'`/ssh-backup.tar.gz /root/.ssh tar -czf /root/backup/`date '+%Y%m%d'`/corosync-backup.tar.gz /etc/corosync cp /etc/hosts /root/backup/`date '+%Y%m%d'`/ cp /etc/network/interfaces /root/backup/`date '+%Y%m%d'`/ \\ ===== Patchen bis zum aktuellen Stand von 8.x ===== apt-get update apt-get dist-upgrade reboot \\ ===== Upgrade Check ===== PVE bringt wieder den Upgrade Check mit. Mit diesem kann man checken lassen ob ein Upgrade möglich wäre. \\ Beispiel: root@pve01:~$ pve8to9 --full = CHECKING VERSION INFORMATION FOR PVE PACKAGES = Checking for package updates.. PASS: all packages up-to-date Checking proxmox-ve package version.. PASS: proxmox-ve package has version >= 8.4-0 Checking running kernel version.. PASS: running kernel '6.8.12-12-pve' is considered suitable for upgrade. = CHECKING CLUSTER HEALTH/SETTINGS = PASS: systemd unit 'pve-cluster.service' is in state 'active' PASS: systemd unit 'corosync.service' is in state 'active' PASS: Cluster Filesystem is quorate. Analzying quorum settings and state.. INFO: configured votes - nodes: 3 INFO: configured votes - qdevice: 0 INFO: current expected votes: 3 INFO: current total votes: 3 Checking nodelist entries.. PASS: nodelist settings OK Checking totem settings.. PASS: totem settings OK INFO: run 'pvecm status' to get detailed cluster status.. = CHECKING HYPER-CONVERGED CEPH STATUS = SKIP: no hyper-converged ceph setup detected! = CHECKING CONFIGURED STORAGES = PASS: storage 'TrueNAS' enabled and active. PASS: storage 'local' enabled and active. INFO: Checking storage content type configuration.. PASS: no storage content problems found PASS: no storage re-uses a directory for multiple content types. INFO: Check for usage of native GlusterFS storage plugin... PASS: No GlusterFS storage found. = VIRTUAL GUEST CHECKS = INFO: Checking for running guests.. PASS: no running guest detected. INFO: Checking if LXCFS is running with FUSE3 library, if already upgraded.. SKIP: not yet upgraded, no need to check the FUSE library version LXCFS uses INFO: Checking for VirtIO devices that would change their MTU... PASS: All guest config descriptions fit in the new limit of 8 KiB INFO: Checking container configs for deprecated lxc.cgroup entries PASS: No legacy 'lxc.cgroup' keys found. INFO: Checking VM configurations for outdated machine versions PASS: All VM machine versions are recent enough = MISCELLANEOUS CHECKS = INFO: Checking common daemon services.. PASS: systemd unit 'pveproxy.service' is in state 'active' PASS: systemd unit 'pvedaemon.service' is in state 'active' PASS: systemd unit 'pvescheduler.service' is in state 'active' PASS: systemd unit 'pvestatd.service' is in state 'active' INFO: Checking for supported & active NTP service.. PASS: Detected active time synchronisation unit 'chrony.service' NOTICE: Less than 10 GB free space on root file system. INFO: Checking if the local node's hostname 'pve01' is resolvable.. INFO: Checking if resolved IP is configured on local node.. PASS: Resolved node IP '192.168.88.141' configured and active on single interface. INFO: Check node certificate's RSA key size PASS: Certificate 'pve-root-ca.pem' passed Debian Busters (and newer) security level for TLS connections (4096 >= 2048) PASS: Certificate 'pve-ssl.pem' passed Debian Busters (and newer) security level for TLS connections (2048 >= 2048) INFO: Checking backup retention settings.. PASS: no backup retention problems found. INFO: checking CIFS credential location.. PASS: no CIFS credentials at outdated location found. INFO: Checking permission system changes.. INFO: Checking custom role IDs PASS: no custom roles defined INFO: Checking node and guest description/note length.. PASS: All node config descriptions fit in the new limit of 64 KiB INFO: Checking if the suite for the Debian security repository is correct.. PASS: found no suite mismatch INFO: Checking for existence of NVIDIA vGPU Manager.. PASS: No NVIDIA vGPU Service found. INFO: Checking bootloader configuration... SKIP: System booted in legacy-mode - no need for additional packages INFO: Check for dkms modules... SKIP: could not get dkms status INFO: Check for legacy 'filter' or 'group' sections in /etc/pve/notifications.cfg... INFO: Check for legacy 'notification-policy' or 'notification-target' options in /etc/pve/jobs.cfg... PASS: No legacy 'notification-policy' or 'notification-target' options found! INFO: Check for LVM autoactivation settings on LVM and LVM-thin storages... SKIP: No containers on node detected. = SUMMARY = TOTAL: 38 PASSED: 32 SKIPPED: 5 WARNINGS: 0 FAILURES: 0 Hat man eine ältere PVE Installation die schon von Version 7 auf 8 gepatcht wurde oder sogar noch älter ist so kann es vor kommen das es ein paar Warnings gibt zB. für den NTP Service. Wird systemd-timesyncd eingesetzt so sollte man dies ändern. PVE verwendet aktuell als Standard Chrony. \\ \\ ==== Installation Chrony ==== apt install chrony vim /etc/chrony/chrony.conf Hier kann man die gewünschten NTP Server eintragen. \\ Checken ob die NTP Verbindung richtig funktioniert kann man mit \\ chronyc tracking chronyc sources \\ \\ ===== Upgrade PVE auf Version 9 ===== ==== Ändern der Apt Sourcen ==== Ändern alle Debain Sources sed -i 's/bookworm/trixie/g' /etc/apt/sources.list \\ \\ Deaktivieren ALLER PVE Version 7 Repos und ändern auf Version 8 Für Enterprise: sed -i 's/bookworm/trixie/g' /etc/apt/sources.list.d/pve-enterprise.list Für Non-Sub: sed -i -e 's/bookworm/trixie/g' /etc/apt/sources.list.d/pve-nonsub-repo.list \\ \\ Eventuell muss der Filename angepasst werden. \\ Bitte nach den sed Befehlen eine optische Kontrolle der Files! \\ Wenn es wo Backports Repos konfiguriert sind müssen diese gelöscht werden! \\ Auf Ceph geht ich hier nicht ein. Bitte direkt in der PVE Doku schauen. \\ \\ ==== Upgrade PVE ==== Upgrade auf Debian 13 (Trixie) und PVE 9.x (bei mir hat das Upgrade auf einer NVMe SSD ca. 5 Minuten gedauert) \\ Man sollte das Update über eine Console durchführen um sicher zu sein. Via SSH geht es zur Not auch. apt update apt dist-upgrade \\ Fragen die einem gestellt werden: * Configuration file '/etc/issue' → Y * Restart Services → Y * Configuration file '/etc/postfix/main.cf.proto' → Y * Configuration file '/etc/postfix/master.cf.proto' → Y * Configuration file '/etc/lvm/lvm.conf' → N * Configuration file '/etc/apt/sources.list.d/pve-enterprise.list' → N