You are not logged in.

#1 2018-03-30 03:49:25

monty_programador
Member
Registered: 2018-03-30
Posts: 1

lxc containers stooped working after updating to lxc 1:3.0.0-1

It apparently has something to do with https://github.com/lxc/lxc/commit/aafb5 … f0290605bd (tree-wide: rm templates in favor of distrobuilder).

Downgrading to lxc 1:2.1.1-1 fix the problem.

¿What is distrobuilder and where i can find documentation about it?



Examples of the errors i was getting are:

sudo lxc-ls -f

lxc-ls: parse.c: lxc_file_for_each_line_mmap: 102 Failed to parse config: lxc.include = /usr/share/lxc/config/ubuntu.common.conf

Failed to load config for container

sudo lxc-start --name container

lxc-start: container: parse.c: lxc_file_for_each_line_mmap: 102 Failed to parse config: lxc.include = /usr/share/lxc/config/ubuntu.common.conf

Failed to load config for container

Failed to create lxc_container

lxc-create -n container2 -t /usr/share/lxc/templates/lxc-ubuntu

Bad template: /usr/share/lxc/templates/lxc-ubuntu

lxc-create: container2: lxccontainer.c: do_lxcapi_create: 1711 Unknown template "/usr/share/lxc/templates/lxc-ubuntu"

Error creating container container2

Offline

#2 2018-03-30 10:04:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: lxc containers stooped working after updating to lxc 1:3.0.0-1

Please use code tags... also, see: https://wiki.archlinux.org/index.php?ti … did=515198

The tool is available on lxc's github but there is not currently an Arch package for it.

Last edited by graysky (2018-03-30 10:07:21)

Offline

#3 2018-03-31 06:28:52

dini
Member
Registered: 2018-03-31
Posts: 2

Re: lxc containers stooped working after updating to lxc 1:3.0.0-1

monty_programador wrote:

lxc-ls: parse.c: lxc_file_for_each_line_mmap: 102 Failed to parse config: lxc.include = /usr/share/lxc/config/ubuntu.common.conf

Try replacing ubuntu.common.conf with common.conf. It helped me.

Offline

#4 2018-03-31 11:10:53

jsoy9pQbYVNu5nfU
Member
Registered: 2013-04-19
Posts: 108

Re: lxc containers stooped working after updating to lxc 1:3.0.0-1

dini wrote:
monty_programador wrote:

lxc-ls: parse.c: lxc_file_for_each_line_mmap: 102 Failed to parse config: lxc.include = /usr/share/lxc/config/ubuntu.common.conf

Try replacing ubuntu.common.conf with common.conf. It helped me.

Alternatively, just remove the include stanza and paste the contents of the included file(s) directly into the configuration in order to not change behaviour at all. It looks they just removed the template collection, not configuration keys.

Offline

Board footer

Powered by FluxBB