Bug#981101: cgroup is not mounted
Michael Biebl
biebl at debian.org
Tue Jan 26 12:57:55 GMT 2021
Am 26.01.21 um 13:53 schrieb shan.bharani at gmail.com:
> Hi Michael,
>
> Shouldn't "/sys/fs/cgroup/unified" be mounted by systemd to be used lxc
> to use cgroupv2?
>
> Should we need to do "mount -t tmpfs cgroup /sys/fs/cgroup" for
> cgroupv2 as well? Will it be done systemd ?
>
> In cgroupv1, it is usually seen "/sys/fs/cgroup" mounted on tmpfs. In
> case of cgroupv2 unified, nothing like that is seen.
>
>
> df -h
> Filesystem Size Used Avail Use% Mounted on
> udev 3.4G 0 3.4G 0% /dev
> tmpfs 692M 1.7M 691M 1% /run
> /dev/sda8 125G 57G 62G 48% /
> tmpfs 3.4G 0 3.4G 0% /dev/shm
> tmpfs 5.0M 4.0K 5.0M 1% /run/lock
> /dev/sda1 96M 62M 35M 65% /boot/efi
> tmpfs 692M 212K 692M 1% /run/user/1000
>
>
>
> Please note that lxc and lxcfs is malfunctioning for fresh installs
> (Linux coffee 5.10.0-1-amd64 #1 SMP Debian 5.10.4-1 (2020-12-31) x86_64
> GNU/Linux) as well. Not sure which package is having problem. But
> its(lxc) not working.
I can not confirm that.
lxc is working fine here ootb with cgroupv2.
No changes necessary, no manual mounts or anything.
The only known issue I'm aware of, is if you want to run jessie
containers on a bullseye/sid host.
Since jessie's systemd does not yet support cgroupv2, you need to switch
the host back to unified if you want to use such containers.
Maybe you have some custom config, which breaks lxc. The lxc maintainers
will be in a better situation to help you debug that.
Regards,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20210126/58637763/attachment-0001.sig>
More information about the Pkg-systemd-maintainers
mailing list