Your message dated Sat, 13 Jul 2013 23:04:14 +0200 with message-id <[email protected]> and subject line Re: Bug#716839: LXC lxc-create gets error while creating with templates has caused the Debian Bug report #716839, regarding LXC lxc-create gets error while creating with templates to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 716839: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716839 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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
--- End Message ---
--- Begin Message ---your container was created from an incomplete/corrupted cache in /var/cache/lxc. there's nothing we can do about. -- Address: Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern Email: [email protected] Internet: http://people.progress-technologies.net/~daniel.baumann/
--- End Message ---

