Skip to content

Instantly share code, notes, and snippets.

@tushroy
Last active June 5, 2025 00:28
Show Gist options
  • Save tushroy/69f84ee5955e76396f3b0f41ad9b731a to your computer and use it in GitHub Desktop.
Save tushroy/69f84ee5955e76396f3b0f41ad9b731a to your computer and use it in GitHub Desktop.
Realtek r8168 Driver for Proxmox VE Kernel version 6.8

Realtek r8168 Driver for Proxmox VE Kernel version 6.8

Blacklist r8169 kernel driver for being loaded

echo blacklist r8169 >> /etc/modprobe.d/blacklist-r8169.conf

Once all of this is completed we are going to update our GRUB to have some specific kernel parameters for our realtek driver

sed -i 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="r8168.aspm=0 r8168.eee_enable=0 pcie_aspm=off loglevel=3"/' /etc/default/grub

Run following commands to download from source and compile, install the driver:

apt-get install debhelper-compat dh-dkms

mkdir r8168_v3 && cd r8168_v3
wget http://deb.debian.org/debian/pool/non-free/r/r8168/r8168_8.055.00-1.debian.tar.xz
wget http://deb.debian.org/debian/pool/non-free/r/r8168/r8168_8.055.00.orig.tar.bz2
wget http://deb.debian.org/debian/pool/non-free/r/r8168/r8168_8.055.00-1.dsc
dpkg-source -x r8168_8.055.00-1.dsc
cd r8168-8.055.00/
dpkg-buildpackage
dpkg -i ../r8168-dkms_8.055.00-1_all.deb

Or download the driver directly and install

wget http://ftp.debian.org/debian/pool/non-free/r/r8168/r8168-dkms_8.055.00-1_all.deb
dpkg -i r8168-dkms_8.055.00-1_all.deb

Curated and inspired from:

@z0mb1ek
Copy link

z0mb1ek commented Jun 5, 2025

need newer dkms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment