linux - lxc-clone not working with overlayfs in centos 7 -


i have created container base , trying create clone of base container backing store overlayfs. fails following error,

lxc_container: bdev.c: overlayfs_mount: 2237 no such device - overlayfs: error mounting /var/lib/lxc/base/rootfs onto /usr/lib64/lxc/rootfs options upperdir=/var/lib/lxc/s0/delta0,lowerdir=/var/lib/lxc/base/rootfs,workdir=/var/lib/lxc/s0/olwork clone failed 

any way resolve issue?

thanks,

vishnu ganth

it sounds if overlay filesystem not available in kernel. first, check if listed in /proc/filesystems:

# grep overlay /proc/filesystems nodev   overlay 

if it's not there, may available loadable kernel module. can load using modprobe:

# modprobe overlay 

if resolves issue, you'll want configure system automatically load module when boots. on systemd-based system, can create /etc/modules-load.d/overlay.conf content:

overlay 

and you're done. non-systemd based distributions, consult appropriate documentation.

update

the name of overlay filesystem changed overlayfs overlay @ point. support added in commit 38b3491, made after release of lxc 1.0.7. looks change should available in lxc releases 1.1.1 , later.

the lxc package on centos comes epel repository. should open bug report against package (here) reporting problem; should reasonably easy package maintainer fix epel7.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -