Re: [qubes-users] Swap/remove second network card => no network at all?

2018-11-02 Thread 'Bjoern Christoph' via qubes-users
Am Mittwoch, 31. Oktober 2018 13:32:33 UTC+1 schrieb awokd:
> 'Bjoern Christoph' via qubes-users wrote on 10/26/18 5:14 PM:
> > 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?
> 
> You're right, it's probably renumbering the cards. On sys-net, go to 
> Qube Settings/Devices and re-add your NIC.

Thank you, that helped :)

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/fe364081-878a-4af4-883b-c5f7ffd80fc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Swap/remove second network card => no network at all?

2018-11-01 Thread unman
On Fri, Oct 26, 2018 at 10:14:54AM -0700, 'Bjoern Christoph' via qubes-users 
wrote:
> 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
> 

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

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20181101160859.3vvtg2ixjj32bdza%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Swap/remove second network card => no network at all?

2018-10-31 Thread 'awokd' via qubes-users

'Bjoern Christoph' via qubes-users wrote on 10/26/18 5:14 PM:

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?


You're right, it's probably renumbering the cards. On sys-net, go to 
Qube Settings/Devices and re-add your NIC.


--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/73d4c5c8-a98d-79ed-af69-c733b367bcec%40danwin1210.me.
For more options, visit https://groups.google.com/d/optout.