[lxc-users] Fedora 20 template on LVM not working

Flo florian.engelmann at gmail.com
Thu May 8 06:54:57 UTC 2014


Hi,

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...

lxc-create -n ipa01-test -B lvm --vgname=lxc1 --fssize=30G --thinpool
thin_pool -t fedora -- --release 20

Complete!
Fixing up rpm databases
Download complete.
Copy /var/cache/lxc/fedora/x86_64/20/rootfs to /dev/lxc1/ipa01-test ...
Copying rootfs to /dev/lxc1/ipa01-test ...mkdir: cannot create directory
‘/dev/lxc1/ipa01-test’: File exists
rsync: ERROR: cannot stat destination "/dev/lxc1/ipa01-test/": Not a
directory (20)
rsync error: errors selecting input/output files, dirs (code 3) at
main.c(652) [Receiver=3.1.0]

mkdir: cannot create directory ‘/dev/lxc1/ipa01-test’: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 132:
/dev/lxc1/ipa01-test/selinux/enforce: Not a directory
sed: can't read /dev/lxc1/ipa01-test/etc/pam.d/login: Not a directory
sed: can't read /dev/lxc1/ipa01-test/etc/pam.d/sshd: Not a directory
cp: failed to access ‘/dev/lxc1/ipa01-test/etc/localtime’: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 218:
/dev/lxc1/ipa01-test/etc/sysconfig/network-scripts/ifcfg-eth0: Not a
directory
/usr/share/lxc/templates/lxc-fedora: line 229:
/dev/lxc1/ipa01-test/etc/sysconfig/network: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 236:
/dev/lxc1/ipa01-test/etc/hostname: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 240:
/dev/lxc1/ipa01-test/etc/hosts: Not a directory
mkdir: cannot create directory ‘/dev/lxc1/ipa01-test’: Not a directory
mknod: ‘/dev/lxc1/ipa01-jobs2-prodm/dev/null’: Not a directory
mknod: ‘/dev/lxc1/ipa01-jobs2-prodm/dev/zero’: Not a directory
mknod: ‘/dev/lxc1/ipa01-jobs2-prodm/dev/random’: Not a directory
mknod: ‘/dev/lxc1/ipa01-jobs2-prodm/dev/urandom’: Not a directory
mkdir: cannot create directory ‘/dev/lxc1/ipa01-test/dev/pts’: Not a
directory
mkdir: cannot create directory ‘/dev/lxc1/ipa01-test/dev/shm’: Not a
directory
mknod: ‘/dev/lxc1/ipa01-test/dev/tty’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/tty0’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/tty1’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/tty2’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/tty3’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/tty4’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/console’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/full’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/initctl’: Not a directory
mknod: ‘/dev/lxc1/ipa01-test/dev/ptmx’: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 275:
/dev/lxc1/ipa01-test/etc/securetty: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 276:
/dev/lxc1/ipa01-test/etc/securetty: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 277:
/dev/lxc1/ipa01-test/etc/securetty: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 278:
/dev/lxc1/ipa01-test/etc/securetty: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 279:
/dev/lxc1/ipa01-test/etc/securetty: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 280:
/dev/lxc1/ipa01-test/etc/securetty: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 281:
/dev/lxc1/ipa01-test/etc/securetty: Not a directory
/usr/share/lxc/templates/lxc-fedora: line 282:
/dev/lxc1/ipa01-test/etc/securetty: Not a directory
Storing root password in '/var/lib/lxc/ipa01-test/tmp_root_pass'
chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a
directory
chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a
directory
installing fedora-release package
mount: mount point /dev/lxc1/ipa01-test/dev is not a directory
mount: mount point /dev/lxc1/ipa01-test/proc is not a directory
cp: failed to access ‘/dev/lxc1/ipa01-test/etc/’: Not a directory
chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a
directory
chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a
directory
chroot: cannot change root directory to /dev/lxc1/ipa01-test: Not a
directory
umount: /dev/lxc1/ipa01-test/proc: Not a directory
umount: /dev/lxc1/ipa01-test/dev: Not a directory
touch: cannot touch ‘/dev/lxc1/ipa01-test/etc/fstab’: Not a directory
sed: can't read /dev/lxc1/ipa01-test/etc/sysconfig/init: Not a directory

Container rootfs and config have been created.
Edit the config file to check/enable networking setup.

You have successfully built a Fedora container and cache.  This cache may
be used to create future containers of various revisions.  The directory
/var/cache/lxc/fedora/x86_64/bootstrap contains a bootstrap
which may no longer needed and can be removed.

A LiveOS directory exists at /var/cache/lxc/fedora/x86_64/LiveOS.
This is only used in the creation of the bootstrap run-time-environment
and may be removed.

The temporary root password is stored in:

        '/var/lib/lxc/ipa01-test/tmp_root_pass'


The root password is set up as expired and will require it to be changed
at first login, which you should do as soon as possible.  If you lose the
root password or wish to change it without starting the container, you
can change it from the host by running the following command (which will
also reset the expired flag):

        chroot /dev/lxc1/ipa01-test passwd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140508/be4c8bee/attachment.html>


More information about the lxc-users mailing list