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

John Drescher drescherjm at gmail.com
Mon Jan 7 16:33:39 UTC 2013


On Mon, Jan 7, 2013 at 10:33 AM, 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.
>
> 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




More information about the lxc-users mailing list