Skip to content

Instantly share code, notes, and snippets.

@tushroy
Last active April 2, 2025 19:09
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:

@tushroy
Copy link
Author

tushroy commented Mar 4, 2025

Thanks for sharing. I've updated the version in my fork.

@mdeweerd Thank you, I have merged your changes and updated.

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