[lxc-users] Best practice for sharing folder between lxc-guests?

Friedemann Stoffregen friedemann.stoffregen at student.fh-kiel.de
Thu Feb 27 10:35:08 UTC 2014


Ah sorry guys,
here are some more informations:

As Fajar correctly pointed out, I’m using ubuntu’s ppa with lxc 1.0.

This is the error-message I'm receiving:
lxc-start: command get_cgroup failed to receive response

I thought that would be caused by concurrent rw mounts…




Am 27.02.2014 um 11:20 schrieb Fajar A. Nugraha <list at fajar.net>:

> 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
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140227/1db7d7b1/attachment-0001.html>


More information about the lxc-users mailing list