[Lxc-users] Problem with lxc-attach on Linux v3.1.0
Nikhil Handigol
nikhil.handigol at gmail.com
Thu Sep 8 17:05:56 UTC 2011
As an additional datapoint, lxc-attach (from lxc-0.7.2) had worked for me
with linux-2.6.35 with the corresponding setns patches (attached).
Now I need to upgrade the kernel (ideally, to 2.6.38 or 3.0) and I've been
unable to get lxc-attach to work with the newer kernel. Is there any other
information that I can provide to help get this issue resolved?
Thanks,
Nikhil
On Thu, Sep 8, 2011 at 9:48 AM, Nikhil Handigol
<nikhil.handigol at gmail.com>wrote:
> 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/41d5cfbe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-nsfd-v5.patch
Type: application/octet-stream
Size: 44517 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110908/41d5cfbe/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-missing-setns-sycall-for-powerpc-&-s390.patch
Type: application/octet-stream
Size: 2846 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110908/41d5cfbe/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-missing-setns-syscall-for-mips.patch
Type: application/octet-stream
Size: 449 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110908/41d5cfbe/attachment-0002.obj>
More information about the lxc-users
mailing list