On Mon, Jan 7, 2013 at 10:33 AM, Serge Hallyn <serge.hal...@canonical.com> wrote: > Quoting Shibashish (shi...@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. >
I had the same problem on gentoo. I can confirm that replacing the get_parent_cgroup() function with the code from the git staging fixes the issue for me. Thanks John ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users