Debian 8 and LXC

Started by ROM, January 20, 2016, 01:26:27 pm

Previous topic - Next topic

ROM

Hello!

I try to run LXC container and got errors. Here http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=667 I saw a similar problem.
As it turned out in the core does not include support for some features.
How fast company can fix this?

root@OLinuXino-A20:/home/rom# uname -a
Linux OLinuXino-A20 3.4.103-00033-g9a1cd03-dirty #17 SMP PREEMPT Tue Sep 8 11:01:09 EEST 2015 armv7l GNU/Linux

root@OLinuXino-A20:/home/rom# lxc-checkconfig
--- 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 clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: missing
Macvlan: missing
Vlan: enabled
Bridges: missing
Advanced netfilter: enabled
CONFIG_NF_NAT_IPV4: missing
CONFIG_NF_NAT_IPV6: missing
CONFIG_IP_NF_TARGET_MASQUERADE: enabled
CONFIG_IP6_NF_TARGET_MASQUERADE: missing
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled

--- Checkpoint/Restore ---
checkpoint restore: missing
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: missing
CONFIG_INET_DIAG: missing
CONFIG_PACKET_DIAG: missing
CONFIG_NETLINK_DIAG: missing
File capabilities: enabled

Same at x86 computer:
user@hq2:~$ sudo lxc-checkconfig
[sudo] password for user:
Kernel configuration not found at /proc/config.gz; searching...
Kernel configuration found at /boot/config-3.16.0-30-generic
--- 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 clone_children flag: 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

JohnS

I don't see why you regard this as a "fix".  It's some feature(s) you want that maybe hardly anyone else wants.  There are hundreds of similar could-be-chosen features.  If you want it/them, it's for you to change the config and rebuild.

John

ROM

I think that knowledgeable and experienced people to fix it will be easier than, say, me. ;)

I think this is a mistake because put the setting of such features immediately when a creating new version - no problem.

soenke

You need kernel 3.10 or newer for docker. So build a mainline kernel (and uboot) for the A20 and install it. There are plenty of tutorials an pre-built kernels around the internet you can choose from.

JohnS

Being dev boards with uC chips you're expected to be a developer and able / willing to do some work when you want some feature not already there.

Consider sticking with huge bloated x86 stuff if that's not you :)
You'll be missing the fun of doing dev things, though.

John

igorpec

January 21, 2016, 12:32:13 pm #5 Last Edit: January 21, 2016, 12:36:26 pm by igorpec
http://www.armbian.com/download/

Enabled by default, choose board, vanilla image. We also provide tools if you want to build on your own from sources on your x86 PC.
linux for ARM development boards
www.armbian.com