[SOLVED] Correct Way to Install Proxmox Kernel Headers and Related Support Files?

Sep 1, 2022
482
182
48
41
Hello. I need to build a DKMS module, so I need to grab the Proxmox kernel headers and any other file I need. Unfortunately, it's been a minute since I set up a Proxmox node and I can't remember how to set up the headers.

I'm on Proxmox 9 with Kernel 6.14.

I've already installed:
  • build-*: Build tools
  • dkms: I don't need this yet, but I usually end up needing it eventually.
I've search on the forum and it looks like I want to install proxmox-headers-6.14, which will stay up to date with whatever version of the 6.14 kernel I have installed. Is that right?

What about the pve-headers package?
 
proxmox-default-headers is the meta package that I'd install. Check apt show proxmox-default-headers for its dependencies.
Thanks!

Bash:
# apt show proxmox-default-headers
Package: proxmox-default-headers
Version: 2.0.0
Priority: optional
Section: admin
Source: proxmox-kernel-meta
Maintainer: Proxmox Support Team <support@proxmox.com>
Installed-Size: 8,192 B
Provides: pve-headers
Depends: proxmox-headers-6.14
Download-Size: 1,860 B
APT-Sources: https://enterprise.proxmox.com/debian/pve trixie/pve-enterprise amd64 Packages
Description: Default Proxmox Kernel Headers
 This is a metapackage which will install the kernel headers for the default
 Proxmox kernel series.

That looks like exactly what I want. It threw me when I saw it earlier due to the low version number. I thought it might be some ancient package that was still in the repos somehow.

Need to remember the info command next time. :)
 
  • Like
Reactions: Johannes S