[lxc-users] Unprivileged container - Failed to mount cgroup at /sys/fs/cgroup/systemd

Serge Hallyn serge.hallyn at ubuntu.com
Tue Nov 11 20:50:16 UTC 2014


Quoting Alexandru Geana (alex at alegen.net):
> Hello everyone,
> 
> I am trying to run unprivileged containers on a VPS. Every time I run
> 
> *lxc-start -n init_test*
> 
> I get the message
> 
> 
> *Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted*

The container is not allowed to mount a cgroup fs.

> A short description of my setup:
> *) host runs fedora20, container is a debian jessie, arch is amd64
> *) custom kernel, lxc-checkconfig prints everything green
> *) I run this script to create a cgroup http://pastebin.com/TWBzw6Cp
> *) the config of the cntainer is http://pastebin.com/AqhfvSCv
> *) relevant output of mount http://pastebin.com/pJzyyAge
> *) output of lssubsys http://pastebin.com/aZK49957
> 
> There is a /sys/fs/cgroup/systemd folder and I tried running
> 
> *cgcreate -a $USER -t $USER systemd:init_test*
> 
> but I get the message
> 
> *cgcreate: can't create cgroup init_test: Cgroup one of the needed
> subsystems is not mounted*
> 
> Does anyone have any idea of what I am doing wrong or what I am missing?
> Thank you.
> 
> Best regards,
> *Alexandru Geana (** alegen.net <https://alegen.net>** )*
> E-mail address: *alex at alegen.net <alex at alegen.net>*

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list