Prevent SystemD from renaming after upgrade.

Sep 11, 2019
26
1
8
55
When I upgraded my test cluster from 6.x to 7.x there were no issues.

Today when upgrading one of my production nodes it appears that systemd used a new naming structure and all my interfaces changes as follows:

ens3f0 - enp175s0f0 ens3f1 - enp175s0f1 ens6f0 - enp24s0f0 ens6f1 - enp24s0f1 ens7f0 - enp25s0f0 ens7f1 - enp25s0f1

I was able to use a 'sed' scripts to make the needed changes in /etc/network/interfaces but I'd rather not deal with that on future nodes or have to create a link file for each node.

Is there a way I can prevent this change from happening before I run the dist-upgrade going forward?
 
Yes
<snip>

Is there a way I can prevent this change from happening before I run the dist-upgrade going forward?

Yes, as described in the section 3.3.2 of the PVE Admin Guide [0] and explained at the included link Predictable Network Interface Names [1], one solution would be using systemd.link [2] to maintain reasonable names of your own choosing.


[0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration
[1] https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
[2] https://www.freedesktop.org/software/systemd/man/systemd.link.html