After upgrade pve7to8 stuck on boot with kernel 6.2.16

coyote

Well-Known Member
Dec 4, 2018
59
3
48
40
Hi, tried to upgrade to pve8 today, unfortunately the node does not run up when pve-kernel 6.2.16-4 is selected. If I load kernel 5.15.108 at startup the node starts.
But when I do an apt update & apt upgrade, this is what happens:

Code:
root@debianNUC:~# apt upgrade -y
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paketaktualisierung (Upgrade) wird berechnet… Fertig
Die folgenden Pakete sind zurückgehalten worden:
  fcitx5-chinese-addons-data
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
3 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
pve-kernel-6.2.16-4-pve (6.2.16-5) wird eingerichtet ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.2.16-4-pve /boot/vmlinuz-6.2.16-4-pve
dkms: running auto installation service for kernel 6.2.16-4-pve.
Sign command: /lib/modules/6.2.16-4-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! The /var/lib/dkms/aufs/4.19+20190211/6.2.16-4-pve/x86_64/dkms.conf for module aufs includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.2.16-4-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/pve-kernel-6.2.16-4-pve.postinst line 20.
dpkg: Fehler beim Bearbeiten des Paketes pve-kernel-6.2.16-4-pve (--configure):
 »installiertes post-installation-Skript des Paketes pve-kernel-6.2.16-4-pve«-Unterprozess gab den Fehlerwert 2 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von pve-kernel-6.2:
 pve-kernel-6.2 hängt ab von pve-kernel-6.2.16-4-pve; aber:
  Paket pve-kernel-6.2.16-4-pve ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten des Paketes pve-kernel-6.2 (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von proxmox-ve:
 proxmox-ve hängt ab von pve-kernel-6.2; aber:
  Paket pve-kernel-6.2 ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten des Paketes proxmox-ve (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Fehler traten auf beim Bearbeiten von:
 pve-kernel-6.2.16-4-pve
 pve-kernel-6.2
 proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)

What can I do? Running Proxmox on top of Debian.
 
Can you try to remove linux-headers?
If you have kernel-mft-dkms, remove it either.
And install pve-headers

Seems for me, like you installed something that needed dkms.
However, you will keep dkms with the steps above.

Try first, then report :)
 
Hi, linux-headers are removed. I don't have kernel-mft-dkms and pve-headers are installed.
I've read many posts (also yours) before I open a thread here :)

Yes, I need dkms for my home automation module (debmatic/pivccu)
 
Last edited:
I understand, but then you need to install pve-headers first.

Try that. Otherwise i would suggest that you remove entirely dkms, just to get everything working again, then reboot into your 6.2 kernel and install pve-headers and whatever modules you need.

Edit, dumb, didn't readed correctly, you said pve-headers are already installed, i readed "not installed" :)

However try the removing dkms way.
Otherwise im checking pivccu is compatible with 6.2 at all.

Step by step at least, if you know what i mean :)
 
Last edited:
Well as far i see, pivccu is compatible with kernel 6.1 and 6.3....
He skipped somehow 6.2, but it will probably still work, just need to see where it will fail.

However, get rid of dkms first, get your 6.2 kernel running.

Then you grab the git repo again, compile the module again, and let's look later then where it fails and if it's fixable.

Edit:
Mann oh mann ist das verwirrend:
Also kurz auf deutsch, du hast ja die debmatic Version, muss erstmal nachschauen ob das 6.2 kompatibel ist :)
 
Last edited:
Ok, will try. How do I remove dkms? apt purge remove dkms?

Code:
root@debianNUC:~# dkms status
aufs/4.19+20190211, 4.19.0-11-amd64, x86_64: installed
aufs/4.19+20190211, 4.19.0-13-amd64, x86_64: installed
aufs/4.19+20190211, 4.19.0-14-amd64, x86_64: installed
aufs/4.19+20190211, 4.19.0-16-amd64, x86_64: installed
aufs/4.19+20190211, 4.19.0-17-amd64, x86_64: installed
pivccu/1.0.82, 6.1.0-10-amd64, x86_64: installed
pivccu/1.0.82, 6.2.16-4-pve, x86_64: installed

This is what I need:

Code:
apt install pivccu-modules-dkms debmatic-lxc-host
 
Mach mal erstmal nur:
dkms remove aufs/4.19+20190211 --all

Und kuck mal ob das alles fixt
 
Genau, Debmatic läuft in der VM und auf dem Host müssen eben die Module installiert werden.
Ok, das probier ich mal, dann läuft aber der Rest ja noch weiter oder? Sonst hab ich gleich ein Problem, wenn Debmatic nicht mehr läuft ;)
 
Sieht gut aus soweit, ein "apt upgrade" ist jetzt mal durchgelaufen. Jetzt muss nur noch der Reboot funktionieren mit dem aktuellen kernel, mal schauen ob ich das noch gleich probiere. Danke dir:)
 
  • Like
Reactions: Ramalama
Genau, Debmatic läuft in der VM und auf dem Host müssen eben die Module installiert werden.
Ok, das probier ich mal, dann läuft aber der Rest ja noch weiter oder? Sonst hab ich gleich ein Problem, wenn Debmatic nicht mehr läuft ;)
Du meinst in nem lxc container?
Bei ner vm brauchst du nur passthrough und die kernel module in ner VM.
Beim lxc container, das kernel modul aufm host und debmatic im lxc container:)

Aber ja, von Anfang an war eigentlich nur "aufs" das Problem.
Wenn du also nur aufs entfernst, sollte das reichen und alles andere sollte funktionieren.

Wenn nicht müssen wir halt weiterschauen.
 
Du meinst in nem lxc container?
Bei ner vm brauchst du nur passthrough und die kernel module in ner VM.
Uih, ich seh's gerade im Wiki...Nee läuft bei mir in ner VM, dann brauche ich die Module tatsächlich gar nicht auf dem Host.
Entweder habe ich das damals überlesen oder es sind noch Altlasten, als ich Debmatic im Container hatte. Ich weiß es nicht mehr.

EDIT: Jetzt wird es richtig kurios, die DKMS Module sind in der VM gar nicht installiert. Aber das gehört jetzt auch nicht hier hin.
 
Last edited:
Uih, ich seh's gerade im Wiki...Nee läuft bei mir in ner VM, dann brauche ich die Module tatsächlich gar nicht auf dem Host.
Entweder habe ich das damals überlesen oder es sind noch Altlasten, als ich Debmatic im Container hatte. Ich weiß es nicht mehr.
Altlasten anscheinend:)

Naja, du kannst entweder zu nem lxc container switchen, oder eben alles vom host entfernen und die Module in die vm tun.
Hast ja die qual der wahl :)

Ohne dkms aufm host, wirst du halt aufm host nie wieder dkms Probleme haben :)
Dafür ist lxc halt resourcen freundlicher :)
 
Ja da hab ich jetzt die Wahl :)
Aber läuft das dann auch in der VM, wenn die Module nur auf dem Host sind? Anscheinend schon, weil in der VM, wie gesagt sind keine installiert.
 
EDIT: Jetzt wird es richtig kurios, die DKMS Module sind in der VM gar nicht installiert. Aber das gehört jetzt auch nicht hier hin.
Dafür kann es mehrere Erklärungen geben.

Soweit ich verstehe ist pivccu nur dafür da irgendeine Firmware auf den stick? zu laden.
Das könnte natürlich auf dem host passieren, weil das lange vorher beim booten passiert, bevor die vm gestartet wird und passthrough passiert.

Dann, kanns natürlich sein das das modul auf der vm ohne dkms installiert ist.
Kannst ja mit "lsmod | grep pivccu" nachschauen oder einfach "lsmod" und schauen welche Module im Einsatz sind.

Gibt bestimmt noch weitere Erklärungen für das Verhalten, aber ich würde persönlich jetzt einfach hingehen und erstmal vom host selbst alles entfernen, sprich dkms komplett.
Und in der VM (falls lsmod nichts anzeigt), pivccu nach how-to installieren.
 
  • Like
Reactions: coyote
Nee, lsmod zeigt nichts an in der Art. Ok, egal wie, das muss ich bereinigen. Gut dass das jetzt in dem Zuge auch aufgefallen ist.
Reboot durchgeführt und läuft alles. Vielen Dank :D
 
  • Like
Reactions: Ramalama

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!