I’m running two Ubuntu 16.04 servers and have several containers on each. I’m also using ZFS for the storage backend and I followed Stephane’s LXD 2.0 series as well as this page for setting up the servers.
The problem I’m having on both boxes is that yesterday I performed my usual apt update and apt upgrade routines and didn’t have any problems with the upgrades. However, after rebooting both machines my lxc container states are showing ‘ERROR’ after I issues the lxc list command. When I try to start a container I get the message: “error: Failed to set LXC config: lxc.pts=1024”.
I’ve looked around trying to find this issue discussed but I haven’t had any luck doing so. If I look at /var/log/lxd/lxd.log I also see an error for each container showing:
err=“Failed to set LXC config: lxc.pts=1024” lvl=eror msg=“balance: Unable to set cpuset” name= value=0,1,2,3,4,5,6,7
Thank you for the information Stephane (and Simos!).
Although I’ve worked with Ubuntu for a while I’ve never had to specifically downgrade a package. Would the best way be to apt remove liblxc (and it’s dependencies) and then apt install liblxc1=2.0.8-0ubuntu1~16.04.2? Or is there a better/preferred way to do it to keep from messing anything up?
Hopefully that last one will figure out the right downgrade sequence, if not, you may have to expand it with lxc-common=2.0.8-0ubuntu1~16.04.2 and possibly some more of the packages depending on exactly what you have installed on your system.
Respected all,
I also got the same error
err=“Failed to set LXC config: lxc.pts=1024” lvl=eror msg=“balance: Unable to set cpuset” name= value=0,1,2,3,4,5,6,7
And followed the solution
Remove the PPA from /etc/apt/sources.list.d
Run apt update
Run apt install liblxc1=2.0.8-0ubuntu1~16.04.2
But after running last command getting error as:
liblxc1 : Depends: lxc-common (= 2.0.8-0ubuntu1~16.04.2)