[lxc-devel] Unprivileged containers don't start with lxcfs 2.0.0
Serge Hallyn
serge.hallyn at ubuntu.com
Tue Apr 5 14:59:30 UTC 2016
Quoting Mathias Gibbens (mathias at calenhad.com):
> On Sat, 2016-04-02 at 15:53 +0000, Serge Hallyn wrote:
> > Quoting Mathias Gibbens (mathias at calenhad.com):
> > > This evening I upgraded my lxc/lxcfs install, seeing as how lxcfs
> > > 2.0.0 was tagged earlier today. However, with the current lxcfs (2.0.0)
> > > my unprivileged containers fail to start:
> > >
> > > > lxc at narya:~$ lxc-start -F -n aule.calenhad.com
Which lxc version is this. What pkg source specifically.
> > > > systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
> > > > Detected virtualization 'lxc'.
> > > > Detected architecture 'x86-64'.
> > > >
> > > > Welcome to Debian GNU/Linux 8 (jessie)!
> > > >
> > > > Set hostname to <aule.calenhad.com>.
> > > > Failed to configure loopback device: Operation not supported
> > > > Failed to install release agent, ignoring: No such file or directory
> > > > Failed to create root cgroup hierarchy: Invalid argument
> > > > Failed to allocate manager object: Invalid argument
> >
> > ... And does this still happen when you 'fix' the systemd
> > service unit as below?
>
> Yes, lxcfs 2.0.0 was running properly before I tried to start a
> container and got the output shown above.
>
> >
> > > Previously I had been running lxcfs 2.0.0.beta1, which works fine.
> > >
> > > I am running Debian 8 (jessie) on both the host as well as in the unprivileged containers. Current software versions are lxc 2.0.0.rc15, lxcfs 2.0.0.beta1, cgmanager 0.37.
> > >
> > > Additionally, with the now-included systemd unit file in lxcfs, I receive this error when attempting to start the service:
> > >
> > > > [/lib/systemd/system/lxcfs.service:11] Unknown lvalue 'Delegate' in section 'Service'
> > >
> > > Maybe this isn't supported in the version of systemd that ships in the current stable release of Debian; I simply commented it out and then the lxcfs service starts properly.
Ok this was misleading. systemd is warning about it, but lxcfs starts fine
with that keyword.
> > Ugh. So debian/rules in the jessie package should sed -i '/Delegate/d' that
> > files I guess. Would be nice if there were a nicer way to handle that.
>
> I see lxc also has the same issue with its systemd unit files. I've
> not enabled them so far, but took a quick peek so see if the same line
> was present.
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
More information about the lxc-devel
mailing list