Swap/remove second network card => no network at all?

31 views
Skip to first unread message

Bjoern Christoph

unread,
Oct 26, 2018, 1:14:54 PM10/26/18
to qubes-users
I've got two network cards in my workstation.

Now I removed the unneeded network card, start Qubes --> no network at all?

I place the network card back in it's original slot, start Qubes --> network is back!

I move the card to a different slot --> no network again?

I assume this has something to do with the BDF which then prevents some script/code from running - but this is pretty annoying to be honest. I was not able to find any information on where this relationship is stored or how to change/remove it.

It would be great if Qubes could/would keep track of the PCI ID/BDF relation and if cards have been moved to a different BDF then adjust that internally to prevent this problem from happening.

And for now - how do I solve this?

Thanks,
Bjoern

awokd

unread,
Oct 31, 2018, 8:32:33 AM10/31/18
to qubes...@googlegroups.com
'Bjoern Christoph' via qubes-users wrote on 10/26/18 5:14 PM:
You're right, it's probably renumbering the cards. On sys-net, go to
Qube Settings/Devices and re-add your NIC.

unman

unread,
Nov 1, 2018, 12:09:01 PM11/1/18
to qubes-users
I havent noticed BDF changes when making hardware changes. Strange that
you should.
You can confirm what is happening by running qvm-pci list sys-net.
Then run lspci in the 3 cases you've outlined.

The solution is to ensure that the device is allocated to sys-net using
the current BDF.
If you are regularly swapping out cards, then you could put a simple
script in dom0 to sys-net using qvm-pci attach. Obviously you'd want
this to run before bringing up the network.

unman

Bjoern Christoph

unread,
Nov 2, 2018, 8:45:37 AM11/2/18
to qubes-users

Thank you, that helped :)

Reply all
Reply to author
Forward
0 new messages