I’ve ubuntu 22.04 as bare-metal os whith the custom kernel linux 5.15.52-dfl and an intel fpga agilex 7 (connected to the motherboard with PCIe 2.0). I want to bind the fpga to a LXC container using VFIO driver, I’m new to LXC container so I don’t have a clue how to do that. First of all, is it possible to do that ? Can you give me some tips ?
We are talking about a container which is an isolated process on the host. It is not like in case of a virtual machine to which you mount a USB device for example and it disappears from the host. The device option of Docker just mount the required device from /dev/ and sets some permissions. Mounted devices and volumes are part of the container definition which you can’t change without deleting the container and recreating it. In a compose file it i sjust changing the config file and running docker compose up -d again, but it will recreate the container. I think the only thing you can attach and detach (disconnect) from a running container is the network.