LuCI LXC Containers not is working

I have installed the next packages:

# cat /etc/updater/auto.lua
– A file with auto-generated Install commands. Do not edit.
Install “6in4”
Install “block-mount”
Install “kmod-ata-mvebu-ahci”

And next package groups:

# cat /etc/config/updater 
config pkglists 'pkglists'
        list lists 'base'
        list lists 'cacerts'
        #list lists 'luci-controls'
        list lists 'lxc'
        #list lists 'nas'
        #list lists 'netutils'
        #list lists 'shell-utils'
config override 'override'
        #option branch 'stable-new'
        option disable '0'

When I go to LuCi LXC Containers and try to create one, it is not listed “Available Containers” and it is no created:

# ls -la /srv/lxc/
drwxr-xr-x 1 root root 0 Dec 9 15:09 .
drwxr-xr-x 1 root root 6 Dec 9 14:06 …

“/srv/lxc/” is a mount point for my mSATA:

# mount | grep -i sda
/dev/sda2 on /srv/lxc type btrfs (rw,relatime,ssd,noacl,space_cache,subvolid=259,subvol=/lxc)

Try creating it from command line:

lxc-create -t download -n container

It should display any errors it runs into.


# lxc-create -t download -n server
Setting up the GPG keyring
Downloading the image index
Turris_OS       stable  armv7l  default 2016-12-04
Turris_OS       stable  ppc     default 2016-12-04
Alpine  3.4     armv7l  default 2016-12-04
Debian  Jessie  armv7l  default 2016-12-04
Gentoo  stable  armv7l  default 2016-12-04
openSUSE        13.2    armv7l  default 2016-12-04
openSUSE        Tumbleweed      armv7l  default 2016-12-04
Ubuntu  Xenial  armv7l  default 2016-12-04
Ubuntu  Yakkety armv7l  default 2016-12-04
Distribution: Alpine
Release: 3.4
Architecture: armv7l
Flushing the cache...
Downloading the image index
Downloading the rootfs
Downloading the metadata
tar: unrecognized option: J
BusyBox v1.23.2 (2016-12-05 20:40:16 CET) multi-call binary.
Usage: tar -[cxtzhvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...
Create, extract, or list files from a tar file
        c       Create
        x       Extract
        t       List
        f       Name of TARFILE ('-' for stdin/out)
        C       Change to DIR before operation
        v       Verbose
        z       (De)compress using gzip
        O       Extract to stdout
        h       Follow symlinks
        X       File with names to exclude
        T       File with names to include
ERROR: Invalid rootfs tarball.
lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for server failed
lxc-create: lxc_create.c: main: 274 Error creating container server

So it looks like you have only busybox tar and not a real tar. Install tar and it should work and I’ll fix dependencies.

After install “tar” all is working without troubles. Please, consider add “tar” to package group “lxc” or patch BusyBox.

I don’t sure if this can help: