[Windows] Detect and update the cgroups-v2 for wsl by default as part of installation

Author: praveenkumarCreated Oct 18, 2024Updated Oct 1, 2026
Labelsos/windows 🪟lifecycle/staleexternal-user

Is your feature request related to a problem? Please describe

I am working on microshift in container usecase and looks like it will not work if the underline container host not using cgroups-v2. https://github.com/spurin/wsl-cgroupsv2 have all the steps how it can be enabled using .wslconfig file.

Describe the solution you'd like

It would be better if podman desktop detect if there is already wsl environment then does it using cgroups-v1 or v2 and update to v2. If there is no wsl environment then directly update the config to use cgroups-v2.

Describe alternatives you've considered

No response

Additional context

No response

Source: podman-desktop/podman-desktop