Package: lxc Version: 0.8.0~rc1-8+deb7u1 Severity: minor When I launch an lxc-create command through LVM, I got errors : $ lxc-create -n test2 -B lvm --vgname lxc --lvname test2 --fssize 4G --fstype ext3 -t debian ... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Copying local cache to /var/lib/lxc/test2/rootfs.../usr/share/lxc/templates/lxc-debian: line 101: /var/lib/lxc/test2/rootfs/etc/apt/sources.list.d/debian.list: No such file or directory /usr/share/lxc/templates/lxc-debian: line 107: /var/lib/lxc/test2/rootfs/etc/apt/sources.list.d/debian.list: No such file or directory /usr/share/lxc/templates/lxc-debian: line 111: /var/lib/lxc/test2/rootfs/etc/apt/sources.list.d/debian.list: No such file or directory /usr/share/lxc/templates/lxc-debian: line 183: /var/lib/lxc/test2/rootfs/etc/fstab: No such file or directory mount: mount point /var/lib/lxc/test2/rootfs/dev/pts does not exist mount: mount point /var/lib/lxc/test2/rootfs/proc does not exist mount: mount point /var/lib/lxc/test2/rootfs/sys does not exist mount: mount point /var/lib/lxc/test2/rootfs/var/cache/apt/archives does not exist /usr/share/lxc/templates/lxc-debian: line 49: /var/lib/lxc/test2/rootfs/etc/dpkg/dpkg.cfg.d/lxc-debconf: No such file or directory /usr/share/lxc/templates/lxc-debian: line 55: /var/lib/lxc/test2/rootfs/usr/sbin/policy-rc.d: No such file or directory chmod: cannot access `/var/lib/lxc/test2/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/test2/rootfs/var/cache/apt/archives: not found 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 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 umount: /var/lib/lxc/test2/rootfs/dev/pts: not found umount: /var/lib/lxc/test2/rootfs/proc: not found umount: /var/lib/lxc/test2/rootfs/sys: not found 'debian' template installed Unmounting LVM 'test2' created
If I do not use templates, it works correctly. I think the problem is in the /usr/share/lxc/templates/lxc-debian script because when I mount the auto created LV manually, I found an additional folder (wheezy_amd64) : /var/lib/lxc/test2/rootfs/wheezy_amd64 This avoid to finish the installation. When I move the wheezy_amd64 content in /var/lib/lxc/test2/rootfs, I can start the container but can't connect (certainly due to unfinished installation) : $ lxc-start -n test2 Mount failed for selinuxfs on /sys/fs/selinux: No such file or directory INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. hostname: you must be root to change the host name mount: permission denied mount: permission denied mount: permission denied mount: permission denied [warn] Filesystem type 'devpts' is not supported. Skipping mount. ... (warning). [info] Setting the system clock. hwclock: Cannot access the Hardware Clock via any known method. hwclock: Use the --debug option to see the details of our search for an access method. [warn] Unable to set System Clock to: Sat Jul 13 13:03:57 UTC 2013 ... (warning). [ ok ] Activating swap...done. mount: can't find / in /etc/fstab or /etc/mtab [ ok ] Cleaning up temporary files... /tmp. [warn] Filesystem type 'devpts' is not supported. Skipping mount. ... (warning). [warn] Filesystem type 'devpts' is not supported. Skipping mount. ... (warning). /etc/init.d/mtab.sh: 48: /etc/init.d/mtab.sh: cannot open /proc/mounts: No such file [ ok ] Activating lvm and md swap...done. [....] Checking file systems...fsck from util-linux 2.20.1 done. [ ok ] Mounting local filesystems...done. [ ok ] Activating swapfile swap...done. mount: permission denied mount: permission denied mount: permission denied df: Warning: cannot read table of mounted file systems [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables ...done. [ ok ] Configuring network interfaces...done. [ ok ] Cleaning up temporary files.... [FAIL] startpar: service(s) returned failure: hostname.sh ... failed! INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [ ok ] Starting OpenBSD Secure Shell server: sshd. I suggest to remove the ${_DISTRIBUTION}_${_ARCHITECTURE} folder during installation and only use the rootfs folder to correct the problem. I am using Debian GNU/Linux 7.1 kernel 3.2.0-4-amd64 Thanks -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org