How to add a new PCI device without PCI position shift

vatastala

New Member
Jan 22, 2019
2
1
1
42
Hi all,

just a simple question...I have to add a PCI device on my server, I noticed that adding It the result is that, using lspci, the ethernet controller shift from position 4 to 5, and also the other devices...So, the host is unreachable and I have to remove the new card.

How can I manage this? I have to mantain the position number of the eth controller OR edit something to let the host know that the card is no more in pci position 4 but 5.

Thanks and sorry for my english
 
  • Like
Reactions: majorgear
As far as I know, there is no way to prevent the PCI dervice from shifting.

Regarding the network connection, have a look at /etc/network/interfaces from the console of your host.
The name of the network devices is probably derived from the PCI address. Look for something like enpXsY. The X is from the PCI address and will likely increase by 1.
You can add the PCI device, Log in to the console of the host and do a journalctl -b 0 | grep 'renamed from' to verify the new name.
(Maybe do this also before adding the PCI device to make sure. If the name is indeed enpXsY, you could make the change before adding the PCI device, but it will be hard to undo a mistake!)
Then change all(!) occurences of the network device name using nano /etc/network/interfaces.
 
As far as I know, there is no way to prevent the PCI dervice from shifting.

Regarding the network connection, have a look at /etc/network/interfaces from the console of your host.
The name of the network devices is probably derived from the PCI address. Look for something like enpXsY. The X is from the PCI address and will likely increase by 1.
You can add the PCI device, Log in to the console of the host and do a journalctl -b 0 | grep 'renamed from' to verify the new name.
(Maybe do this also before adding the PCI device to make sure. If the name is indeed enpXsY, you could make the change before adding the PCI device, but it will be hard to undo a mistake!)
Then change all(!) occurences of the network device name using nano /etc/network/interfaces.
Perfect, thank you very very much, fantastic solution. Thank you also @RokaKen :)
 

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!