How does the installer choose which NIC to use? How can I force it to use another one?

kayson

Member
Feb 13, 2024
30
1
8
My hosts have dual-port NICs, both of which are generally connected and get DHCP addresses. When I PXE boot into an automated proxmox installer, it's booting from Port 0. For some reason, though, once it's in the installer, it seems to be using Port 1 instead. This means that when the interfaces file is written, vmbr0 uses Port 1 (the answers file uses "from-dhcp"). For a number of reasons, I'd like it to use Port 0 instead.

Obviously there are a number of ways to fix this, especially after installation. But I'm hoping to get this set via the installer so it's truly hands off and comes up ready to go. Is that possible?
 
For the automated installer, this is indeed currently not possible/implemented - in DHCP mode, it just chooses the first found NIC (as enumerated by the kernel) that has an DHCP lease, essentially.

But definitely makes sense to being able to choose. I think it would make sense to allow setting filter (Filters) in combination with source = "from-dhcp". Would that work for your use-case? Then you can match on hardware details of the NIC.

Would you mind creating a feature request at https://bugzilla.proxmox.com/ with the details and your usecase? This helps us to keep track of the feature request and you can subscribe to it to get updates on it.
 
  • Like
Reactions: Kingneutron