[Lxc-users] [lxc-attach error] Failed to open /proc/4468/ns/pid. Failed to enter namespace

Frank Scholten frank at frankscholten.nl
Sun Oct 21 15:17:15 UTC 2012


Laptop (Linux 3.2.0-25-generic x86_64)

$ ls /proc/self/ns
ipc   net   uts

Desktop (Linux 3.5.0-17-generic x86_64)

$ ls /proc/self/ns
ipc   net   uts

Do you have links to the kernel sources + patches that I need in for
lxc-attach to work?

Also, where is the official lxc repo located? Github, sourceforge?

Cheers,

Frank

On Tue, Oct 16, 2012 at 5:48 PM, Serge Hallyn
<serge.hallyn at canonical.com> wrote:
> Quoting Frank Scholten (frank at frankscholten.nl):
>> frank at franktop:~$ uname -a
>> Linux franktop 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC
>> 2012 x86_64 x86_64 x86_64 GNU/Linux
>>
>> I thought setns was added in 3.0?
>
> Not for pid ns.  do 'ls /proc/self/ns' to see the list of namespaces to
> which you can setns.
>
>> I also have the setns man page. How
>> do I enable it? Do I have to compile a new kernel?
>>
>> Cheers,
>>
>> Frank
>>
>> On Mon, Oct 15, 2012 at 6:25 PM, Serge Hallyn
>> <serge.hallyn at canonical.com> wrote:
>> > Quoting Frank Scholten (frank at frankscholten.nl):
>> >> Hi all,
>> >>
>> >> I am trying to run commands inside the container.
>> >>
>> >> Running lxc 0.7.5.1, commit 60a742e0afd from sourceforge.
>> >>
>> >> I created and started an Ubuntu container and when I run
>> >>
>> >> $ sudo lxc-attach -e -n test whoami
>> >>
>> >> I get
>> >>
>> >> 'Failed to open /proc/4468/ns/pid. Failed to enter namespace'
>> >>
>> >> Any idea what could be wrong?
>> >
>> > Your kernel does not support setns for pid.  /proc/$$/ns/pid
>> > does not exist.
>> >
>> > -serge
>> >
>




More information about the lxc-users mailing list