Michael, Thanks for your answer. I would appreciate if you will explicitly tell what should I do exactly, as I want to try it: how do I create the needed two loopback devices for creating a fedora container inside a fedora container ?
KWi. On Sun, Mar 16, 2014 at 7:44 PM, Michael H. Warfield <[email protected]> wrote: > On Sun, 2014-03-16 at 18:53 +0200, Kevin Wilson wrote: >> Hi, >> I am trying to create a container from inside a container and it >> fails. I have LXC 1.0 on Fedora 20 (x86_64). > >> When I try: >> lxc-create -n fedoraInContainer -t fedora >> I get: >> .... >> tzdata.noarch 0:2014a-1.fc20 ustr.x86_64 >> 0:1.0.4-15.fc20 >> util-linux.x86_64 0:2.24.1-1.fc20 xz-libs.x86_64 >> 0:5.1.2-6alpha.fc20 >> yum-metadata-parser.x86_64 0:1.1.4-9.fc20 zlib.x86_64 >> 0:1.2.8-3.fc20 > >> Updated: >> fedora-release.noarch 0:20-3 > >> Failed: >> initscripts.x86_64 0:9.51-1.fc20 iputils.x86_64 >> 0:20121221-4.fc20 >> systemd.x86_64 0:208-15.fc20 > >> Complete! >> Failed to download the rootfs, aborting. >> Failed to download 'fedora base' >> failed to install fedora >> lxc_container: container creation template for fedoraInContainer failed >> lxc_container: Error creating container fedoraInContainer >> ... > >> and nothing under /var/lib/lxc > >> and when I try: >> lxc-create -n ubuntuInContainer -t ubuntu > >> I get: >> Checking cache download in /usr/var/cache/lxc/precise/rootfs-amd64 ... >> Installing packages in template: ssh,vim,language-pack-en >> Downloading ubuntu precise minimal ... >> which: no qemu-debootstrap in >> (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/sbin:/usr/bin:/sbin:/bin) >> I: Keyring file not available at >> /usr/share/keyrings/ubuntu-archive-keyring.gpg; switching to https >> mirror https://mirrors.kernel.org/debian >> I: Retrieving Release >> E: Failed getting release file >> https://mirrors.kernel.org/debian/dists/precise/Release >> lxc_container: container creation template for ubuntuInContainer failed >> lxc_container: Error creating container ubuntuInContainer > >> and nothing again under /var/lib/lxc. > >> Any ideas ? > > There are several complicating factors when you try and create a > container under a container. I use this quite frequently when trying to > test some templates or work on boostraps. You'll have to make sure you > have mknod enabled for the container and (especially in the case of the > Fedora template) you may need one or more (2 in the case of Fedora) > loopback devices so certain images can be mounted through a loop device. > Not sure what else can fail but it's mostly a configuration issue. > >> Regards, >> Kevin Wilson >> _______________________________________________ >> lxc-users mailing list >> [email protected] >> http://lists.linuxcontainers.org/listinfo/lxc-users >> > > -- > Michael H. Warfield (AI4NB) | (770) 978-7061 | [email protected] > /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ > NIC whois: MHW9 | An optimist believes we live in the best of all > PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it! > > > _______________________________________________ > lxc-users mailing list > [email protected] > http://lists.linuxcontainers.org/listinfo/lxc-users _______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
