How can I use CNI host-device in a podman container #10571
-
Hi, I'm trying to checkpoint a container with a somewhat complex configuration. I encountered some issues which are (somehow) at the intersection of Essentially, I had a configuration in which I created a tun/tap within a container and passed this to qemu which picked it up correctly. I then performed a checkpoint on the container but was unable to restore. The crux of the problem was that I created the tun/tap within the container and this was not known to either I'm now considering an approach in which I create the tun/tap on the host and pass it to the container via CNI mechanisms - I'm hoping that this way So, does podman support Thanks for any pointers... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Podman has no support for creating CNI host-device networks via Please note that this only works with root containers - rootless containers lack adequate permissions to access devices on the host. |
Beta Was this translation helpful? Give feedback.
-
I have some problem with a similar configuration, specifically with multicasts on multiple sr-iov, maybe you can help ? |
Beta Was this translation helpful? Give feedback.
Podman has no support for creating CNI host-device networks via
podman network create
, but if you manually create a CNI host-device config, we will happily let you create containers using said network via--net=$NAME
where $NAME is the name you've given to the network. This should work with CRIU as long as the network config is present on the system you restore on (I don't believe it's packaged in the CRIU checkpoint).Please note that this only works with root containers - rootless containers lack adequate permissions to access devices on the host.