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

Ferenc Wagner wferi at niif.hu
Tue Jun 15 12:13:11 UTC 2010


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
--- 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'




More information about the lxc-devel mailing list