[lxc-users] Regression in ephemeral containers

overlay fs overlayfs at gmail.com
Mon Oct 12 11:34:16 UTC 2015


Regression
---------------
It is no longer possible to bind-mount a file into an ephemeral
container, using the version of lxc in the lxc-daily ppa.  This used
to work; the regression was introduced some time after September 15.

Details
---------
If the following entry is added to the config file of an ubuntu-14.04
container named 'trusty',

   lxc.mount.entry = /home/oleg/test.txt home/ubuntu/test.txt none
bind,create=file 0 0

then lxc-start works ok,

   lxc-start -d -n trusty

but lxc-start-ephemeral fails to start,

   lxc-start-ephemeral -d -o trusty -n debug

The error message in the logfile is,

   lxc_utils - utils.c:safe_mount:1641 - Invalid argument - Failed to
mount /home/oleg/test.txt onto
/usr/lib/x86_64-linux-gnu/lxc/home/ubuntu/test.txt
   lxc_conf - conf.c:mount_entry:1731 - Invalid argument - failed to
mount '/home/oleg/test.txt' on
'/usr/lib/x86_64-linux-gnu/lxc/home/ubuntu/test.txt'
   lxc_conf - conf.c:lxc_setup:3762 - failed to setup the mount
entries for 'debug'    lxc_start - start.c:do_start:722 - failed to
setup the container


More information about the lxc-users mailing list