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

Serge Hallyn serge.hallyn at ubuntu.com
Thu Mar 27 17:13:34 UTC 2014


Yup.

Quoting Nels Nelson (nels.n.nelson at gmail.com):
> Just to confirm, Serge, is this the patch?
> 
> http://lists.linuxfoundation.org/pipermail/containers/2013-November/033674.html
> 
> 
> 
> 
> On Mon, Mar 24, 2014 at 10:07 PM, Serge Hallyn <serge.hallyn at ubuntu.com>wrote:
> 
> > 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)
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> >

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list