Question asked about hw passthrough


(Brian Mullan) #1

I had someone ask me this question & I don’t know the answer so thought I’d put it on the forum…

“would love to know if it can support hardware passthrough beyond passing /dev (I want to do stuff in the /sys/pci tree, which I can do in KVM but would like to see how to do so in LXD/LXC).”


(Stéphane Graber) #2

/sys/pci isn’t namespaced, so all containers can see it, though unprivileged containers will not be able ot mess with it and privileged containers would need some special config to turn off apparmor for those paths.

So it’s probably possible to have a container play with /sys/pci but that’s not going to be particularly safe (so better trust that particular container).


(Brian Mullan) #3

Thanks Stephane for the information!