Error: The image used by this instance requires a CGroupV1 host system when using clustering

Hi

I’m using LXD cluster on version 5.0.0 and when I want to lxc launch images:centos/7/amd64 c1 I find this :

Error: The image used by this instance requires a CGroupV1 host system

But when I used LXD without cluster there was no problem and centos ran smoothly.

Thank You.

This isn’t specific a standalone or clustered LXD setups, it is to do with the cgroup setup of the LXD host compared to what the image you’re trying to use requires.

Running older container OSes on more modern host systems that use CGroupV2 can produce this conflict.

To resolve it you need to boot your host system into CGroupV1 mode by modifying your kernel’s boot arguments to include:

systemd.unified_cgroup_hierarchy=false 

Then:

sudo update-grub
3 Likes

Hi, thanks for respone and its working.

Hi Tom,

Iam having the same issue. When trying to start an old os like centos 7 on ubuntu 22. Iam having this message " * Notice: Starting instance Error: The image used by this instance requires a CGroupV1 host system"

I also tried to modify the grup like this :
#vi /etc/default/grub
GRUB_CMDLINE_LINUX=“systemd.unified_cgroup_hierarchy=false”
update-grub

But still having the same error .

How can i solve this issue.

Best regards

systemd.unified_cgroup_hierarchy=0 works for me on Ubuntu 22.04 LTS.