LXC Containers - can not be installed - debootstrap write error

Hi, I have a Problem,

after installing new Omnia version 3.9.1, with Kernel 4.4.106 and install the option LXC, I can not install debian or ubuntu LXC becomme an error:

root@turris:~# lxc-create -t debian -n debian
debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/debian/rootfs-stretch-armhf ... 
Downloading debian minimal ...
/usr/sbin/debootstrap: line 491: can't create /var/cache/lxc/debian/partial-stretch-armhf/test-dev-null: Permission denied
E: Cannot install into target '/var/cache/lxc/debian/partial-stretch-armhf' mounted with noexec or nodev
Failed to download the rootfs, aborting.
Failed to download 'debian base'
failed to install debian
lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for debian failed
lxc-create: lxc_create.c: main: 274 Error creating container debian

I have should check that lxc support in the kernel by running the following command:

root@turris:~# 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: enabled
CONFIG_IP_NF_TARGET_MASQUERADE: enabled
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: missing

--- Checkpoint/Restore ---
checkpoint restore: enabled
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

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

I hope someone can give me a note for solved it

Thx Joeatx

What about trying to install Ubuntu container using LuCI? I did it some time ago without any problem, using Ubuntu Xenial template… Have a luck!

Ubuntu will also not work :frowning: I think the problem is here:

'/var/cache/lxc/debian/partial-stretch-armhf' mounted with noexec or nodev

I do not know where the problem is. I flashed new version 3.9.1 from a USB stick, I have try the old version 3.7.x tested, without success

I followed the installation process via a serial cable, so I did not notice any installation errors.that

I had to wait a long time for my Turris Omna, the router and the I bought 100Mbit 4G moden was not cheap.
That with the LXC worked well before do an update, Unfortunately, I can not explain why it does not work anymore.

With this missing function, I can not even sell it.
I would like a better support with a stock OpenWRT and not so messed up.

@Turris Team:
I can apply for a replacement device for testing the issue with a second device?

Hello,
I see.

The problem is in your command.

root@turris:~# lxc-create -t debian -n debian

Do this

lxc-create -t download -n name

and it works! Btw we have also documentation for LXC.
But currently installing containers via LUCI doesn’t work. It’s bug. I already confirmed it in at least 2 threads.
We’re working on it.

Hello,yes you are right my mistake

root@turris:~# lxc-create -t download -n pihole
Setting up the GPG keyring
Downloading the image index

---
DIST	RELEASE	ARCH	VARIANT	BUILD
---
Turris_OS	stable	armv7l	default	2018-01-07
Turris_OS	stable	ppc	default	2018-01-07
Alpine	3.4	armv7l	default	2018-01-07
ArchLinux	latest	armv7l	default	2018-01-07
Debian	Stretch	armv7l	default	2018-01-07
Debian	Buster	armv7l	default	2018-01-07
Gentoo	stable	armv7l	default	2018-01-07
openSUSE	42.2	armv7l	default	2018-01-07
openSUSE	42.3	armv7l	default	2018-01-07
openSUSE	Tumbleweed	armv7l	default	2018-01-07
Sabayon	current	armv7l	default	2018-01-07
Ubuntu	Xenial	armv7l	default	2018-01-07
Ubuntu	Zesty	armv7l	default	2018-01-07
Ubuntu	Artful	armv7l	default	2018-01-07
---

Distribution: Debian
Release: Stretch
Architecture: armv7l

Flushing the cache...
Downloading the image index
Downloading the rootfs
Downloading the metadata
The image cache is now ready
Unpacking the rootfs

---
Distribution Debian version Stretch was just installed into your container.

Thank you for solving my mistake.