[Lxc-users] lxc-ps lxc-netstat not working
Serge Hallyn
serge.hallyn at canonical.com
Mon Jan 7 15:33:30 UTC 2013
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.
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.
-serge
More information about the lxc-users
mailing list