HomeDefectsLIN1022-3584
Fixed

LIN1022-3584 : LXC- error when downloading the image

Created: Mar 8, 2023    Updated: Apr 19, 2023
Resolved Date: Apr 19, 2023
Found In Version: 10.22.33.5
Fix Version: 10.22.33.8
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Userspace

Description

execute the lxc-create command with download parameter, an error happens due to the script typo:

lxc-create -n deb -t download – -r buster
/usr/share/lxc/templates/lxc-download: line 82: syntax error near unexpected token `}'
lxc-create: deb: lxccontainer.c: create_run_template: 1627 Failed to create container from template
lxc-create: deb: lxc_create.c: main: 317 Failed to create container deb

 

after fixing the typo in the script, a new error happens:

 Downloading the image index
ERROR: Failed to download [https://images.linuxcontainers.org//meta/1.0/index-system]
lxc-create: test00: lxccontainer.c: create_run_template: 1627 Failed to create container from template
lxc-create: test00: lxc_create.c: main: 317 Failed to create container test00