lxc in openwrt, Error examining proc in /usr/lib/lxc/rootfs/proc

OpenWrt Chaos Calmer 15.05.1

Distribution version: kernel 4.4.60

The output of

-lxc-start --version
1.1.3

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: enabled
Macvlan: enabled
Vlan: enabled
Bridges: enabled
Advanced netfilter: enabled
CONFIG_NF_NAT_IPV4: enabled
CONFIG_NF_NAT_IPV6: missing
CONFIG_IP_NF_TARGET_MASQUERADE: enabled
CONFIG_IP6_NF_TARGET_MASQUERADE: missing
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: missing

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

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig

uname -a
Linux OpenWrt 4.4.60

cat /proc/self/cgroup
1:cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,perf_event,pids,debug:/

cat /proc/1/mounts
mtd:ubi_rootfs /rom squashfs ro,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0
cgroup /sys/fs/cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,perf_event,pids,debug,clone_children 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
/dev/ubi0_2 /overlay ubifs rw,noatime 0 0
overlayfs:/overlay / overlay rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
debugfs /sys/kernel/debug debugfs rw,noatime 0 0

Issue to description

After I enabled default lxc package flag in openwrt, there are some uci setting and auto-create container when system is boot up. And I followed issue #3017 , added [ ,create=dir ] after nosuid in /lxc/lqsdk/config.
But when I ran lxc-start -n lqsdk -F, it showed error message. Seems stranged, does somebody have this experience before?
My rootfs/ in /lxc/lqsdk/ is empty, is it matter with run (lxc-attach) container?

console log

root@OpenWrt:/# ls -la /lxc/lqsdk/
drwxrwx— 3 root root 360 Nov 4 08:43 .
drwxr-xr-x 1 root root 304 Nov 4 08:43 …
-rw-r–r-- 1 root root 348 Nov 4 08:44 config
-rw-r–r-- 1 root root 4319 Nov 4 08:44 lqsdk.log
drwxr-xr-x 3 root root 224 Nov 4 08:44 rootfs
root@OpenWrt:/#
root@OpenWrt:/# ls -la /lxc/lqsdk/rootfs/
drwxr-xr-x 3 root root 224 Nov 4 08:44 .
drwxrwx— 3 root root 360 Nov 4 08:43 …
drwxr-xr-x 2 root root 160 Nov 4 08:44 proc

Information to attach

run failed LOG

root@OpenWrt:/# lxc-start -n lqsdk -F
lxc-start: utils.c: open_without_symlink: 1575 No such file or directory - Error examining proc in /usr/lib/lxc/rootfs/proc
lxc-start: conf.c: mount_entry: 1731 No such file or directory - failed to mount ‘proc’ on ‘/usr/lib/lxc/rootfs/proc’
lxc-start: conf.c: lxc_setup: 3745 failed to setup the mount entries for ‘lqsdk’
lxc-start: start.c: do_start: 702 failed to setup the container
lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2
lxc-start: start.c: __lxc_start: 1172 failed to spawn ‘lqsdk’
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.

config

root@OpenWrt:/# cat /lxc/lqsdk/config
lxc.network.type =empty
lxc.rootfs = /lxc/lqsdk/rootfs

lxc.network.flags =up
lxc.network.link =br-lan
lxc.network.name =eth1

fix for lxc-stop

lxc.haltsignal=SIGUSR1

Default mount entries

lxc.mount.entry = proc proc proc nodev,noexec,nosuid,create=dir 0 0

#Include common configuration
lxc.include =/usr/share/lxc/config/openwrt.common.conf

uci lxc config

root@OpenWrt:/# cat /etc/config/lxc

lxc uci configuration

config lxc ‘lxc’

    option url 'virtualwrt.org/containers/'

config common
option image ‘/usr/share/lxc/templates/qsdk-lxc.tar.gz’

config LXC ‘lqsdk’
option haltsignal ‘SIGUSR1’
option include ‘/usr/share/lxc/config/openwrt.common.conf’
option name ‘lqsdk’
option flags ‘up’
option link ‘br-lan’
option net_name ‘eth1’
option hwaddr ‘empty’
option entry ‘tmpfs tmp tmpfs defaults’
option net_type ‘empty’

Other

If need other information, ex, kernel config setting, please tell me.