[lxc-devel] [Lxc-users] lxc-ps lxc-netstat not working

Natanael Copa ncopa at alpinelinux.org
Mon Jan 7 21:45:40 UTC 2013


On Mon, 7 Jan 2013 09:33:30 -0600
Serge Hallyn <serge.hallyn at canonical.com> wrote:

> Quoting Shibashish (shib4u at gmail.com):
> > I am on CentOS 6.3 and got lxc working on it. But when I run lxc-ps
> > or lxc-netstat, i get the following errors...
> > 
> > lxc-ps: no cgroup mount point found
> > lxc-netstat: no cgroup mount point found
> > 
> > 
> > Relevant lines in lxc-ps.in... (I tried bot the options)
> > 
> >                 # Get the filesystem mountpoint of the hierarchy
> >                 #mountpoint=$(grep -E "^cgroup [^ ]+ [^ ]+ ([^
> > ]+,)?$subsystems(,[^ ]+)? " /proc/self/mounts | cut -d ' ' -f 2)
> >                 mountpoint=$(grep -E "^[^ ]+ [^ ]+ cgroup ([^
> > ]+,)?$subsystems(,[^ ]+)? " /proc/self/mounts | cut -d ' ' -f 2)
> 
> Your problem here (in the second one) is the space before the ".  If
> you remove that you should get results.

I think the same problem happens with busybox.
 
> This appears to be what is in the upstream lxc (on sf.net).  The
> version in github staging (git://github.com/lxc/lxc.git #staging) is
> quite different, you may want to try building and running that.

Yes, I would expect the staging version work. If not, let me know and
I'll fix it.

Thanks!

-nc




More information about the lxc-devel mailing list