This lab is using PVE9.1.4, no subscription (although don't think there's anything different in Enterprise repo in this regard). Using nested PVE to test Ceph configs, etc. When installing the nested PVE with the iso I choosed to pin the network interfaces, so a config file is created at /usr/local/lib/systemd/network/50-pmx-nic0.link and the nic is pinned correctly.
Then I added a second nic to the VM. Ran
It also creates it's own configuration files:
/usr/local/lib/systemd/network/50-pve-nic0.link
/usr/local/lib/systemd/network/50-pve-nic1.link
Please notice the naming inconsistency (pve vs pmx) of these files. If at some point you start playing with vlans, different bridges on the host, etc, your network may not work as expected because your nic0 may not be associated with the MAC you expect it to be. Don't know the precedence of systemd when using these .link files, but I assume alphanumeric ordering, so the pinning done at install time would take precedence.
Is this just a bug or am I missing something?
Then I added a second nic to the VM. Ran
pve-network-interface-pinning generate to pin this second nic but to my surpise it did not recognize the previously pinned nic:
Code:
pve-network-interface-pinning generate
This will generate name pinning configuration for all interfaces - continue (y/N)?
y
Name for link 'nic0' (enp6s18, enxbc24112c9db4) will change to 'nic0'
Name for link 'ens19' (enp6s19, enxbc241148fd38) will change to 'nic1'
Generating link files
Successfully generated .link files in '/usr/local/lib/systemd/network/'
Updating /etc/pve/nodes/zataca-pve05-IEB01/host.fw.new
Updating /etc/network/interfaces.new
Updating /etc/pve/sdn/controllers.cfg
Updating /etc/pve/sdn/fabrics.cfg
Successfully updated Proxmox VE configuration files.
Please reboot to apply the changes to your configuration
It also creates it's own configuration files:
/usr/local/lib/systemd/network/50-pve-nic0.link
/usr/local/lib/systemd/network/50-pve-nic1.link
Please notice the naming inconsistency (pve vs pmx) of these files. If at some point you start playing with vlans, different bridges on the host, etc, your network may not work as expected because your nic0 may not be associated with the MAC you expect it to be. Don't know the precedence of systemd when using these .link files, but I assume alphanumeric ordering, so the pinning done at install time would take precedence.
Is this just a bug or am I missing something?