Custom kernel doesn't boot on proxmox

#define SYSTEM_LINUX 1
#define HAVE_PYTHON "3.12"
#define ENABLE_NLS 1
#define HAVE_GETTEXT 1
#define HAVE_DCGETTEXT 1
#define HAVE_ZLIB 1
#define HAVE_LIBUDEV 1
#define HAVE_UDEV_DEVICE_GET_IS_INITIALIZED 1
#define HAVE_LIBUUID 1
#define HAVE_LIBBLKID 1

configure: exit 1
dh_auto_configure: error: ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --bindir=/usr/bin --sbindir=/sbin --libdir=/lib/x86_64-linux-gnu --with-udevdir=/lib/udev --with-zfsexecdir=/usr/lib/zfs-linux --enable-systemd --enable-pyzfs --with-python=python3 --with-pammoduledir=/lib/x86_64-linux-gnu/security --with-pkgconfigdir=/usr/lib/x86_64-linux-gnu/pkgconfig --with-systemdunitdir=/lib/systemd/system --with-systemdpresetdir=/lib/systemd/system-preset --with-systemdgeneratordir=/lib/systemd/system-generators --with-config=user returned exit code 1
make[2]: *** [debian/rules:28: override_dh_auto_configure] Error 255
make[2]: Leaving directory '/home/pawel/pve/pve-kernel/submodules/zfsonlinux/zfs-linux-2.2.4'
make[1]: *** [debian/rules:13: build] Error 2
make[1]: Leaving directory '/home/pawel/pve/pve-kernel/submodules/zfsonlinux/zfs-linux-2.2.4'
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make: *** [Makefile:64: libnvpair3linux_2.2.4-pve1_amd64.deb] Error 2
 
Last edited:
#define SYSTEM_LINUX 1
#define HAVE_PYTHON "3.12"
#define ENABLE_NLS 1
#define HAVE_GETTEXT 1
#define HAVE_DCGETTEXT 1
#define HAVE_ZLIB 1
#define HAVE_LIBUDEV 1
#define HAVE_UDEV_DEVICE_GET_IS_INITIALIZED 1
#define HAVE_LIBUUID 1
#define HAVE_LIBBLKID 1

configure: exit 1
dh_auto_configure: error: ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --bindir=/usr/bin --sbindir=/sbin --libdir=/lib/x86_64-linux-gnu --with-udevdir=/lib/udev --with-zfsexecdir=/usr/lib/zfs-linux --enable-systemd --enable-pyzfs --with-python=python3 --with-pammoduledir=/lib/x86_64-linux-gnu/security --with-pkgconfigdir=/usr/lib/x86_64-linux-gnu/pkgconfig --with-systemdunitdir=/lib/systemd/system --with-systemdpresetdir=/lib/systemd/system-preset --with-systemdgeneratordir=/lib/systemd/system-generators --with-config=user returned exit code 1
make[2]: *** [debian/rules:28: override_dh_auto_configure] Error 255
make[2]: Leaving directory '/home/pawel/pve/pve-kernel/submodules/zfsonlinux/zfs-linux-2.2.4'
make[1]: *** [debian/rules:13: build] Error 2
make[1]: Leaving directory '/home/pawel/pve/pve-kernel/submodules/zfsonlinux/zfs-linux-2.2.4'
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make: *** [Makefile:64: libnvpair3linux_2.2.4-pve1_amd64.deb] Error 2

Can you post the whole thing, what exactly you have done, what repo cloned, etc. - just to follow. BTW I think you are more likely to get an answer from someone from PVE staff if you add it to the linked thread, but post everything you have done to the point of where it fails. Use [ CODE ] [ /CODE ] tags or the </> icon above the textarea.
 

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!