Kernel upgrade and pve headers installation

lk777

Member
Oct 27, 2021
37
2
13
Is there any way to install pve-headers automatically, like this one: pve-headers-x.x.x-pve_x.x.x_amd64.deb with every kernel upgrade?

I am using a dkms package for my management NIC (RTL8125) and it would be much easier to reinstall it if dkms found the installed headers.

And still can't get it why rtl8125 is not in linux kernels yet.
 
Yes, that should be done automatically if you install `pve-headers` instead of a specific version.
 
But Proxmox update doesn't do it. dkms couldn't find the latest kernel headers. So I need to run apt install pve-headers after each kernel upgrade?
 
Which kernel do you have installed?
Please provide the output of pveversion -v and the output of apt-cache policy pve-headers-<complete-kernel-version>, where <complete-kernel-version> should be replaced by 5.13.19-2-pve for the latest 5.13 kernel, or whatever kernel you're currently using.
 
  • Like
Reactions: Feubrice
Code:
proxmox-ve: 7.1-1 (running kernel: 5.15.7-1-pve)
pve-manager: 7.1-8 (running version: 7.1-8/5b267f33)
pve-kernel-5.15: 7.1-7
pve-kernel-helper: 7.1-6
pve-kernel-5.13: 7.1-5
pve-kernel-5.15.7-1-pve: 5.15.7-1
pve-kernel-5.15.5-1-pve: 5.15.5-1
pve-kernel-5.13.19-2-pve: 5.13.19-4
pve-kernel-5.13.19-1-pve: 5.13.19-3
ceph-fuse: 15.2.15-pve1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
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
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.3.0-1
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-3
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-4
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-1
spiceterm: 3.2-2
swtpm: 0.7.0~rc1+2
vncterm: 1.7-1
zfsutils-linux: 2.1.1-pve3

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

I have installed pve-headers-5.15.7-1-pve_5.15.7-1_amd64.deb manually.

I think that I have got a kernel upgrade to 5.15.7-1-pve because I have installed a 5.15.5-1-pve manually per your staff member's recommendations to mitigate Windows 11 issues.
 
Last edited:
if you use an opt-in kernel series, you also need to install the opt-in headers meta package (pve-headers-5.15 in this case). the pve-headers meta package tracks the default kernel series.
 
Is there any way to roll back to the mainstream kernels and headers?
That opt-in kernel didn't help with my issues anyway.
My main requirement is that the kernel upgrade must be followed by the corresponding headers automatic installation (if it does it indeed).
 
you can just reboot into the 5.13 kernel, and then remove all 5.15 packages (pve-kernel-5.15, pve-headers-5.15, and the version specific ones like pve-kernel-5.15.5-1-pve). each kernel series has a corresponding -headers package:
- pve-kernel-5.15 -> pve-headers-5.15
- pve-kernel-5.13 -> pve-headers-5.13 (currently default via proxmox-ve package)
 

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!