Help compiling an unstripped pve vmlinux file

Trema

New Member
Jul 9, 2025
3
0
1
Hey hello!
I require a Linux kernel file containing the debug symbols.

It's the first time I've been having to do this, and have been encountering some trouble in the compiling process.

I compiled it by exporting the debug enabling flag,
DEB_BUILD_PROFILES=pkg.proxmox-kernel.debug
From what I've seen mentioned on here this should be how I get a unstripped kernel image.

Here are the commands I've used to compile the kernel,
git clone https://git.proxmox.com/git/pve-kernel.git
git submodule update --init --recursive
module update --init --recursive
export DEB_BUILD_PROFILES=pkg.proxmox-kernel.debug
make build-dir-fresh
mk-build-deps -ir proxmox-kernel-6.8.x/debian/control
make deb

But when I build I get a dbgsym package with in it a vmlinux at
./usr/lib/debug/boot/vmlinux-6.8.x.x-pve
that's not even 60Mb and when extracted is stripped regardless,
$file vmlinux-6.8.x-x-pve
vvmlinux-6.8.x.x-pve: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=3de8e31dc7958a78af9dc76c6078152ccc21cdfa, stripped

Like I mentioned before, I'm not very experienced, and hope someone can steer me towards getting the unstripped kernel elf.
 
Last edited:
seems like something does go wrong there, I'll try to check it out..
 
no, we don't build and publish them to avoid blowing up our CDN space requirements..
 
Code:
diff --git a/debian/rules b/debian/rules
index f19a5b8..d7358e0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -143,7 +143,7 @@ install: .install_mark .tools_install_mark .headers_install_mark .usr_headers_in
 
 binary: install
     debian/rules fwcheck abicheck
-    dh_strip -N$(PMX_HEADER_PKG) -N$(PMX_USR_HEADER_PKG)
+    dh_strip -N$(PMX_HEADER_PKG) -N$(PMX_USR_HEADER_PKG) -Xvmlinux -Xvmlinuz
     dh_makeshlibs
     dh_shlibdeps
     dh_installdeb

could you verify this works for your use case?
 
Code:
diff --git a/debian/rules b/debian/rules
index f19a5b8..d7358e0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -143,7 +143,7 @@ install: .install_mark .tools_install_mark .headers_install_mark .usr_headers_in
 
 binary: install
     debian/rules fwcheck abicheck
-    dh_strip -N$(PMX_HEADER_PKG) -N$(PMX_USR_HEADER_PKG)
+    dh_strip -N$(PMX_HEADER_PKG) -N$(PMX_USR_HEADER_PKG) -Xvmlinux -Xvmlinuz
     dh_makeshlibs
     dh_shlibdeps
     dh_installdeb

could you verify this works for your use case?
Yes it did!! Massive thanks!
 
great, then I'll submit that as patch for real :)