# lxc-create -n gentoo_test -t gentoo ### set_default_arch: default arch/variant autodetect... => Got: arch=amd64 variant=amd64 Attempting to obtain an exclusive lock (timeout: 60 sec) named "cache-amd64-amd64"... => done. => Executing "do_all" ###### cache_setup(): doing cache preparation ### cache_precheck(): doing some pre-start checks ... ### cache_stage3(): stage3 cache deployment... Determining path to latest Gentoo amd64 (amd64) stage3 archive... => downloading and processing http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt => Got: 20160218/stage3-amd64-20160218.tar.bz2 250588707 Downloading/untarring the actual stage3 tarball... --2016-02-21 17:17:39-- http://distfiles.gentoo.org/releases/amd64/autobuilds/20160218/stage3-amd64-20160218.tar.bz2%20250588707 Resolving distfiles.gentoo.org... 64.50.233.100, 64.50.236.52, 156.56.247.195, ... Connecting to distfiles.gentoo.org|64.50.233.100|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2016-02-21 17:17:39 ERROR 404: Not Found. bzip2: Compressed file ends unexpectedly; perhaps it is corrupted? *Possible* reason follows. bzip2: Inappropriate ioctl for device Input file = (stdin), output file = (stdout) It is possible that the compressed file(s) have become corrupted. You can use the -tvv option to test integrity of such files. You can use the `bzip2recover' program to attempt to recover data from undamaged sections of corrupted files. tar: Child returned status 2 tar: Error is not recoverable: exiting now [the last exit code leading to this death was: 2 ] Error: unable to fetch or untar lxc_container: lxccontainer.c: create_run_template: 1125 container creation template for gentoo_test failed lxc_container: lxc_create.c: main: 271 Error creating container gentoo_test
Created attachment 426460 [details, diff] lxc-1.0.7-kf-gentoo-template.patch From 950e94b0ad06eaca2227956559334c511e3064f2 Mon Sep 17 00:00:00 2001 From: Kristian Fiskerstrand <kristian.fiskerstrand@sumptuouscapital.com> Date: Wed, 24 Feb 2016 10:15:47 +0100 Subject: [PATCH] templates/lxc-gentoo.in: Fix download issue due to updated pointer templates/lxc-gentoo.in downloads a pointer to the latest stage3 release, e.g http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt that contains two fields, the path to the file itself and a timestamp. The timestamp is attempted to be included in the further downloading automatically, resulting in 404 error. By splitting this properly download works again --- templates/lxc-gentoo.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Similarly to Bug 650770 , as of today on LXC 3.0.1 with lxc-templates installed, creating a new container with the "gentoo" template works fine. Closing.