Can use a PCIe card on LXD?

Hello!

This is my first Post.

I’m complete noob and newie using LXD or even LXC. so im interested to know if is possible to use a PCIe card installed on host over my LXD container? When i use Docker I’m able to do that but i want to know how can i set up using LXD.

Thanks

Docs do seem lacking, but from a quick search yes;

I think if your using a GPU / NIC you should use gpu or nic instead of pci but that should hopefully get you going

1 Like

Yes you can use the pci device type:

However depending on the PCIe card type, it may be more suitable to pass in the logical devices provided by the card, such as NIC interface, unix char or unix block device.

See:

1 Like

Thanks a lot… I’ll check thats links!

1 Like