Failed to mount cgroup at /sys/fs/cgroup/systemd: Permission denied #685

Closed
srkunze opened this Issue Nov 3, 2015 · 6 comments

Comments

Projects
None yet
4 participants

srkunze commented Nov 3, 2015

What am I missing here? Using Ubuntu 14.04.

lxc-test is a Ubuntu 15.10 container.

root@host:~# lxc-ls -f
NAME      STATE    IPV4  IPV6  AUTOSTART  
----------------------------------------
lxc-test  STOPPED  -     -     NO         
root@host:~# lxc-start -n lxc-test 
Failed to mount cgroup at /sys/fs/cgroup/systemd: Permission denied
systemd 225 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
Detected virtualization lxc.
Detected architecture x86-64.

Welcome to Ubuntu 15.10!

Set hostname to <lxc-test>.
Failed to install release agent, ignoring: No such file or directory
Failed to create root cgroup hierarchy: No such file or directory
Failed to allocate manager object: No such file or directory
[!!!!!!] Failed to allocate manager object, freezing.
Owner

stgraber commented Nov 3, 2015

Ubuntu 14.04 has LXC 1.0.7 which doesn't support running systemd inside the container.

You can install the LXC 1.1.4 backport available in trusty-backports which should fix that (enabled backports in /etc/apt/sources.list, then apt-get update, then apt-get -t trusty-backports install lxc) or use the stable LXC PPA at ppa:ubuntu-lxc/stable

Anyway, not a bug, that's why we released LXC 1.1 :)

@stgraber stgraber closed this Nov 3, 2015

srkunze commented Nov 3, 2015

Alright. Thanks for the very quick response. Let me see if I can get this running.

srkunze commented Nov 3, 2015

@stgraber Can I use the container created with lxc 1.0.7?

Owner

stgraber commented Nov 3, 2015

Yeah, it should be fine. LXC shouldn't have changed anything inside the generated rootfs.

dann1 commented Feb 5, 2016

hello I had the same problem and I installed lxc 1.1.5, then the containers fail to start again but the terminal says somthing else: "lxc-start: lxc_start.cc: main: 344 The container failed to start" , I've used containers with no problem on debian 8.2 but I'm trying to run them on ubuntu 14.04, after an apparently successful lxc-create I try to start it using lxc-start -n name but terminal shows the previous error

Owner

hallyn commented Feb 10, 2016

When reporting failures, please show the output of

lxc-start -n -F -l trace -o /dev/stdout

and the package versions for lxc, cgmanager, and lxcfs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment