[lxc-users] lxc-attach fails always : failed to enter the namespace

अनुज anuj01 at gmail.com
Fri Apr 4 05:27:36 UTC 2014


Hi

On Fri, Apr 4, 2014 at 10:24 AM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> Quoting अनुज (anuj01 at gmail.com):
>> Hi,
>>
>> I created one application container using below command:
>>
>> lxc-execute -n aa -- /bin/bash
>>
>> Now if I try to attach to this container, I always get below error:
>>
>> $ lxc-attach -n aa -- ps
>> lxc_container: No such file or directory - failed to open
>> '/proc/3174/ns/mnt'
>> lxc_container: failed to enter the namespace
>>
>>
>> I have latest kernel:
>
> chuckle,
>
:-) I meant latest updated kernel for Ubuntu 12.04


>> Linux anuj-3000-N100 3.2.0-60-generic-pae #91-Ubuntu SMP Wed Feb 19
>
> This kernel is way too old to be able to setns into mounts namespace.
>

is this really too old or some compilation flags are missed while
kernel compilation?
And I am wondering that I was able to set the mount ns using
'unshare'. I am not sure if LXC uses the same to set ns.


>> 04:14:56 UTC 2014 i686 i686 i386 GNU/Linux
>>
>> how can I debug this?
>
> -serge
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



-- 
Anuj Aggarwal

 .''`.
: :Ⓐ :   # apt-get install hakuna-matata
`. `'`
   `-


More information about the lxc-users mailing list