<div dir="ltr">Hi,<div><br></div><div>is the Fedora template currently broken? I tried to create a LVM based Fedora 20 container but it looks like the template gets confused with lvm...</div><div><br></div><div>lxc-create -n ipa01-test -B lvm --vgname=lxc1 --fssize=30G --thinpool thin_pool -t fedora -- --release 20<br>
</div><div><br></div><div><div>Complete!</div><div>Fixing up rpm databases</div><div>Download complete.</div><div>Copy /var/cache/lxc/fedora/x86_64/20/rootfs to /dev/lxc1/ipa01-test ... </div><div>Copying rootfs to /dev/lxc1/ipa01-test ...mkdir: cannot create directory ‘/dev/lxc1/ipa01-test’: File exists</div>
<div>rsync: ERROR: cannot stat destination "/dev/lxc1/ipa01-test/": Not a directory (20)</div><div>rsync error: errors selecting input/output files, dirs (code 3) at main.c(652) [Receiver=3.1.0]</div><div><br></div>
<div>mkdir: cannot create directory ‘/dev/lxc1/ipa01-test’: Not a directory</div><div>/usr/share/lxc/templates/lxc-fedora: line 132: /dev/lxc1/ipa01-test/selinux/enforce: Not a directory</div><div>sed: can't read /dev/lxc1/ipa01-test/etc/pam.d/login: Not a directory</div>
<div>sed: can't read /dev/lxc1/ipa01-test/etc/pam.d/sshd: Not a directory</div><div>cp: failed to access ‘/dev/lxc1/ipa01-test/etc/localtime’: Not a directory</div><div>/usr/share/lxc/templates/lxc-fedora: line 218: /dev/lxc1/ipa01-test/etc/sysconfig/network-scripts/ifcfg-eth0: Not a directory</div>
<div>/usr/share/lxc/templates/lxc-fedora: line 229: /dev/lxc1/ipa01-test/etc/sysconfig/network: Not a directory</div><div>/usr/share/lxc/templates/lxc-fedora: line 236: /dev/lxc1/ipa01-test/etc/hostname: Not a directory</div>
<div>/usr/share/lxc/templates/lxc-fedora: line 240: /dev/lxc1/ipa01-test/etc/hosts: Not a directory</div><div>mkdir: cannot create directory ‘/dev/lxc1/ipa01-test’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-jobs2-prodm/dev/null’: Not a directory</div>
<div>mknod: ‘/dev/lxc1/ipa01-jobs2-prodm/dev/zero’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-jobs2-prodm/dev/random’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-jobs2-prodm/dev/urandom’: Not a directory</div>
<div>mkdir: cannot create directory ‘/dev/lxc1/ipa01-test/dev/pts’: Not a directory</div><div>mkdir: cannot create directory ‘/dev/lxc1/ipa01-test/dev/shm’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-test/dev/tty’: Not a directory</div>
<div>mknod: ‘/dev/lxc1/ipa01-test/dev/tty0’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-test/dev/tty1’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-test/dev/tty2’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-test/dev/tty3’: Not a directory</div>
<div>mknod: ‘/dev/lxc1/ipa01-test/dev/tty4’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-test/dev/console’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-test/dev/full’: Not a directory</div><div>mknod: ‘/dev/lxc1/ipa01-test/dev/initctl’: Not a directory</div>
<div>mknod: ‘/dev/lxc1/ipa01-test/dev/ptmx’: Not a directory</div><div>/usr/share/lxc/templates/lxc-fedora: line 275: /dev/lxc1/ipa01-test/etc/securetty: Not a directory</div><div>/usr/share/lxc/templates/lxc-fedora: line 276: /dev/lxc1/ipa01-test/etc/securetty: Not a directory</div>
<div>/usr/share/lxc/templates/lxc-fedora: line 277: /dev/lxc1/ipa01-test/etc/securetty: Not a directory</div><div>/usr/share/lxc/templates/lxc-fedora: line 278: /dev/lxc1/ipa01-test/etc/securetty: Not a directory</div><div>
/usr/share/lxc/templates/lxc-fedora: line 279: /dev/lxc1/ipa01-test/etc/securetty: Not a directory</div><div>/usr/share/lxc/templates/lxc-fedora: line 280: /dev/lxc1/ipa01-test/etc/securetty: Not a directory</div><div>/usr/share/lxc/templates/lxc-fedora: line 281: /dev/lxc1/ipa01-test/etc/securetty: Not a directory</div>
<div>/usr/share/lxc/templates/lxc-fedora: line 282: /dev/lxc1/ipa01-test/etc/securetty: Not a directory</div><div>Storing root password in '/var/lib/lxc/ipa01-test/tmp_root_pass'</div><div>chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a directory</div>
<div>chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a directory</div><div>installing fedora-release package</div><div>mount: mount point /dev/lxc1/ipa01-test/dev is not a directory</div><div>mount: mount point /dev/lxc1/ipa01-test/proc is not a directory</div>
<div>cp: failed to access ‘/dev/lxc1/ipa01-test/etc/’: Not a directory</div><div>chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a directory</div><div>chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a directory</div>
<div>chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a directory</div><div>umount: /dev/lxc1/ipa01-test/proc: Not a directory</div><div>umount: /dev/lxc1/ipa01-test/dev: Not a directory</div><div>touch: cannot touch ‘/dev/lxc1/ipa01-test/etc/fstab’: Not a directory</div>
<div>sed: can't read /dev/lxc1/ipa01-test/etc/sysconfig/init: Not a directory</div><div><br></div><div>Container rootfs and config have been created.</div><div>Edit the config file to check/enable networking setup.</div>
<div><br></div><div>You have successfully built a Fedora container and cache.  This cache may</div><div>be used to create future containers of various revisions.  The directory</div><div>/var/cache/lxc/fedora/x86_64/bootstrap contains a bootstrap</div>
<div>which may no longer needed and can be removed.</div><div><br></div><div>A LiveOS directory exists at /var/cache/lxc/fedora/x86_64/LiveOS.</div><div>This is only used in the creation of the bootstrap run-time-environment</div>
<div>and may be removed.</div><div><br></div><div>The temporary root password is stored in:</div><div><br></div><div>        '/var/lib/lxc/ipa01-test/tmp_root_pass'</div><div><br></div><div><br></div><div>The root password is set up as expired and will require it to be changed</div>
<div>at first login, which you should do as soon as possible.  If you lose the</div><div>root password or wish to change it without starting the container, you</div><div>can change it from the host by running the following command (which will</div>
<div>also reset the expired flag):</div><div><br></div><div>        chroot /dev/lxc1/ipa01-test passwd</div></div><div><br></div></div>