Unable to create busybox container

Hi guys

I can’t create a container from the busybox template. When I issue the command lxc-create -t download -n test I get the below output.

Any help is appreciated.

Downloading the image index

---
DIST	RELEASE	ARCH	VARIANT	BUILD
---
almalinux	8	amd64	default	20230209_03:27
almalinux	8	arm64	default	20230209_03:29
almalinux	8	ppc64el	default	20230209_03:27
almalinux	9	amd64	default	20230209_03:28
almalinux	9	arm64	default	20230209_03:28
almalinux	9	ppc64el	default	20230209_03:30
alpine	3.14	amd64	default	20230208_13:02
alpine	3.14	arm64	default	20230208_13:01
alpine	3.14	armhf	default	20230208_13:01
alpine	3.14	i386	default	20230208_13:02
alpine	3.14	ppc64el	default	20230208_13:01
alpine	3.14	s390x	default	20230208_13:00
alpine	3.15	amd64	default	20230208_13:00
alpine	3.15	arm64	default	20230208_13:01
alpine	3.15	armhf	default	20230208_13:01
alpine	3.15	i386	default	20230208_13:00
alpine	3.15	ppc64el	default	20230208_13:00
alpine	3.15	s390x	default	20230208_13:00
alpine	3.16	amd64	default	20230208_13:00
alpine	3.16	arm64	default	20230208_13:01
alpine	3.16	armhf	default	20230208_13:01
alpine	3.16	i386	default	20230208_13:00
alpine	3.16	ppc64el	default	20230208_13:00
alpine	3.16	s390x	default	20230208_13:00
alpine	3.17	amd64	default	20230208_13:13
alpine	3.17	arm64	default	20230208_13:01
alpine	3.17	armhf	default	20230208_13:01
alpine	3.17	i386	default	20230208_13:00
alpine	3.17	ppc64el	default	20230208_13:00
alpine	3.17	s390x	default	20230208_13:00
alpine	edge	amd64	default	20230208_13:00
alpine	edge	arm64	default	20230208_13:01
alpine	edge	armhf	default	20230208_13:13
alpine	edge	i386	default	20230208_13:00
alpine	edge	ppc64el	default	20230208_13:00
alpine	edge	s390x	default	20230208_13:00
alt	Sisyphus	amd64	default	20230209_03:27
alt	Sisyphus	arm64	default	20230209_03:28
alt	Sisyphus	armhf	default	20230209_04:50
alt	Sisyphus	ppc64el	default	20230209_04:49
alt	p10	amd64	default	20230209_03:28
alt	p10	arm64	default	20230209_04:50
alt	p10	armhf	default	20230209_03:28
alt	p10	ppc64el	default	20230209_03:43
alt	p9	amd64	default	20230209_03:29
alt	p9	arm64	default	20230209_03:28
alt	p9	armhf	default	20230209_04:50
alt	p9	ppc64el	default	20230209_03:46
amazonlinux	current	amd64	default	20230209_05:10
amazonlinux	current	arm64	default	20230209_05:10
apertis	v2020	amd64	default	20230209_10:54
apertis	v2020	arm64	default	20230209_10:53
apertis	v2020	armhf	default	20230209_10:53
apertis	v2021	amd64	default	20230209_10:53
apertis	v2021	arm64	default	20230209_10:53
apertis	v2021	armhf	default	20230209_10:53
archlinux	current	amd64	default	20230209_05:40
archlinux	current	arm64	default	20230209_04:19
archlinux	current	armhf	default	20230209_06:32
busybox	1.34.1	amd64	default	20230209_06:00
busybox	1.34.1	arm64	default	20230209_06:01
centos	7	amd64	default	20230209_07:08
centos	7	arm64	default	20230209_07:08
centos	7	armhf	default	20230209_07:08
centos	7	i386	default	20230209_07:08
centos	7	ppc64el	default	20230209_07:08
centos	8-Stream	amd64	default	20230209_07:08
centos	8-Stream	arm64	default	20230209_07:08
centos	8-Stream	ppc64el	default	20230209_07:08
centos	9-Stream	amd64	default	20230209_07:08
centos	9-Stream	arm64	default	20230209_07:08
centos	9-Stream	ppc64el	default	20230209_07:08
debian	bookworm	amd64	default	20230209_05:25
debian	bookworm	arm64	default	20230209_05:25
debian	bookworm	armel	default	20230209_05:25
debian	bookworm	armhf	default	20230209_06:39
debian	bookworm	i386	default	20230209_05:24
debian	bookworm	ppc64el	default	20230209_05:24
debian	bookworm	s390x	default	20230209_05:24
debian	bullseye	amd64	default	20230209_05:24
debian	bullseye	arm64	default	20230209_05:25
debian	bullseye	armel	default	20230209_05:25
debian	bullseye	armhf	default	20230209_05:25
debian	bullseye	i386	default	20230209_05:24
debian	bullseye	ppc64el	default	20230209_05:24
debian	bullseye	s390x	default	20230209_05:24
debian	buster	amd64	default	20230209_05:25
debian	buster	arm64	default	20230209_05:25
debian	buster	armel	default	20230209_05:25
debian	buster	armhf	default	20230209_05:25
debian	buster	i386	default	20230209_05:24
debian	buster	ppc64el	default	20230209_05:24
debian	buster	s390x	default	20230209_05:24
debian	sid	amd64	default	20230209_05:24
debian	sid	arm64	default	20230209_05:25
debian	sid	armel	default	20230209_05:25
debian	sid	armhf	default	20230209_05:25
debian	sid	i386	default	20230209_05:24
debian	sid	ppc64el	default	20230209_05:24
debian	sid	s390x	default	20230209_05:24
devuan	ascii	amd64	default	20230208_11:50
devuan	ascii	arm64	default	20230208_11:51
devuan	ascii	armel	default	20230208_11:51
devuan	ascii	armhf	default	20230208_11:51
devuan	ascii	i386	default	20230208_11:51
devuan	beowulf	amd64	default	20230208_11:51
devuan	beowulf	arm64	default	20230208_11:51
devuan	beowulf	armel	default	20230208_11:51
devuan	beowulf	armhf	default	20230208_11:51
devuan	beowulf	i386	default	20230208_11:50
devuan	beowulf	ppc64el	default	20230208_11:50
devuan	chimaera	amd64	default	20230208_11:50
devuan	chimaera	arm64	default	20230208_11:51
devuan	chimaera	armel	default	20230208_11:51
devuan	chimaera	armhf	default	20230208_11:51
devuan	chimaera	i386	default	20230208_11:50
devuan	chimaera	ppc64el	default	20230208_11:50
fedora	36	amd64	default	20230208_20:33
fedora	36	arm64	default	20230208_20:34
fedora	36	ppc64el	default	20230208_20:33
fedora	36	s390x	default	20230208_20:33
fedora	37	amd64	default	20230208_20:33
fedora	37	arm64	default	20230208_20:34
fedora	37	ppc64el	default	20230208_20:33
fedora	37	s390x	default	20230208_20:33
fedora	Rawhide	amd64	default	20230208_20:35
fedora	Rawhide	arm64	default	20230208_20:34
fedora	Rawhide	ppc64el	default	20230208_20:33
fedora	Rawhide	s390x	default	20230208_20:33
funtoo	1.4	amd64	default	20230208_16:45
funtoo	1.4	armhf	default	20230208_16:46
funtoo	next	amd64	default	20230208_16:45
kali	current	amd64	default	20230208_17:14
kali	current	arm64	default	20230208_17:15
kali	current	armel	default	20230208_17:15
kali	current	armhf	default	20230208_17:15
mint	tara	amd64	default	20230209_08:51
mint	tessa	amd64	default	20230209_09:14
mint	tina	amd64	default	20230209_08:52
mint	tricia	amd64	default	20230209_08:51
mint	ulyana	amd64	default	20230209_08:51
mint	ulyssa	amd64	default	20230209_09:14
mint	uma	amd64	default	20230209_08:51
mint	una	amd64	default	20230209_08:51
mint	vanessa	amd64	default	20230209_08:51
mint	vera	amd64	default	20230209_08:51
openeuler	20.03	amd64	default	20230208_15:48
openeuler	22.03	amd64	default	20230208_15:48
openeuler	22.09	amd64	default	20230208_15:48
opensuse	15.4	amd64	default	20230208_04:21
opensuse	15.4	arm64	default	20230208_04:20
opensuse	15.4	ppc64el	default	20230208_04:20
opensuse	15.4	s390x	default	20230209_04:20
opensuse	tumbleweed	amd64	default	20230209_04:20
opensuse	tumbleweed	arm64	default	20230208_04:20
opensuse	tumbleweed	ppc64el	default	20230208_04:20
opensuse	tumbleweed	s390x	default	20230209_04:20
openwrt	21.02	amd64	default	20230208_11:57
openwrt	21.02	arm64	default	20230208_11:59
openwrt	21.02	armhf	default	20230208_12:23
openwrt	22.03	amd64	default	20230208_11:58
openwrt	22.03	arm64	default	20230208_11:59
openwrt	22.03	armhf	default	20230208_11:59
openwrt	snapshot	amd64	default	20230208_11:57
openwrt	snapshot	arm64	default	20230208_11:58
openwrt	snapshot	armhf	default	20230208_11:58
oracle	7	amd64	default	20230209_07:47
oracle	7	arm64	default	20230209_07:47
oracle	8	amd64	default	20230209_07:46
oracle	8	arm64	default	20230209_07:48
oracle	9	amd64	default	20230209_07:47
oracle	9	arm64	default	20230209_09:39
plamo	6.x	amd64	default	20230209_03:27
plamo	7.x	amd64	default	20230209_03:27
pld	current	amd64	default	20230208_20:46
rockylinux	8	amd64	default	20230209_03:27
rockylinux	8	arm64	default	20230209_03:29
rockylinux	9	amd64	default	20230209_03:28
rockylinux	9	arm64	default	20230209_03:28
rockylinux	9	ppc64el	default	20230209_03:27
springdalelinux	7	amd64	default	20230209_06:39
springdalelinux	7	i386	default	20230209_06:38
springdalelinux	8	amd64	default	20230209_06:38
springdalelinux	9	amd64	default	20230209_06:39
ubuntu	bionic	amd64	default	20230209_07:42
ubuntu	bionic	arm64	default	20230209_07:43
ubuntu	bionic	armhf	default	20230209_07:43
ubuntu	bionic	i386	default	20230206_12:20
ubuntu	bionic	ppc64el	default	20230205_07:58
ubuntu	bionic	s390x	default	20230206_07:43
ubuntu	focal	amd64	default	20230209_07:42
ubuntu	focal	arm64	default	20230209_07:43
ubuntu	focal	armhf	default	20230206_07:43
ubuntu	focal	ppc64el	default	20230205_07:56
ubuntu	focal	s390x	default	20230206_07:51
ubuntu	jammy	amd64	default	20230209_07:44
ubuntu	jammy	arm64	default	20230209_07:43
ubuntu	jammy	armhf	default	20230206_12:20
ubuntu	jammy	ppc64el	default	20230205_07:53
ubuntu	jammy	s390x	default	20230206_07:43
ubuntu	kinetic	amd64	default	20230209_07:45
ubuntu	kinetic	arm64	default	20230209_07:43
ubuntu	kinetic	armhf	default	20230206_07:43
ubuntu	kinetic	ppc64el	default	20230206_07:43
ubuntu	kinetic	s390x	default	20230206_07:43
ubuntu	xenial	amd64	default	20230209_07:42
ubuntu	xenial	arm64	default	20230209_07:43
ubuntu	xenial	armhf	default	20230209_07:43
ubuntu	xenial	i386	default	20230206_07:43
ubuntu	xenial	ppc64el	default	20230206_07:42
ubuntu	xenial	s390x	default	20230206_07:43
voidlinux	current	amd64	default	20230208_17:10
voidlinux	current	arm64	default	20230208_17:11
voidlinux	current	armhf	default	20230208_17:11
---

Distribution: 
busybox
Release: 
1.34.1
Architecture: 
amd64

Using image from local cache
Unpacking the rootfs
ERROR: meta tarball is missing the configuration file
lxc-create: test: ../src/lxc/lxccontainer.c: create_run_template: 1628 Failed to create container from template
lxc-create: test: ../src/lxc/tools/lxc_create.c: main: 317 Failed to create container test
1 Like

Hello!
I personally use LXD

And starting busybox goes like this

lxc launch images:busybox/1.34.1 busybox

I understand this is not what is needed, but I will leave it informative

I had the same problem.

Any ideas @amikhalitsyn ?

1 Like

This is what I see from strace:

[pid 307294] newfstatat(AT_FDCWD, "/var/cache/lxc//download/busybox/1.34.1/amd64//default/config", 0x7ffd747b6dd0, 0) = -1 ENOENT (No such file or directory)
ERROR: meta tarball is missing the configuration file

Now compare alpine with busybox:

# ls -la alpine/edge/amd64/default/
total 3032
drwxr-xr-x 2 root root    4096 мар 17 14:51 .
drwxr-xr-x 3 root root    4096 мар 17 14:51 ..
-rw-r--r-- 1 root root      15 мар 17 14:51 build_id
-rw-r--r-- 1 root root      65 мар 16 14:01 config
...
-rw-r--r-- 1 root root      72 мар 16 14:01 create-message
-rw-r--r-- 1 root root       1 мар 16 14:01 excludes-user
-rw-r--r-- 1 root root      11 мар 16 14:01 expiry
-rw-r--r-- 1 root root 3029280 мар 16 14:11 rootfs.tar.xz
-rw-r--r-- 1 root root      25 мар 16 14:01 templates
# ls -la busybox/1.34.1/amd64/default/
total 1204
drwxr-xr-x 2 root root    4096 мар 17 14:51 .
drwxr-xr-x 3 root root    4096 мар 17 14:40 ..
-rw-r--r-- 1 root root      15 мар 17 14:40 build_id
-rw-r--r-- 1 root root       1 мар 17 07:03 create-message
-rw-r--r-- 1 root root       1 мар 17 07:03 excludes-user
-rw-r--r-- 1 root root      11 мар 17 07:03 expiry
-rw-r--r-- 1 root root 1205632 мар 17 07:11 rootfs.tar.xz

config file should be created there https://github.com/lxc/distrobuilder/blob/c27495182605c5adb8491a2ed296919af9e3d8d5/image/lxc.go#L106

Most likely problem is there https://github.com/lxc/lxc-ci/blob/master/images/busybox.yaml
for some reason we don’t have targets.lxc.config Yaml section, but for https://github.com/lxc/lxc-ci/blob/master/images/alpine.yaml we have it:

targets:
  lxc:
    create_message: |
      You just created an {{ image.description }} container.
    config:
    - type: all
      before: 5
      content: |-
        lxc.include = LXC_TEMPLATE_CONFIG/alpine.common.conf
    - type: user
      before: 5
      content: |-
        lxc.include = LXC_TEMPLATE_CONFIG/alpine.userns.conf
    - type: all
      after: 4
      content: |-
        lxc.include = LXC_TEMPLATE_CONFIG/common.conf
    - type: user
      after: 4
      content: |-
        lxc.include = LXC_TEMPLATE_CONFIG/userns.conf
    - type: all
      content: |-
        lxc.arch = {{ image.architecture_personality }}

cc @monstermunchkin

same problem here
ls LXC dead? I need to create new containers, and I am unable.
lxc-ls --version
5.0.2

lxc-create -t download -n router0
Distribution:
debian
Release:
bookworm
Architecture:
amd64

Using image from local cache
Unpacking the rootfs
ERROR: meta tarball is missing the configuration file
lxc-create: router0: …/src/lxc/lxccontainer.c: create_run_template: 1628 Failed to create container from template
lxc-create: router0: …/src/lxc/tools/lxc_create.c: main: 317 Failed to create container router0

@Saint_Michael see this post: LXC BROKEN - Container configs missing for most distributions - #2 by Abdull