Skip to content

Instantly share code, notes, and snippets.

@mdeweerd
Forked from tushroy/proxmox-realtek-r8168.md
Last active March 3, 2025 00:06
Show Gist options
  • Save mdeweerd/e32986d73f5bdd3b0f48236727119f8d to your computer and use it in GitHub Desktop.
Save mdeweerd/e32986d73f5bdd3b0f48236727119f8d 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.053.00-1_all.deb
dpkg -i r8168-dkms_8.053.00-1_all.deb

Curated and inspired from:

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