[Lxc-users] Exposing arbitrary PCIe devices or bridges to a container

Serge Hallyn serge.hallyn at canonical.com
Fri Jan 4 22:36:12 UTC 2013


Quoting William Tu (u9012063 at gmail.com):
> Hi Folks,
> 
> I'm new to the LXC and recently I'm wondering that is it possible to
> pass-through an arbitrary PCI device to a container?
> For example, I have an NTB (Non-transparent Bridge) device and I'd
> like to pass it to a container.
> 
> Or is it possible to assign (PCI bridges + PCI device endpoints) to a
> container so that when the guest OS boots up,
> it is able to scan these buses, find endpoints, and load corresponding drivers?

You can allow the container to access any devices you want by
allowing them through the devices cgroup, and probably access
through /sys.  However if the device major:minor are dynamic,
you'll simply need to provide full access.

-serge




More information about the lxc-users mailing list