"error: setting config item for the container failed"

Hi,
I can’t start any container and all the time when I try to start one I have the next message:
error: setting config item for the container failed
In /var/log/lxd/lxd.log appearse for all containers:
err="setting config item for the container failed" lvl=eror msg="balance: Unable to set cpuset" name=shell t=2018-04-28T21:51:44+0200 value=0,1,2,3

I’m using LXD 2.21 from backports repository.
$ dpkg -l | grep -i lxc
ii liblxc-common 3.0.0-0ubuntu2~ubuntu16.04.1~ppa1 amd64 Linux Containers userspace tools (common tools)
ii liblxc1 3.0.0-0ubuntu2~ubuntu16.04.1~ppa1 amd64 Linux Containers userspace tools (library)
rc lxc-common 2.1.1-0ubuntu1~ubuntu16.04.1~ppa1 amd64 Linux Containers userspace tools (common tools)
ii lxcfs 3.0.0-0ubuntu1~ubuntu16.04.1~ppa1 amd64 FUSE based filesystem for LXC
ii lxd 2.21-0ubuntu3~16.04.2 amd64 Container hypervisor based on LXC - daemon
ii lxd-client 2.21-0ubuntu3~16.04.2 amd64 Container hypervisor based on LXC - client

Any ideas?
Thanks and salutes

No ideas im afraid but I think this is the same problem I am having with lxc since I did full system update on archlinux. Worked fine before the update.

It’s because you’re trying to run LXD 2.21 with liblxc 3.0, this isn’t supported.
Either downgrade liblxc back to 2.1 or upgrade LXD to 3.0.

The reason for this is that LXD 2.21 doesn’t know about some renamed configuration keys that happened in liblxc 3.0.

Yes, I revised the logs and saw the upgrade of liblxc. Upgrading to LXD 3.0 via snap solved the problem.

Thanks

I was personally using ubuntu-lxc/lxc-stable PPA + xenial-backports, and received liblxc 3.0 while the PPA / backports only offer LXD 2.21.

It looks like this PPA alone is not offering a supported configuration on xenial; did I miss LXD deb backports available somewhere?

(@stgraber I do run the LXD snap on another host :slight_smile:

I did this the same way you with did

apt install -t xenial:backports lxd

How do you revert one area of the package?

You’re trying to run lxd 2.21 with lIblxc 3. The easiest fix would be to upgrade to LXD 3.0.