Distrobox, podman, conmon and runc vs crun in Tumbleweed
Hi all, First of all I must admit I know nothing about the podman and related ecosystem and I still use docker. Recently I tried to run https://github.com/89luca89/distrobox on the Tumbleweed system. The problem was that every distrobox-enter command ended with a weird error message (I would need to revert the system back in order to provide more logs). I was not able to find any other failed operation in in logs than failed to write to /proc/self/oom_score_adj: Permission denied Which is not particularly helpful. It is extremely common and you can hardly find any useful hints. I only recall that once a while I found a hint to use crun instead of runc. Which I tried to do by editing containers.conf cat ~/.config/containers/containers.conf [engine] runtime = "crun" And it seems that I haven't changed /etc/containers much $ rpm --verify libcontainers-common-20210626-8.1.noarch S.5....T. c /etc/containers/storage.conf Then according to logs podman was using crun and common runc (why??). So I simply replaced the /usr/bin/runc by crun. And then the distrobox started to work perfectly. The runc can't be uninstalled because of dependencies on a podman and a docker and does not work for me either I use cgroups v2 as far as I know. For this podman(1) says "When the machine is configured for cgroup V2, the default runtime is crun" mount | grep cgroup cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot) And at this moment I am totally confused. There are so many components, so many concerns like versions of cgroups and so much outdated and pointless information out there. I tried UTG and RTM, but these haven't helped me. So I have a few questions * is /usr/bin/runc supposed to work with a distrobox? If so, why hasn't this worked then? * if distrobox is supposed to work with /usr/bin/crun only, then probably some configuration is missing * and in general - why openSUSE prefer runc when podman documentation says that crun should be the default for cgroups v2. Are there any drawbacks? Thanks for your answers Michal Vyskocil
Hi, Am Montag, 25. April 2022, 18:32:27 CEST schrieb Michal Vyskocil:
Hi all,
First of all I must admit I know nothing about the podman and related ecosystem and I still use docker. Recently I tried to run https://github.com/89luca89/distrobox on the Tumbleweed system. The problem was that every distrobox-enter command ended with a weird error message (I would need to revert the system back in order to provide more logs). I was not able to find any other failed operation in in logs than
failed to write to /proc/self/oom_score_adj: Permission denied
https://github.com/containers/podman/issues/7030? Cheers, Fabian
Which is not particularly helpful. It is extremely common and you can hardly find any useful hints. I only recall that once a while I found a hint to use crun instead of runc. Which I tried to do by editing containers.conf
cat ~/.config/containers/containers.conf [engine] runtime = "crun"
And it seems that I haven't changed /etc/containers much
$ rpm --verify libcontainers-common-20210626-8.1.noarch S.5....T. c /etc/containers/storage.conf
Then according to logs podman was using crun and common runc (why??). So I simply replaced the /usr/bin/runc by crun. And then the distrobox started to work perfectly. The runc can't be uninstalled because of dependencies on a podman and a docker and does not work for me either
I use cgroups v2 as far as I know. For this podman(1) says "When the machine is configured for cgroup V2, the default runtime is crun"
mount | grep cgroup cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
And at this moment I am totally confused. There are so many components, so many concerns like versions of cgroups and so much outdated and pointless information out there. I tried UTG and RTM, but these haven't helped me. So I have a few questions
* is /usr/bin/runc supposed to work with a distrobox? If so, why hasn't this worked then? * if distrobox is supposed to work with /usr/bin/crun only, then probably some configuration is missing * and in general - why openSUSE prefer runc when podman documentation says that crun should be the default for cgroups v2. Are there any drawbacks?
Thanks for your answers Michal Vyskocil
participants (2)
-
Fabian Vogt
-
Michal Vyskocil