Hi,
If after an upgrade from 7 to 8, or a fresh install of your interface seem to die randomly (minutes to hours), and only indication you see in your syslog is:
possibly you've got a Realtek network interface that seem to be affected by this bug.
Backdrop:
At least for me it seem that something has changed in 6.2.16-12-pve from previous versions and driver r8169 seem to be flaky. Before upgrade, I've never even bothered to check which driver those were using - because everything was rock solid. However I've spent two days trying to get to the bottom of this and found an article here that explains how to at least for now get your interfaces working.
Since I don't know what might happen with "medium" article, I will write steps down here for people searching through this forum.
Fix here seems to be at least for time being to use r8168 driver that can be build from "non free" repositories. To do so:
1. check what controller you've got:
if it's not physically r8169 and it's using r8169 driver, this seem to be a culprit.
2. Add non free repos to your debian apt repositories:
3. Update list of available packages, install kernel headers which will allow to build the r8168 driver (it builds during installation), and then install r8168 driver.
4. reboot
5. check whenever the machine is using a new driver:
6. if the driver being used is NOT r8168, may need to black list r8169 but be sure that you have physical access to the machine as you may loose networking alltogether !!! I didn't had to black list it, it just worked for me.
Trouble shooting:
in the article there is a mention that for somebody installation failed on dkms, and they had to do the following:
To people in charge of 7to8 guide:
Can you please add warning that people with Realtek network cards, using 8169 driver might experience connectivity after the upgrade ?
If after an upgrade from 7 to 8, or a fresh install of your interface seem to die randomly (minutes to hours), and only indication you see in your syslog is:
Code:
NETDEV WATCHDOG: enp1s0 (r8169): transmit queue 0 timed out
Backdrop:
At least for me it seem that something has changed in 6.2.16-12-pve from previous versions and driver r8169 seem to be flaky. Before upgrade, I've never even bothered to check which driver those were using - because everything was rock solid. However I've spent two days trying to get to the bottom of this and found an article here that explains how to at least for now get your interfaces working.
Since I don't know what might happen with "medium" article, I will write steps down here for people searching through this forum.
Fix here seems to be at least for time being to use r8168 driver that can be build from "non free" repositories. To do so:
1. check what controller you've got:
Code:
# lspci -nnk | grep -A2 Ethernet
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1028:080c]
Kernel driver in use: r8169
Kernel modules: r8169
2. Add non free repos to your debian apt repositories:
Code:
# cat /etc/apt/sources.list
deb http://ftp.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://ftp.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
3. Update list of available packages, install kernel headers which will allow to build the r8168 driver (it builds during installation), and then install r8168 driver.
Code:
apt update
apt install pve-headers
apt install r8168-dkms
4. reboot
5. check whenever the machine is using a new driver:
Code:
# ethtool -i enp1s0
driver: r8168
version: 8.051.02-NAPI
firmware-version:
expansion-rom-version:
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
6. if the driver being used is NOT r8168, may need to black list r8169 but be sure that you have physical access to the machine as you may loose networking alltogether !!! I didn't had to black list it, it just worked for me.
Code:
echo blacklist r8169 >> /etc/modprobe.d/blacklist-r8169.conf
Trouble shooting:
in the article there is a mention that for somebody installation failed on dkms, and they had to do the following:
Code:
dkms build r8168/8.051.02
dkms install r8168/8.051.02
modprobe r8168
systemctl restart networking
To people in charge of 7to8 guide:
Can you please add warning that people with Realtek network cards, using 8169 driver might experience connectivity after the upgrade ?
Last edited: