[Lxc-users] cgroups permission problem

Dwight Engen dwight.engen at oracle.com
Thu Oct 10 15:44:42 UTC 2013


On Thu, 10 Oct 2013 09:03:36 -0500
Serge Hallyn <serge.hallyn at ubuntu.com> wrote:

> Quoting John (john at neutrondawn.com):
> > I am in fact able to write to the file.  its initial state is empty.
> 
> The initial state of which file is empty -
> /cgroup/cpuset/lxc/cpuset.cpus, or /cgroup/cpuset/lxc/GE/cpuset.cpus?
> If the former, then that's the problem.  That file should have been
> initialized earlier.  /x/y/z/ is not allowed to use cpus which are

John, are you perhaps running on an older kernel that doesn't have
clone_children? lxc relies on this to propagate values down the
heirarchy.

> not authorized for use by /x/y.
> 
> > On 2013-10-10 09:24, Serge Hallyn wrote:
> > >Quoting John (john at neutrondawn.com):
> > >>Greetings LXC,
> > >>im having problems getting my container operational on centos.
> > >>cgconfig
> > >>and cgred are both running. the error is as follows during startup
> > >>attempts:
> > >>
> > >>  lxc-start 1381364626.764 DEBUG    lxc_cgroup -
> > >>cgroup_path_get: called
> > >>for subsys cpuset name lxc/GE
> > >>
> > >>       lxc-start 1381364626.764 DEBUG    lxc_cgroup - using cgroup
> > >>mounted at '/cgroup/cpuset'
> > >>       lxc-start 1381364626.764 DEBUG    lxc_cgroup -
> > >> cgroup_path_get:
> > >>returning /cgroup/cpuset/lxc/GE for subsystem cpuset.cpus
> > >>       lxc-start 1381364626.764 ERROR    lxc_cgroup - Permission
> > >>denied -
> > >>write /cgroup/cpuset/lxc/GE/cpuset.cpus : Permission denied
> > >>       lxc-start 1381364626.764 ERROR    lxc_conf - Error setting
> > >>cpuset.cpus to 0,1,2,3,4,5,6 for lxc/GE
> > >
> > >Whatis in /cgroup/cpuset/lxc/cpuset.cpus?  Are you able to manually
> > >write to that file?
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the
> most from the latest Intel processors and coprocessors. See abstracts
> and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________ Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users





More information about the lxc-users mailing list