[Lxc-users] Problem with lxc-attach on Linux v3.1.0

Nikhil Handigol nikhil.handigol at gmail.com
Thu Sep 8 20:16:25 UTC 2011


Ah! That was something I had missed. I recompiled lxc with
the --with-linuxdir option and the old error went away.

Now I'm getting the following error:
$ lxc-attach -n foo -- /bin/bash
lxc-attach: No such file or directory - failed to open /proc/mounts
lxc-attach: cgroup is not mounted
lxc-attach: No such file or directory - failed to get cgroup path for cgroup
foo

On my machine, cgroup is mounted on /cgroup via the following command:
mount -t cgroup cgroup /cgroup

It looks like I also need to specify where cgroup is mounted? How do I do
that?
(I think we're close to getting this to work)

Thanks,
-/\/


On Thu, Sep 8, 2011 at 1:07 PM, Daniel Lezcano <daniel.lezcano at free.fr>wrote:

> On 09/08/2011 07:12 PM, Nikhil Handigol wrote:
> > It is indeed the case:
> >
> > $ type lxc-attach
> > lxc-attach is /usr/local/bin/lxc-attach
>
> Ok.
>
> Did you specified the kernel source tree when invoking configure ?
>
> It is the --with-linuxdir=<path_to_the_patched_kernel>
>
> Make sure to remove src/lxc/setns.h file which is automatically generated.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110908/c2d29136/attachment.html>


More information about the lxc-users mailing list