adding an extra/better network card

AvdN

New Member
Dec 19, 2022
11
1
3
Just wanted to share my experience with adding 10Gb network cards to systems that already had PVE installed and working.
On both systems I tried this (with different cards), this caused my the PVE GUI no longer to be reachable.

I had to connect keyboard and display to login, use ip addr to see the new name of the adapter and then edit /etc/network/interfaces to update the name (in two places).

In one case from enp3s0 to enp4s0, while the (dual) 10Gb card got the names enp1s0f0 and enp1s0f1.
Code:
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp3s0 inet manual
       # ^ changed 3 to 4
iface enp1s0f0 inet manual

iface enp1s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.0.3/24
    gateway 192.168.0.1
    bridge-ports enp3s0
                  # ^ changed 3 to 4
    bridge-stp off
    bridge-fd 0

source /etc/network/interfaces.d/*

did reboot after making the change.

In the end I used that method as well for switching to using the 10Gb card on one machine, and used the System->Network entry in the GUI to change the other (after being able to reconnect to the GUI on the 1Gb interface).

This might help someone out. I don't think it is an issue for anyone who first assembles the final hardward and then installs proxmox.
 
Hello! So you got different names for the nic? This could not be a final solution to this. Names should not be different. You can change the behaviour of udev so names of the nics are ALWAYS the same, even after upgrades from the baseos:

cp /usr/lib/systemd/network/99-default.link /etc/systemd/network/99-default.link
sed -i 's/NamePolicy=keep kernel database onboard slot path/NamePolicy=path/' /etc/systemd/network/99-default.link
update-initramfs -u
you need to reboot after that, this might change your names one time again, but the last time ever.
 
  • Like
Reactions: AvdN
I had seen some references to "fixing" things with udev rules, but I didn't want to delve into how they exactly work and understand how to solve using that route.
Everything is fine for now, so I am reluctant to change things, but maybe things break when I populate one of the two free 1x PCI-e slots, as the above name changed involved putting a dual SPF card in the 16xPCI-e slot. In that case I'll try to solve it using your suggestion.
Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!