Podman in Podman (PINP) Nested cgroupv2 Delegation #25935
RaubCamaioni
started this conversation in
General
Replies: 1 comment
-
I have a "rootfull" implementation partially working.
edit
Looks like it is a delegation / nested cgroup instance.
Just need to figure out if systemd can be utalized in rootless mode. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking for context if nested hierarchical cgroupv2 resource allocation in podman in podman is possible?
I am using podman to sandbox user submitted code and would like to containerize the entire application.
Current state of rootless PINP cgroupv2.
Rootless PINP is working.
The below guides work as of April 21, 2025.
Rootless podman in podman: https://www.redhat.com/en/blog/podman-inside-container
Rootless podman: https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md
Allow cpuset flag on rootless containers: https://rootlesscontaine.rs/getting-started/common/cgroup2/
Attempting to get nested cgroupv2 cpuset restrictions working in PINP.
I lack full stack understanding of podman cgroupv2 interactions.
Rebuilding the container located at https://github.com/containers/image_build/tree/main/podman
used to build the quay.io/podman/stable container for the PINP tutorial.
I changed the containers.conf to allow cgroups="private" and cgroups="enabled", previously set to cgroups="host".
Hyper-V: Virtual Machine
Host System: Fedora release 42 (Adams)
podman version 5.4.2
Running the following command: The cgroup flags are probably redundant.
I am currently diving into cgroupv2 interaction with systemd, cgroup delegation, and podman.
I believe it should be possible to have nested cgroup delegation in rootless containers.
Allowing hierarchical resource allocation between nested containers.
Has anyone preformed nested cgroupv2 restrictions?
Perhaps this is a bad idea?
I am also trying to get isolate to work inside podman, relying on nested cgroupv2 restrictions.
Beta Was this translation helpful? Give feedback.
All reactions