Hi Jamie,
On Mon, Aug 07, 2023 at 09:11:07AM +0100, Jamie MacIsaac via BitFolk Users wrote:
tl;dr - fixed. Removed the "/etc/systemd/network/99-default.link" file then
typed "sudo update-initramfs -u" and rebooted as described in the VIRTUAL
MACHINES section of
https://wiki.debian.org/NetworkInterfaceNames#Complications_and_corner_cases
So the existence of such a file is suspicious to me - on a clean
install I don't have an /etc/systemd/network/99-default.link file
only a /lib/systemd/network/99-default.link file and your one in
/etc would be overriding the one in /lib.
I don't have a /etc/systemd/network/99-default.link in any of my
other pre-bookworm VMs either, so I'd be interested in knowing how
that got created in order to be able to advise others whether their
eth0 is going to be renamed.
Anyway, glad you got it sorted!
On Sun, 6 Aug 2023, at 23:36, Andy Smith via BitFolk
Users wrote:
$ sudo udevadm test-builtin net_id
/sys/class/net/enX0
<snip lots-more-details>
What does yours say?
"device is missing." :-(
Oh, it did that for /sys/class/net/eth0 even when your interface was
currently called eth0?
Fixed now, as described in the tl;dr section at the
top. There's nothing but comments in the /etc/systemd/network/99-default.link file,
but these comments seem to describe my situation (and maybe some others over the next few
months?) pretty well:
# This machine is most likely a virtualized guest, where the old persistent
# network interface mechanism (75-persistent-net-generator.rules) did not work.
# This file disables /lib/systemd/network/99-default.link to avoid
# changing network interface names on upgrade. Please read
# /usr/share/doc/udev/README.Debian.gz about how to migrate to the currently
# supported mechanism.
Hmm, does look like something that was automatically put in there by
some process…
I found this:
https://sources.debian.org/src/systemd/254-1/debian/changelog/?hl=5707#L5707
which I think might be a reference to it. That's from 2015 and
refers to new installs of systemd 220-7. Maybe this happens if you
originally did your install around that time?
An annoying complication if so as there would be a small chance that
the change WON'T happen to some people!
Thanks,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting