You are not logged in.
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
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
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
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