LXC Container - no templates

Hello,

i try to setup some LXC Container but there isnt any templates i can choose from.

Afair there where templates a couple of versions back.

Can smb help?

Thanks for your help. The folder “/srv/lxc” was missing and got created but it did not work out:

root@turris:/srv/lxc# lxc-create -t download -n debian
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver.
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

The template list in web interface is still empty.

Whatever it was its working again with 3.8.3 update

Same with me.
Turris 1.0

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

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

Distribution: Turrsi_OS
Release: stable
Architecture: ppc

Downloading the image index
ERROR: Couldn't find a matching image.
lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for pokus failed
lxc-create: lxc_create.c: main: 274 Error creating container pokus

Same issue here with same error message. Is there any update on what isn’t working or has someone found a workaround?

Hi,
please can you be more specific, which problem do you have?

We know that you can’t install LXC containers via LuCI. I already confirmed it here and we’re working on it.
Right now as workaround you can install LXC containers via SSH (except Ubuntu Zesty, openSUSE Tumbleweed and 42.2; we’re looking on them, why somebody can’t install them) and then you can start/restart and even stop them via LuCI.

Turris 1.0 with Turris_OS / Stable / ppc still a problem.

Thanks for the info. I actually related to @commar 's comment where he/I fail to create a new container via SSH. Here my console output for completeness:

# lxc-create -t download -n test
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: armv71

Downloading the image index
ERROR: Couldn't find a matching image.
lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for test failed
lxc-create: lxc_create.c: main: 274 Error creating container test 

Firmware Version:
OpenWrt omnia 15.05 r47055 / LuCI 49c3edd5861fd032fa8379ceda525c27a908a114 branch (git-17.212.24321-49c3edd)
Kernel Version:
4.4.106-1e4a549d177ab3da12b2052fba6a4dd5-3

I see mistake in your output.

Architecture: armv71

It’s armv7l (not 1)

//EDIT: @commar You’re right. I tried it, too and it doesn’t work. I told it to miska and he’ll look at it.

3 Likes

This is embarrassing, I should have seen that myself. It indeed did the trick. Thank you very much!

Can anyone work out my typo? I am trying to execute the following command, but it come back with a syntax error:

lxc-create -n test -t download -d Turris_OS -r stable -a armv7l

However, this works fine if I just execute:

lxc-create -n test -t download

and then enter the distribution, release & architecture manually.

Fixed! Now you can install Turris OS on PPC platform! :slight_smile:

@Pepe is there any plans to add debian stretch to Turris 1 LXC repo ? We are on kernel 4 already so that should be possible.

1 Like

I started my Omnia Turris some days ago and graded up to the latest software version.
I have the same problem - I can not see the list of images and a lxc-create fails:

lxc-create -t download -n foo
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver.
lxc-create: lxccontainer.c: create_run_template: 1201 container creation template for foo failed
lxc-create: lxc_create.c: main: 274 Error creating container foo

This is with the latest stable version:
cat /etc/turris-version
3.10.8
uname -a
Linux FooTurris 4.4.161-0a333a8e606ab056173befac424900d2-1 #1 SMP Mon Oct 15 08:42:55 CEST 2018 armv7l n

Any ideas?

I just updated to Medkit - latest (4-something) and have the same issue:

root@turris:~# lxc-create -n test -t download
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: test: lxccontainer.c: create_run_template: 1617 Failed to create container from template
lxc-create: test: tools/lxc_create.c: main: 327 Failed to create container test

Also interesting: It tries to connect via http despite ssl is enabled in config:
root@turris:~# lxc-create -n test -t download – --no-validate
Downloading the image index
ERROR: Failed to download http://repo.turris.cz/lxc//meta/1.0/index-system
lxc-create: test: lxccontainer.c: create_run_template: 1617 Failed to create container from template
lxc-create: test: tools/lxc_create.c: main: 327 Failed to create container test

Same for me, unfortunatelly :frowning:

This helped: