The rule in is: ENV{ID_NET_DRIVER}=="veth", ENV{NM_UNMANAGED}="1" however, on my system, no network device has ID_NET_DRIVER set so the rule is never matched. The present attributes are: P: /devices/virtual/net/vethcf09565 E: DEVPATH=/devices/virtual/net/vethcf09565 E: IFINDEX=10 E: INTERFACE=vethcf09565 E: SUBSYSTEM=net E: USEC_INITIALIZED=6109932011 E: net.ifnames=0 Reproducible: Always
Created attachment 625004 [details] emerge --info
btw, as a workaround, I changed the rule to: ENV{INTERFACE}=="veth*", ENV{NM_UNMANAGED}="1"
I wonder if not this file is the reason: /lib/udev/rules.d/84-nm-drivers.rules it has /usr/sbin/ethtool hardcoded and Gentoo NM does not depend on ethtool. Your rule is better though as it does not depend on ethtool at all.
You are right, /lib/udev/rules.d/84-nm-drivers.rules is the broken one, but not necessarily because of ethtool hardcoded path, I do have it there. But on Gentoo "sed" is installed in /bin, not /usr/bin.
(In reply to Andrei Slavoiu from comment #4) > You are right, /lib/udev/rules.d/84-nm-drivers.rules is the broken one, but > not necessarily because of ethtool hardcoded path, I do have it there. But > on Gentoo "sed" is installed in /bin, not /usr/bin. Right, I forgot it was sed, not ethtool. Still good to loose the ethtool/sed dependency though
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f8d9746194996f440c3cd5ee6276ecdb0c62add commit 5f8d9746194996f440c3cd5ee6276ecdb0c62add Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-10-15 13:42:55 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-11-05 02:41:31 +0000 net-misc/networkmanager: fix 84-nm-drivers.rules UDEV rule Closes: https://bugs.gentoo.org/714168 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/17935 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> net-misc/networkmanager/networkmanager-1.26.4.ebuild | 5 +++++ 1 file changed, 5 insertions(+)
This needs upstreaming in a more complete form
In the v1.38.0 NEWS file I see > * Veth devices with name "eth*" are now managed by default via the > udev rule. This is to support managing the network in LXD containers. Does this resolve the issue?
What still needs to be done here? How can I test if this is resolved? (I fixed the problem manually but don't recall how.)
*** Bug 811291 has been marked as a duplicate of this bug. ***