I had the same issue since I had to install a DKMS module for my realtek NIC in earlier versions of proxmox, I removed the R8168 blacklist and just let it use the kernel default driver and its been working on the 6.5 Kernel with no issues.Problems on install
Code:Building module: Cleaning build area... make -j8 KERNELRELEASE=6.5.11-4-pve -C /lib/modules/6.5.11-4-pve/build M=/var/lib/dkms/r8168/8.051.02/build........(bad exit status: 2) Error! Bad return status for module build on kernel: 6.5.11-4-pve (x86_64) Consult /var/lib/dkms/r8168/8.051.02/build/make.log for more information. Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. dkms: autoinstall for kernel: 6.5.11-4-pve failed! run-parts: /etc/kernel/postinst.d/dkms exited with return code 11 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.11-4-pve-signed.postinst line 20. dpkg: error processing package proxmox-kernel-6.5.11-4-pve-signed (--configure): installed proxmox-kernel-6.5.11-4-pve-signed package post-installation script subprocess returned error exit status 2 dpkg: dependency problems prevent configuration of proxmox-kernel-6.5: proxmox-kernel-6.5 depends on proxmox-kernel-6.5.11-4-pve-signed | proxmox-kernel-6.5.11-4-pve; however: Package proxmox-kernel-6.5.11-4-pve-signed is not configured yet. Package proxmox-kernel-6.5.11-4-pve is not installed.