meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:lxc:issues:unified_cgroups [2021/04/25 19:51] niziaklinux:lxc:issues:unified_cgroups [2021/04/25 20:14] (current) niziak
Line 2: Line 2:
  
 Problem introduced with change from systemd 241 to 247. Problem introduced with change from systemd 241 to 247.
-Previous v241 was built with ''-Ddefault-hierarchy=hybrid'' and current v247 is built with ''-Ddefault-hierarchy=unified'' 
 Main change is to drop CGroup V1 support and switch by default to ''unified'' CGroup V2. Main change is to drop CGroup V1 support and switch by default to ''unified'' CGroup V2.
 +  * Previous v241 was built with ''-Ddefault-hierarchy=hybrid''
 +  * Current v247 is built with ''-Ddefault-hierarchy=unified''
  
 +<code bash>
 +$ systemctl --version
 +systemd 247 (247.3-1~bpo10+1)
 ++PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified
 +</code>
  
 Lots of issues are reported, and lots of containerization software needs to be upgraded: Lots of issues are reported, and lots of containerization software needs to be upgraded:
Line 13: Line 19:
  
 Resources: Resources:
 +  * [[https://lwn.net/Articles/716454/|systemd 233]]
   * [[https://medium.com/nttlabs/cgroup-v2-596d035be4d7|The current adoption status of cgroup v2 in containers]]   * [[https://medium.com/nttlabs/cgroup-v2-596d035be4d7|The current adoption status of cgroup v2 in containers]]
   * [[https://github.com/lxc/lxc/issues/3221|Unable to start an unprivileged container on fresh install of Fedora 31]]   * [[https://github.com/lxc/lxc/issues/3221|Unable to start an unprivileged container on fresh install of Fedora 31]]
 +  * [[https://github.com/lxc/lxc/issues/3183|Fails to work with cgroupv2 / unified hierarchy #3183]]
  
 ===== Workaround ===== ===== Workaround =====
Line 21: Line 29:
  
 Add kernel boot commandline argument: ''systemd.unified_cgroup_hierarchy=0'' Add kernel boot commandline argument: ''systemd.unified_cgroup_hierarchy=0''
 +
 +<code bash>
 +echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT systemd.unified_cgroup_hierarchy=false"' > /etc/default/grub.d/cgroup.cfg
 +</code>
 +
 More info: More info:
   * **systemd.unified_cgroup_hierarchy**   * **systemd.unified_cgroup_hierarchy**