[Devel] Re: lxc-start fails on clone(child_stack=0, flags=CLONE_NEWNS|0x6c000000|SIGCHLD) = -1 EINVAL (Invalid argument)

Miguel F Mascarenhas Sousa Filipe miguel.filipe at gmail.com
Fri Jun 5 08:01:19 PDT 2009


On Fri, Jun 5, 2009 at 3:49 PM, Daniel Lezcano<daniel.lezcano at free.fr> wrote:
> Miguel F Mascarenhas Sousa Filipe wrote:
>>
>> On Fri, Jun 5, 2009 at 2:59 PM, Serge E. Hallyn<serue at us.ibm.com> wrote:
>>
>>>
>>> Quoting Miguel F Mascarenhas Sousa Filipe (miguel.filipe at gmail.com):
>>>
>>>>
>>>> Hello,
>>>>
>>>> I'm trying to play with lxc, but I'm unable to start a container
>>>> created with lxc-debian in two diferent linux systems I have.
>>>>
>>>> linux-2.6.29-gentoo-r5 x86_64.
>>>> linux-2.6.28-11-generic ubuntu x86_64.
>>>>
>>>
>>> I suspect the problem is that your kernel (especially the ubuntu
>>> one) is compiled without CONFIG_NET_NS=y.
>>>
>>>
>>>>
>>>> clone(child_stack=0, flags=CLONE_NEWNS|0x6c000000|SIGCHLD) = -1 EINVAL
>>>>
>>>
>>> You are sending clone the flags LCON_NEWNS, CLONE_NEWNET, CLONE_NEWPID,
>>> CLONE_NEWUTS and CLONE_NEWIPC.  Of those, CLONE_NEWNET is the newest
>>> one.
>>>
>>> Are you free to recompile your kernel?
>>>
>>
>> On my devel/test boxes yes, but I would like to use containers on
>> servers where I'm not going to have that "freedom".
>>
>> I probably have to enable this:
>>
>> User namespace: disabled
>>
>
> You don't need this option.
>
>> Network namespace: disabled
>> Multiple /dev/pts instances: disabled
>>
>> Right?
>>
>
> Correct :)
>
> Maybe you can ask the gentoo kernel mailing list if they can enable these
> options ?
>

Yes, have it by default enabled.
Also a bug report on the genkernel patch, which automates the kernel
config and build, since they use a base kernel config.



> For ubuntu, we have to wait for the 2.6.29 kernel version for the network
> namespace.

ah.. okay.. i'll try a custom kernel.

>
> BTW, I tried a fedora 11 beta and all the options are turned on.
>
>  -- Daniel
>
>
>
>

Kind regards,

-- 
Miguel Sousa Filipe
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list