[lxc-devel] [PATCH 0/5] Signal stuff v2 and some documentation

Daniel Lezcano daniel.lezcano at free.fr
Tue Jun 15 13:20:23 UTC 2010


On 06/15/2010 02:13 PM, Ferenc Wagner wrote:
> Daniel Lezcano<daniel.lezcano at free.fr>  writes:
>
>    
>> On 06/10/2010 11:47 PM, Ferenc Wagner wrote:
>>
>>      
>>> If you provide me with an example (and some description of
>>> lxc.console), I can give it some testing and concretize this pure
>>> guesswork.
>>>        
>> lxc-create -n ubuntu -f ~/mynetwork.conf -t ubuntu
>> lxc-start -n ubuntu -s lxc.console=$(tty) -o $(tty) -l DEBUG
>>      
> I'm not there yet, but found something interesting.  If lxc-checkconfig
> reports full green, clone(NEWNS|NEWUTS|NEWIPC|NEWPID|NEWNET) in
> lxc-start shouldn't fail.  Who's wrong here?
>
> Cheers,
> Feri.
>
> $ lxc-checkconfig
> Kernel config /proc/config.gz not found, looking in other places...
> Found kernel config file /boot/config-2.6.26-2-686
>    

2.6.26 ? Mmmh, You need at least a 2.6.29 for a system container (better 
to have a 2.6.32).

> --- Namespaces ---
> Namespaces: enabled
> Utsname namespace: enabled
> Ipc namespace: enabled
> Pid namespace: enabled
> User namespace: enabled
> Network namespace: enabled
> Multiple /dev/pts instances: enabled
>
> --- Control groups ---
> Cgroup: enabled
> Cgroup namespace: enabled
> Cgroup device: enabled
> Cgroup sched: enabled
> Cgroup cpu account: enabled
> Cgroup memory controller: enabled
> Cgroup cpuset: enabled
>
> --- Misc ---
> Veth pair device: enabled
> Macvlan: enabled
> Vlan: enabled
> File capabilities: enabled
>
> Note : Before booting a new kernel, you can check its configuration
> usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
>
> $ sudo lxc-start -n debian -s lxc.console=$(tty)
> lxc-start: failed to clone(0x6c020000): Invalid argument
> lxc-start: Invalid argument - failed to fork into a new namespace
> lxc-start: failed to spawn 'debian'
> lxc-start: No such file or directory - failed to remove cgroup '/mnt/debian'
>    

Bah ! Looks like the lxc-checkconfig is buggy (fix in attachment).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-lxc-checkconfig.patch
Type: text/x-diff
Size: 656 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20100615/28f5d70b/attachment.patch>


More information about the lxc-devel mailing list