[SOLVED] pve 7.1-8 lxc: ERROR: Kernel configuration is invalid.

supernova1963

Member
Oct 25, 2020
7
0
21
Hi, everyone,
what can I do if the following error occurs:

Code:
root@pve:~# cat /var/lib/dkms/pivccu/1.0.70/build/make.log
DKMS make.log for pivccu-1.0.70 for kernel 5.13.19-2-pve (x86_64)
Sun 26 Dec 2021 10:21:50 AM CET
make -C /lib/modules/5.13.19-2-pve/build M=/var/lib/dkms/pivccu/1.0.70/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.13.19-2-pve'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make[1]: *** [Makefile:753: include/config/auto.conf] Error 1
make[1]: Leaving directory '/usr/src/linux-headers-5.13.19-2-pve'
make: *** [Makefile:30: all] Error 2

It seems that the Proxmox Kernel Headers are packaged defective?!

Thanks,

Gernot
 
Was this part of an update that included a newer kernel version?
Or did you update the kernel without rebooting before trying to build that module?
 
Its was a reinstallation:
Code:
root@pve:~# apt reinstall pivccu-modules-dkms debmatic-lxc-host
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bsdmainutils cpp-8 libasan5 libbison-dev libisl19 libmpx2 libzpool4linux pve-headers-5.13.19-1-pve pve-headers-5.4 pve-headers-5.4.143-1-pve pve-kernel-5.4.140-1-pve
  python-ceph-argparse
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 43.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://www.debmatic.de/debmatic stable/main amd64 pivccu-modules-dkms all 1.0.70 [41.3 kB]
Get:2 https://www.debmatic.de/debmatic stable/main amd64 debmatic-lxc-host all 1.0.5 [1,872 B]
Fetched 43.2 kB in 0s (198 kB/s)             
Preconfiguring packages ...
(Reading database ... 215632 files and directories currently installed.)
Preparing to unpack .../pivccu-modules-dkms_1.0.70_all.deb ...
Removed /etc/systemd/system/pivccu.service.requires/pivccu-dkms.service.
Removed /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service.
Removed /etc/systemd/system/debmatic.service.wants/pivccu-dkms.service.

------------------------------
Deleting module version: 1.0.70
completely from the DKMS tree.
------------------------------
Done.
Unpacking pivccu-modules-dkms (1.0.70) over (1.0.70) ...
Preparing to unpack .../debmatic-lxc-host_1.0.5_all.deb ...
Unpacking debmatic-lxc-host (1.0.5) over (1.0.5) ...
Setting up pivccu-modules-dkms (1.0.70) ...
Error! The module/version combo: pivccu-1.0.70
is not located in the DKMS tree.

Creating symlink /var/lib/dkms/pivccu/1.0.70/source ->
                 /usr/src/pivccu-1.0.70

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.13.19-2-pve ARCH=x86 all...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.13.19-2-pve (x86_64)
Consult /var/lib/dkms/pivccu/1.0.70/build/make.log for more information.
Created symlink /etc/systemd/system/multi-user.target.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Created symlink /etc/systemd/system/debmatic.service.wants/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Created symlink /etc/systemd/system/pivccu.service.requires/pivccu-dkms.service → /lib/systemd/system/pivccu-dkms.service.
Setting up debmatic-lxc-host (1.0.5) ...
root@pve:~#
 
What's the output of pveversion -v?
The latest pve-headers package is installed?
 
Code:
root@pve:~# pveversion -v
proxmox-ve: 7.1-1 (running kernel: 5.13.19-2-pve)
pve-manager: 7.1-8 (running version: 7.1-8/5b267f33)
pve-kernel-helper: 7.1-6
pve-kernel-5.13: 7.1-5
pve-kernel-5.4: 6.4-7
pve-kernel-5.3: 6.1-6
pve-kernel-5.13.19-2-pve: 5.13.19-4
pve-kernel-5.13.19-1-pve: 5.13.19-3
pve-kernel-5.4.143-1-pve: 5.4.143-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.3.18-2-pve: 5.3.18-2
ceph-fuse: 16.2.7
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.0
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.1-5
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.0-14
libpve-guest-common-perl: 4.0-3
libpve-http-server-perl: 4.0-4
libpve-storage-perl: 7.0-15
libqb0: 1.0.5-1
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.11-1
lxcfs: 4.0.11-pve1
novnc-pve: 1.2.0-3
proxmox-backup-client: 2.1.2-1
proxmox-backup-file-restore: 2.1.2-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.4-4
pve-cluster: 7.1-2
pve-container: 4.1-3
pve-docs: 7.1-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.3-3
pve-ha-manager: 3.3-1
pve-i18n: 2.6-2
pve-qemu-kvm: 6.1.0-3
pve-xtermjs: 4.12.0-1
qemu-server: 7.1-4
smartmontools: 7.2-pve2
spiceterm: 3.2-2
swtpm: 0.7.0~rc1+2
vncterm: 1.7-1
zfsutils-linux: 2.1.1-pve3

Code:
root@pve:~# apt install pve-headers
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pve-headers is already the newest version (7.1-1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
 
Please provide the output of apt-cache policy pve-headers-5.13.19-2-pve.
 
Thank you for your patience, Mira.

Code:
root@pve:~# apt-cache policy pve-headers-5.13.19-2-pve
pve-headers-5.13.19-2-pve:
  Installed: 5.13.19-4
  Candidate: 5.13.19-4
  Version table:
 *** 5.13.19-4 500
        500 http://download.proxmox.com/debian/pve bullseye/pve-no-subscription amd64 Packages
        100 /var/lib/dpkg/status

Best regards,

Gernot
 
Great that it worked. :)
 

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!