Kernel headers Proxmox VE 8.3

stony999

Renowned Member
Oct 22, 2010
24
1
68
I have the same configuration as described here:
https://www.reddit.com/r/Proxmox/comments/1hvrwnc/issues_with_realtek_nic_driver_installation_and/
and I cannot install the network card due to missing kernel headers.

I could not find kernel header files for 6.8.12-4-pve
I also looked at http://download.proxmox.com/debian/pve/dists/bullseye/pve-no-subscription/binary-amd64/
and they are up to pve-headers-6.2_7.4-6_all.deb and then they start again at pve-headers_7.0-2_all.deb

Anybody has an idea where I can find them?
 
Hi,

starting with 6.2 IIRC, the kernel package (and thus also kernel header package) got renamed to proxmox-kernel and proxmox-headers, respectively.
E.g. if you need the kernel headers for 6.8.12-4-pve, you will need to install the proxmox-headers-6.8.12-4 package.
 
I downloaded the .deb file as stony999 suggested.

Then went on to install it with dpkg -i r8125-dkms*.deb but i got this as the output:

Code:
Selecting previously unselected package r8125-dkms.
(Reading database ... 79337 files and directories currently installed.)
Preparing to unpack r8125-dkms_9.013.02-1~bpo12%2B1_all.deb ...
Unpacking r8125-dkms (9.013.02-1~bpo12+1) ...
Setting up r8125-dkms (9.013.02-1~bpo12+1) ...
Loading new r8125-9.013.02 DKMS files...
Building for 6.8.12-9-pve
Module build for kernel 6.8.12-9-pve was skipped since the
kernel headers for this kernel do not seem to be installed.
Processing triggers for initramfs-tools (0.142+deb12u3) ...
update-initramfs: Generating /boot/initrd.img-6.8.12-9-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
root@nuc:~/ethernet# modprobe r8125
modprobe: FATAL: Module r8125 not found in directory /lib/modules/6.8.12-9-pve

modprobe r8125 resulted in this output:

Code:
modprobe: FATAL: Module r8125 not found in directory /lib/modules/6.8.12-9-pve

What do I need to do?
 
I added the non-free-firmware to my /etc/apt/sources.list file like this:

Code:
deb http://ftp.de.debian.org/debian bookworm main contrib non-free-firmware

deb http://ftp.de.debian.org/debian bookworm-updates main contrib non-free-firmware

# security updates
deb http://security.debian.org bookworm-security main contrib non-free-firmware

and then ran apt update. This is my output:

Code:
root@nuc:~# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://ftp.de.debian.org/debian bookworm InRelease
Get:3 http://security.debian.org bookworm-security/non-free-firmware amd64 Packages [688 B]
Hit:4 http://ftp.de.debian.org/debian bookworm-updates InRelease
Get:5 http://security.debian.org bookworm-security/non-free-firmware Translation-en [472 B]
Get:6 http://ftp.de.debian.org/debian bookworm/main amd64 DEP-11 Metadata [4,492 kB]
Err:7 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
  401  Unauthorized [IP: 45.84.67.184 443]
Err:8 https://enterprise.proxmox.com/debian/pve bookworm InRelease
  401  Unauthorized [IP: 45.84.67.184 443]
Get:9 http://ftp.de.debian.org/debian bookworm/contrib amd64 DEP-11 Metadata [16.5 kB]
Get:10 http://ftp.de.debian.org/debian bookworm/non-free-firmware amd64 Packages [6,372 B]
Get:11 http://ftp.de.debian.org/debian bookworm/non-free-firmware Translation-en [20.9 kB]
Get:12 http://ftp.de.debian.org/debian bookworm/non-free-firmware amd64 DEP-11 Metadata [15.5 kB]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease  401  Unauthorized [IP: 45.84.67.184 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bookworm/InRelease  401  Unauthorized [IP: 45.84.67.184 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bookworm InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Please note that I do not have a subscription key set up.

Even after that - I cannot locate the pve-headers:

Code:
root@nuc:~# apt install pve-headers
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package pve-headers

but it seems that I have already installed the r8125-dkms package:

Code:
root@nuc:~# apt install r8125-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
r8125-dkms is already the newest version (9.013.02-1~bpo12+1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
You need to configure the pve-no-subscription repo and disable the enterprise ones. You can easily do that in the GUI via node > Updates > Repositories.
It's possible apt install --reinstall r8125-dkms would re-trigger the attempted kernel module build process. I'm sure there are smarter ways but I'm not (yet) aware of them. Apparently it's rebuilt if you install the headers as well.
 
Last edited:
  • Like
Reactions: UdoB
After adding the non-subscription repo and updating and upgrading everything the apt install pve-headers was successfull.

Edit:
Also dpkg -i r8125-dkms*.deb was successfull. Driver is now active
 
Last edited: