PVE7.1 How to blacklist kernel r8169 with rtl8125 2.5Gb network card

moronto

New Member
Dec 30, 2021
1
0
1
40
Hardware: J4125 + 4 ports onboard rtl8125 network.
Issues: I got speed limitied to 100M with PvE7.1, even the VM work with virtIo network .Local network Max. speed locked at 10M/s. but VM to VM speed is fine .Over 300M/s
What i tried : Plug another USB Axsi network card (1Gb card),and set it as manager card, set vmbr0 bridg to this card , The speed is great, local speed over 130M/s . (temporary solution )
By another way: add blacklist r8169 to /etc/modprobe.d/pve-blacklist.conf .and run update-initramfs -u -k all . The result as below .
Code:
root@pve:~# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.13.19-2-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
It seems not work ,anyway , Reboot and recheck the lspci -knn | grep Eth -A4
Code:
lspci -knn | grep Eth -A4
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (                   rev 04)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:0123]
        Kernel modules: r8169
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (                   rev 04)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:0123]
        Kernel modules: r8169
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (                   rev 04)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:0123]
        Kernel modules: r8169
05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (                   rev 04)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:0123]
        Kernel modules: r8169
Also i tried sudo apt install realtek-r8125-dkms
Code:
root@pve:~# sudo apt install realtek-r8125-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
realtek-r8125-dkms is already the newest version (9.007.01-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Which mean i already have the newest version driver ?
Other tried : lsmod | grep -i r8169 #nothing happed .
Code:
root@pve:~# sudo apt install realtek-r8125-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
realtek-r8125-dkms is already the newest version (9.007.01-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Code:
sudo apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-5.13.19-2-pve
E: Couldn't find any package by glob 'linux-headers-5.13.19-2-pve'
And i found another answer apt install pve-headers,it won`t help neither.
Code:
root@pve:~# apt install pve-headers
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pve-headers is already the newest version (6.4-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Please help me solve this problem , tell me how to blacklist r8169 and set kernel modules as r8125.
 
Last edited:
i have the same problem i know this is old but id like this one answered if possible. i get a power state change error on this card
@moronto did u solve this ?
 
I ran :
sudo tee -a /etc/modprobe.d/blacklist-r8169.conf > /dev/null <<EOT # To use r8125 driver explicitly blacklist r8169 EOT

from : https://github.com/awesometic/realtek-r8125-dkms

lspci -knn | grep Eth -A4 06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:0123] Kernel driver in use: r8125 Kernel modules: r8169, r8125 07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:0123] Kernel driver in use: r8125 Kernel modules: r8169, r8125 08:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:0123] Kernel driver in use: r8125 Kernel modules: r8169, r8125 09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:0123] Kernel driver in use: r8125 Kernel modules: r8169, r8125