[lxc-devel] gentoo container building fails during wget.

lxc-develop at noci.xs4all.nl lxc-develop at noci.xs4all.nl
Wed Feb 18 16:08:31 UTC 2015


Thanks, the patch works

On Wednesday 18 February 2015 08:56:58 Jäkel, Guido wrote:
> --- lxc-gentoo.in.20150218-095329       2015-02-18 09:53:29.160903000 +0100
> +++ lxc-gentoo.in       2015-02-18 09:54:03.823073000 +0100
> @@ -160,7 +160,7 @@
>          printf "Determining path to latest Gentoo %s (%s) stage3
> archive...\n" "${arch}" "${variant}" printf " => downloading and processing
> %s\n" "${stage3_pointer}"
> 
> -        local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" |
> tail -n1 ) \ +        local stage3_latest_tarball=$(wget -q -O -
> "${stage3_pointer}" | tail -n1 | cut -d' ' -f1) \
>              || die 6 "Error: unable to fetch\n"
> 
>          printf " => Got: %s\n" "${stage3_latest_tarball}"
> 

Then i ran into this:

=> timezone was staticly copyed from host
=> container has a shared portage from host's /usr/portage to usr/portage
=> No network interface for this container
It's a pitty, you have bridge, br0.
If it is for Lxc, use it next time by adding this to your default.conf :
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = fe:xx:xx:xx:xx:xx
=> Connection user is root
=> root has the default password 'toor', please change it ASAP


While default .conf contains exactly that.....


core # locate default.conf | grep lxc
/etc/lxc/default.conf
core # cat /etc/lxc/default.conf 
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = fe:xx:xx:xx:xx:xx


kind regards,
Nico

> with greetings
> 
> Guido Jäkel
> 
> >-----Original Message-----
> >From: lxc-devel [mailto:lxc-devel-bounces at lists.linuxcontainers.org] On
> >Behalf Of lxc-develop at noci.xs4all.nl Sent: Wednesday, February 18, 2015
> >12:10 AM
> >To: LXC development mailing-list
> >Subject: [lxc-devel] gentoo container building fails during wget.
> >
> >The Gentoo template for lxc-1.1.0 is failing...
> >
> >The link file contains
> >20141204/stage3-amd64-20141204.tar.bz2 207889127
> >
> >The file should be:
> >http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64
> >-20141204.tar.bz2
> >
> >the 207889127 part is the size. which should not be in the filename, for
> >wget.
> >
> >Example:
> >
> >
> >Determining path to latest Gentoo amd64 (amd64) stage3 archive...
> >
> > => downloading and processing
> >
> >http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.t
> >xt>
> > => Got: 20141204/stage3-amd64-20141204.tar.bz2 207889127
> >
> >Downloading/untarring the actual stage3 tarball...
> >--2015-02-17 22:18:30--
> >http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64
> >-20141204.tar.bz2%20207889127 Resolving distfiles.gentoo.org
> >(distfiles.gentoo.org)... 156.56.247.195, 64.50.233.100, 137.226.34.42,
> >...
> >Connecting to distfiles.gentoo.org
> >(distfiles.gentoo.org)|156.56.247.195|:80... connected.
> >HTTP request sent, awaiting response... 404 Not Found
> >2015-02-17 22:18:30 ERROR 404: Not Found.
> >
> >http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64
> >-20141204.tar.bz2
> >
> >
> >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
> >
> >
> >_______________________________________________
> >lxc-devel mailing list
> >lxc-devel at lists.linuxcontainers.org
> >http://lists.linuxcontainers.org/listinfo/lxc-devel
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel



More information about the lxc-devel mailing list