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

Nikhil Handigol nikhil.handigol at gmail.com
Thu Sep 8 16:48:06 UTC 2011


Just to be sure that wasn't the case, I tried running the executable
directly from the lxc source directory. I got the same error:

$ cd src/lxc
$ ./lxc-execute -n foo -f /etc/mn/host.conf -- /bin/bash
root at mnhost:/home/nikhilh/lxc/src/lxc#

In another terminal:
$ cd src/lxc
$ ./lxc-attach -n foo -- /bin/bash
lxc-attach: Function not implemented - failed to set namespace 'pid'
lxc-attach: failed to enter the namespace

-- Nikhil


On Thu, Sep 8, 2011 at 9:40 AM, Daniel Lezcano <daniel.lezcano at free.fr>wrote:

> On 09/08/2011 06:30 PM, Nikhil Handigol wrote:
> > I just tried running lxc-attach with linux-2.6.38. I got the same error
> as
> > with linux-3.0 -- Function not implemented - failed to set namespace
> 'pid'.
> >
> > Here's the exact sequence of steps that I followed:
> >
> > Compiled linux-2.6.38.2 with the corresponding setns patches (
> > http://lxc.sourceforge.net/patches/linux/2.6.38/2.6.38.2-lxc1/).
> >
> > Rebooted into 2.6.38.2
> > $ uname -a
> > Linux nf-build2 2.6.38.2-lxc-0.7.4-with-setns #1 SMP Thu Sep 8 08:42:40
> PDT
> > 2011 x86_64 GNU/Linux
> >
> > Compiled lxc-0.7.4:
> > $ git checkout lxc-0.7.4
> > $ ./configure; make; sudo make install
>
> Is it possible you have another lxc version installed on your system ?
> For instance, /usr/bin and the one you are compiling is installed in
> /usr/local/bin.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110908/2bc1952d/attachment.html>


More information about the lxc-users mailing list