[SOLVED] Proxmox VE 8.0 - Kernel 6.2.16-3 => WireGuard DKMS installed?

nicedevil

Member
Aug 5, 2021
112
11
23
Hey guys, the installation with the kernel fails because of my WireGuard Installation. What can be done to get around this issue?

Python:
Error! The /var/lib/dkms/wireguard/1.0.20210219/6.2.16-3-pve/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.

Here the full log where the kernel would be update:

Python:
Setting up pve-kernel-6.2.16-3-pve (6.2.16-3) ...                                                                                                                                                                                               
Examining /etc/kernel/postinst.d.                                                                                                                                                                                                               
run-parts: executing /etc/kernel/postinst.d/dkms 6.2.16-3-pve /boot/vmlinuz-6.2.16-3-pve                                                                                                                                                       
dkms: running auto installation service for kernel 6.2.16-3-pve.                                                                                                                                                                               
Sign command: /lib/modules/6.2.16-3-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/wireguard/1.0.20210219/6.2.16-3-pve/x86_64/dkms.conf for module wireguard 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-3-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-3-pve.postinst line 20.                                                                                                                                       
dpkg: error processing package pve-kernel-6.2.16-3-pve (--configure):                                                                                                                                                                           
 installed pve-kernel-6.2.16-3-pve package post-installation script subprocess returned error exit status 2                                                                                                                                     
dpkg: dependency problems prevent configuration of pve-kernel-6.2:                                                                                                                                                                             
 pve-kernel-6.2 depends on pve-kernel-6.2.16-3-pve; however:                                                                                                                                                                                   
  Package pve-kernel-6.2.16-3-pve is not configured yet.                                                                                                                                                                                       
                                                                                                                                                                                                                                                
dpkg: error processing package pve-kernel-6.2 (--configure):                                                                                                                                                                                   
 dependency problems - leaving unconfigured                                                                                                                                                                                                     
dpkg: dependency problems prevent configuration of proxmox-ve:                                                                                                                                                                                 
 proxmox-ve depends on pve-kernel-6.2; however:                                                                                                                                                                                                 
  Package pve-kernel-6.2 is not configured yet.                                                                                                                                                                                                 
                                                                                                                                                                                                                                                
dpkg: error processing package proxmox-ve (--configure):                                                                                                                                                                                       
 dependency problems - leaving unconfigured                                                                                                                                                                                                     
Errors were encountered while processing:                                                                                                                                                                                                       
 pve-kernel-6.2.16-3-pve                                                                                                                                                                                                                       
 pve-kernel-6.2                                                                                                                                                                                                                                 
 proxmox-ve                                                                                                                                                                                                                                     
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Do you need to install Wireguard via DKMS? AFAIK it is part of the Linux kernel for a while now.
The wireguard-tools might need to be installed.
 
  • Like
Reactions: nicedevil
the solution for this will be to check the installed module with

Python:
dkms status
wireguard/1.0.20210219: added

after the right module is shown, remove it with this line

Python:
dkms remove wireguard/1.0.20210219
Thank you for sharing. I was on the right track just wasn't removing it. Thank you!!
 

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!