Podman unable to run container

Hi,

I’m trying to run podman containers on opensuse microos in a VM using virt-manager and getting the bellow error:

crun: opening file `memory.max` for writing: No such file or directory: OCI runtime attempted to invoke a command that was not found

I believe I have nested virtualization enable correctly.

I think it’s an issue with cgroups. If I run ls /sys/fs/cgroup I can see cgroup.controllers and other memory files but no memory.max. Is this correct? Am I chasing down the wrong path?

Thanks in advance for any help.

I managed to track down the issue. I found this guide which explains a little on the setup of cgroups v2 for rootless containers: https://rootlesscontaine.rs/getting-started/common/cgroup2/

I added:

[Service]
Delegate=cpu cpuset io memory pids

to the file /etc/systemd/system/user@.service.d/delegate.conf

This enables cgroups delegation of memory, pids and cpu .

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.