dkms: autoinstall for kernel: 6.2.16-18-pve failed!

tedmage

New Member
Oct 26, 2023
5
0
1
I am new to proxmox, only recently start using it for my homelab.
Was doing a routine update of proxmox 8 using UI, but i notice after the update, my kernel is not installed correctly.

Not sure if anyone can assist on my problem, much appreciated!

Code:
root@pve:~# pveversion
pve-manager/8.0.4/d258a813cfa6b390 (running kernel: 6.2.16-15-pve)
root@pve:~# apt update
Hit:1 http://security.debian.org bookworm-security InRelease                               
Hit:2 http://ftp.debian.org/debian bookworm InRelease                                     
Hit:3 http://ftp.debian.org/debian bookworm-updates InRelease       
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease     
Hit:5 http://deb.debian.org/debian bookworm InRelease               
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@pve:~# apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up proxmox-kernel-6.2.16-18-pve (6.2.16-18) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.2.16-18-pve /boot/vmlinuz-6.2.16-18-pve
dkms: running auto installation service for kernel 6.2.16-18-pve.
Sign command: /lib/modules/6.2.16-18-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j8 KERNELRELEASE=6.2.16-18-pve -j8 -C /lib/modules/6.2.16-18-pve/build M=/var/lib/dkms/i915-sriov-dkms/6.5/build KVER=6.2.16-18-pve................(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.2.16-18-pve (x86_64)
Consult /var/lib/dkms/i915-sriov-dkms/6.5/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.2.16-18-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/proxmox-kernel-6.2.16-18-pve.postinst line 20.
dpkg: error processing package proxmox-kernel-6.2.16-18-pve (--configure):
 installed proxmox-kernel-6.2.16-18-pve package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.2:
 proxmox-kernel-6.2 depends on proxmox-kernel-6.2.16-18-pve; however:
  Package proxmox-kernel-6.2.16-18-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.2 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.2.16-18-pve
 proxmox-kernel-6.2
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pve:~# ^C
root@pve:~# apt update && apt install pve-headers
Hit:1 http://deb.debian.org/debian bookworm InRelease                                     
Hit:2 http://ftp.debian.org/debian bookworm InRelease                                     
Hit:3 http://ftp.debian.org/debian bookworm-updates InRelease                     
Hit:4 http://security.debian.org bookworm-security InRelease                       
Hit:5 http://download.proxmox.com/debian/pve bookworm InRelease                   
Reading package lists... Done         
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pve-headers is already the newest version (8.0.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
 
make -j8 KERNELRELEASE=6.2.16-18-pve -j8 -C /lib/modules/6.2.16-18-pve/build M=/var/lib/dkms/i915-sriov-dkms/6.5/build KVER=6.2.16-18-pve................(bad exit status: 2) Error! Bad return status for module build on kernel: 6.2.16-18-pve (x86_64) Consult /var/lib/dkms/i915-sriov-dkms/6.5/build/make.log for more information.
Looks like the i915-sriov-dmks module is not compatible with kernel 6.2.16-18-pve, or something else went wrong; can you attach the file /var/lib/dkms/i915-sriov-dkms/6.5/build/make.log?
Where did you get i915-sriov-dmks, maybe they can fix it or you can get a newer version? I suggest you keep booting with the previous kernel version until you get this resolved.
 
Hi,
did you run pve7t8 --full before the upgrade? This should at least warn you about dkms modules being installed and the need to check compatibility first. As @leesteken pointed out, you will have to check why the build failed. I would check if the pve-headers for this kernel version are installed, as they are required for all dmks builds. If you have the latest version (which according to this should be compatible with Kernels up to 6.5 https://github.com/strongtz/i915-sriov-dkms), you might want to report possible issues there so they can get fixed.
 
Looks like the i915-sriov-dmks module is not compatible with kernel 6.2.16-18-pve, or something else went wrong; can you attach the file /var/lib/dkms/i915-sriov-dkms/6.5/build/make.log?
Where did you get i915-sriov-dmks, maybe they can fix it or you can get a newer version? I suggest you keep booting with the previous kernel version until you get this resolved.
 

Attachments

Hi,
did you run pve7t8 --full before the upgrade? This should at least warn you about dkms modules being installed and the need to check compatibility first. As @leesteken pointed out, you will have to check why the build failed. I would check if the pve-headers for this kernel version are installed, as they are required for all dmks builds. If you have the latest version (which according to this should be compatible with Kernels up to 6.5 https://github.com/strongtz/i915-sriov-dkms), you might want to report possible issues there so they can get fixed.
Thanks for the tips!
When to https://github.com/strongtz/i915-sriov-dkms/issues/117 and saw that this was already reported as a issue
I will stick with my previous kernel until its fix.
 

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!