[lxc-users] Best practice for sharing folder between lxc-guests?
Fajar A. Nugraha
list at fajar.net
Thu Feb 27 10:20:53 UTC 2014
On Thu, Feb 27, 2014 at 5:14 PM, Andreas Laut <andreas.laut at spark5.de> wrote:
> Is the mount bind really working on first guest? In ubuntu lxc version your
> config entry wont work. lxc-start needs the whole path to the directory from
> host sight of view.
That's not true. At least, not in newer versions of lxc (e.g. from
ppa:ubuntu-lxc/stable, which is at 1.0)
the default ubuntu template now uses this on container config
# Common configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
... and that file contains
# Default mount entries
lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
lxc.mount.entry = sysfs sys sysfs defaults 0 0
lxc.mount.entry = /sys/fs/fuse/connections sys/fs/fuse/connections
none bind,optional 0 0
lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none bind,optional 0 0
lxc.mount.entry = /sys/kernel/security sys/kernel/security none
bind,optional 0 0
lxc.mount.entry = /sys/fs/pstore sys/fs/pstore none bind,optional 0 0
so relative mount points on the container side should work fine.
--
Fajar
More information about the lxc-users
mailing list