Table of Contents

PVE Upgrade von Version 6.x zu 7.x

Anhand dieser Doku sollte ein Update von PVE Version 6.x zu 7.x durchführbar sein.
Doku von Proxmox selbst: https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0

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'`/


Löschen des Backup Patches (wenn vorhanden)

Auf diesen gehe ich nicht mehr ein da man diesen sowieso nicht mehr verwenden sollte.

Patchen bis zum aktuellen Stand von 6.x

apt-get update
apt-get dist-upgrade
reboot


Upgrade Check

PVE bringt wieder Upgrade Check mit. Mit diesem kann man checken lassen ob ein Upgrade möglich wäre.

Beispiel:
root@pve03:~# pve6to7 --full
= CHECKING VERSION INFORMATION FOR PVE PACKAGES =

Checking for package updates..
PASS: all packages uptodate

Checking proxmox-ve package version..
PASS: proxmox-ve package has version >= 6.4-1

Checking running kernel version..
PASS: expected running kernel '5.4.124-1-pve'.

= CHECKING CLUSTER HEALTH/SETTINGS =

SKIP: standalone node.

= CHECKING HYPER-CONVERGED CEPH STATUS =

SKIP: no hyper-converged ceph setup detected!

= CHECKING CONFIGURED STORAGES =

PASS: storage 'Storage-SSD' enabled and active.
PASS: storage 'local' enabled and active.
PASS: storage 'local-lvm' enabled and active.

= 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 'pvestatd.service' is in state 'active'
INFO: Checking for running guests..
PASS: no running guest detected.
INFO: Checking if the local node's hostname 'bowser' is resolvable..
INFO: Checking if resolved IP is configured on local node..
PASS: Resolved node IP '192.168.134.13' configured and active on single interface.
INFO: Checking backup retention settings..
INFO: storage 'local' - no backup retention settings defined - by default, PVE 7.x will no longer keep only the last backup, but all backups
PASS: no problems found.
INFO: checking CIFS credential location..
PASS: no CIFS credentials at outdated location found.
INFO: Checking custom roles for pool permissions..
INFO: Checking node and guest description/note legnth..
PASS: All node config descriptions fit in the new limit of 64 KiB
PASS: All guest config descriptions fit in the new limit of 8 KiB
INFO: Checking storage content type configuration..
PASS: no problems found
SKIP: NOTE: Expensive checks, like CT cgroupv2 compat, not performed without '--full' parameter

= SUMMARY =

TOTAL:    19
PASSED:   16
SKIPPED:  3
WARNINGS: 0
FAILURES: 0


Upgrade PVE auf Version 7

Ändern der Apt Sourcen

Ändern alle Debain Sources

sed -i 's/buster\/updates/bullseye-security/g;s/buster/bullseye/g' /etc/apt/sources.list



ACHTUNG! Debian hat die URL vom Security-Channel geändert.
Von: deb http://security.debian.org buster/updates main
Auf: deb http://security.debian.org bullseye-security main

Deaktivieren ALLER PVE Version 6 Repos und ändern auf Version 7

Für Enterprise: sed -i -e 's/buster/bullseye/g' /etc/apt/sources.list.d/pve-enterprise.list
Für Non-Sub: sed -i -e 's/buster/bullseye/g' /etc/apt/sources.list.d/pve-install-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!

Nur wenn Ceph im Einsatz ist

echo "deb http://download.proxmox.com/debian/ceph-octopus bullseye main" > /etc/apt/sources.list.d/ceph.list


Upgrade PVE

Upgrade auf Debian 11 (Bullseye) und PVE 7.x (bei mir hat das Upgrade auf einer NVMe SSD ca. 6 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: