[lxc-users] lxc-attach error: failed to clone(0x8000): Invalid argument

Serge Hallyn serge.hallyn at ubuntu.com
Tue Mar 25 03:07:53 UTC 2014


Quoting Nels Nelson (nels.n.nelson at gmail.com):
> I've managed to create and start a container with a custom template, here:
> 
> https://gist.github.com/nelsnelson/9746073
> 
> 
> However, attempting to attach to that container results in this error:
> 
>     # lxc-attach -n test -- echo hello world
>     lxc_container: failed to clone(0x8000): Invalid argument
>     lxc_container: Invalid argument - failed to create subprocess
> 
> 
> What could be going wrong here?
> 
> I'm using lxc version 1.0.0.  I can try again using 1.0.1, if that is
> recommended based on a known bug in 1.0.0.
> 
> One more thing, as of November 8th 2013, user TenForward appears to
> believe this has something to do with a bug in linux kernel 3.12.
> 
> http://d.hatena.ne.jp/defiant/searchdiary?word=*[Linux]&of=5
> 
> However, I've not seen any information since.

Yes 0x8000 is CLONE_PARENT so I assume your kernel needs
commit 1f7f4dde: fork:  Allow CLONE_PARENT after setns(CLONE_NEWPID)


More information about the lxc-users mailing list