>>>>> "DB" == Daniel Baumann <daniel.baum...@progress-technologies.net> writes:
DB> create a 'default' wheezy container with 'lxc-create -t debian DB> -n foo'. This doesn't work: # lxc-create -t debian -n foo Note: Usually the template option is called with a configuration file option too, mostly to configure the network. For more information look at lxc.conf (5) /usr/lib/x86_64-linux-gnu/lxc/templates/lxc-debian: line 882: /tmp/lxc-debian.76qiD1js/debconf.default: No such file or directory Downloading minimal system... cdebootstrap: missing target argument Try `cdebootstrap --help' for more information. chroot: failed to run command `/usr/bin/env': No such file or directory Failed to download the rootfs, aborting. Failed to download base system failed to install system failed to execute template 'debian' aborted Looking into lxc-debian I can see the script doesn't consider the architecture part of the lxc path. The following action made it work: # cd /usr/lib/ # ln -s x86_64-linux-gnu/lxc . Even then it doesn't work smoothly: eagle:# lxc-create -t debian -n foo Note: Usually the template option is called with a configuration file option too, mostly to configure the network. For more information look at lxc.conf (5) Linux Container (LXC) --------------------- Preseed file anyone? Enter (optional) preseed file to use: Linux Container (LXC) --------------------- Distribution. 1. Debian GNU/Linux 6.0 "squeeze" 2. Debian GNU/Linux 7.0 "wheezy" 3. Debian GNU/Linux unstable/sid Distribution 2 Linux Container (LXC) --------------------- Architecture. 1. 32-bit PC (i386) 2. 64-bit PC (amd64) Architecture 2 Linux Container (LXC) --------------------- Archives. 1. Debian Security 2. Debian Updates 3. Debian Backports 4. Debian Proposed Updates 5. none of the above (Enter the items you want to select, separated by spaces.) Archives 1 Linux Container (LXC) --------------------- Mirror. Mirror http://debian.nest.zamazal.org:9999/debian Linux Container (LXC) --------------------- Mirror Security. Mirror Security http://debian.nest.zamazal.org:9999/security Linux Container (LXC) --------------------- Archive Areas. 1. main 2. contrib 3. non-free 4. none of the above (Enter the items you want to select, separated by spaces.) Archive Areas 1 Linux Container (LXC) --------------------- Packages. Packages Linux Container (LXC) --------------------- Root password. Root password Linux Container (LXC) --------------------- Bridge. Bridge Linux Container (LXC) --------------------- MAC. MAC Downloading minimal system... P: Retrieving Release P: Retrieving Release.gpg P: Validating Release I: Good signature from "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmas...@debian.org>" P: Parsing Release P: Retrieving Packages.gz P: Validating Packages.gz P: Parsing Packages P: Retrieving libc-bin P: Validating libc-bin ... installation of packages without any problems ... P: Configuring package libswitch-perl P: Configuring package libui-dialog-perl P: Deconfiguring helper cdebootstrap-helper-apt P: Deconfiguring helper cdebootstrap-helper-makedev P: Writing apt sources.list P: Writing hosts P: Writing resolv.conf (Reading database ... 9269 files and directories currently installed.) Removing cdebootstrap-helper-rc.d ... Download complete. Ign http://debian.nest.zamazal.org wheezy InRelease Get:1 http://debian.nest.zamazal.org wheezy Release.gpg [836 B] Get:2 http://debian.nest.zamazal.org wheezy Release [185 kB] Get:3 http://debian.nest.zamazal.org wheezy/main TranslationIndex [2223 B] Get:4 http://debian.nest.zamazal.org wheezy/main amd64 Packages [7584 kB] Ign http://debian.nest.zamazal.org wheezy/main Translation-en Fetched 7772 kB in 2s (2907 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Copying local cache to /var/lib/lxc/foo/rootfs.../usr/lib/x86_64-linux-gnu/lxc/templates/lxc-debian: line 81: /var/lib/lxc/foo/rootfs/etc/apt/sources.list.d/debian.list: No such file or directory /usr/lib/x86_64-linux-gnu/lxc/templates/lxc-debian: line 87: /var/lib/lxc/foo/rootfs/etc/apt/sources.list.d/debian.list: No such file or directory /usr/lib/x86_64-linux-gnu/lxc/templates/lxc-debian: line 158: /var/lib/lxc/foo/rootfs/etc/fstab: No such file or directory mount: mount point /var/lib/lxc/foo/rootfs/dev/pts does not exist mount: mount point /var/lib/lxc/foo/rootfs/proc does not exist mount: mount point /var/lib/lxc/foo/rootfs/sys does not exist mount: mount point /var/lib/lxc/foo/rootfs/var/cache/apt/archives does not exist /usr/lib/x86_64-linux-gnu/lxc/templates/lxc-debian: line 29: /var/lib/lxc/foo/rootfs/etc/dpkg/dpkg.cfg.d/lxc-debconf: No such file or directory /usr/lib/x86_64-linux-gnu/lxc/templates/lxc-debian: line 35: /var/lib/lxc/foo/rootfs/usr/sbin/policy-rc.d: No such file or directory chmod: cannot access `/var/lib/lxc/foo/rootfs/usr/sbin/policy-rc.d': No such file or directory chroot: failed to run command `/usr/bin/env': No such file or directory chroot: failed to run command `/usr/bin/env': No such file or directory chroot: failed to run command `/usr/bin/env': No such file or directory umount: /var/lib/lxc/foo/rootfs/var/cache/apt/archives: not found chroot: failed to run command `/usr/bin/env': No such file or directory cp: cannot stat `/var/lib/lxc/foo/rootfs/usr/share/base-files/motd': No such file or directory cp: cannot stat `/var/lib/lxc/foo/rootfs/usr/share/base-files/profile': No such file or directory chroot: failed to run command `/usr/bin/env': No such file or directory chroot: failed to run command `/usr/bin/env': No such file or directory chroot: failed to run command `/usr/bin/env': No such file or directory chroot: failed to run command `/usr/bin/env': No such file or directory P: Setting root password to MbFM5aoK chroot: failed to run command `/usr/bin/env': No such file or directory chroot: failed to run command `/usr/bin/env': No such file or directory umount: /var/lib/lxc/foo/rootfs/dev/pts: not found umount: /var/lib/lxc/foo/rootfs/proc: not found umount: /var/lib/lxc/foo/rootfs/sys: not found 'debian' template installed 'foo' created I think the problem is it tries to work on /var/lib/lxc/foo/rootfs/ instead of /var/lib/lxc/foo/rootfs/wheezy_amd64/. The new container is clearly bogus: # lxc-start -n foo lxc-start: No such file or directory - failed to mount 'proc' on '/usr/lib/x86_64-linux-gnu/lxc//proc' lxc-start: failed to setup the mount entries for 'foo' lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn 'foo' We should probably fix container creation first and then we can return to the original problem. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org