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:

@mdeweerd
Copy link

mdeweerd commented Mar 2, 2025

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

@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.

@wouldntyouknow
Copy link

If anyone wants to just install the deb file, is a noob like me and runs into this:

dpkg: dependency problems prevent configuration of r8168-dkms:
 r8168-dkms depends on dkms (>= 3.0.11); however:
  Version of dkms on system is 3.0.10-8+deb12u1.

just do
dpkg --force-depends -i r8168-dkms_8.055.00-1_all.deb

@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