Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoMemoryReclaim=gradual causes Error: OCI runtime error: crun: cgroups in hybrid mode not supported, drop all controllers from cgroupv2 wih podman #10499

Closed
1 of 2 tasks
snt opened this issue Sep 19, 2023 · 4 comments

Comments

@snt
Copy link

snt commented Sep 19, 2023

Windows Version

Microsoft Windows [Version 10.0.22621.2134]

WSL Version

2.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.123.1-1

Distro Version

Ubuntu-22.04

Other Software

Podman 4.5.1

Repro Steps

  1. Setup Podman on Ubuntu
    Follow the steps described in https://podman.io/docs/installation#debian .
sudo mkdir -p /etc/apt/keyrings

# Debian Testing/Bookworm
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Testing/Release.key \
  | gpg --dearmor \
  | sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\
    https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Testing/ /" \
  | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null

# Debian Unstable/Sid
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Unstable/Release.key \
  | gpg --dearmor \
  | sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\
    https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Unstable/ /" \
  | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null

# Install Podman
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install podman
  1. Shutdown WSL2:
wsl --shutdown
  1. Configure WSL2

Update ~/.wslconfig:

[experimental]
autoMemoryReclaim=gradual
sparseVhd=true
  1. Start WSL and run podman command
podman run busybox ls

Expected Behavior

$ podman run busybox ls
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
bin
dev
etc
home
lib
lib64
proc
root
run
sys
tmp
usr
var

Actual Behavior

$ podman run busybox ls
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
Error: OCI runtime error: crun: cgroups in hybrid mode not supported, drop all controllers from cgroupv2

Diagnostic Logs

Commenting out autoMemoryReclaim from ~/.wslconfig on host Windows11 solves the error and podman runs as Expected Behavor.

cat ~/.wslconfig
[experimental]
#autoMemoryReclaim=gradual
sparseVhd=true
@ghost
Copy link

ghost commented Sep 19, 2023

Thanks for reporting, you may want to use dropcache instead of gradual for the time being.

@snt
Copy link
Author

snt commented Sep 20, 2023

@pmartincic Thank you! podman runs as expected with dropcache.

@ghost
Copy link

ghost commented Sep 20, 2023

/dupe #10497

@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant