Re: [Lxc-users] Using common rootfs for multiple containers

2013-07-10 Thread Serge Hallyn
Quoting Niklas Fuchs (nkfu...@yahoo.de): > This sound really great. I was wondering if anyone uses user namespaces > and shared rootfs? > I got the roblem the skeleton of the ro-root on the host has uid 0 for > the root files, but the guest maps them to nobody, so i cant use shared > rootfs and use

Re: [Lxc-users] Using common rootfs for multiple containers

2013-07-10 Thread Niklas Fuchs
This sound really great. I was wondering if anyone uses user namespaces and shared rootfs? I got the roblem the skeleton of the ro-root on the host has uid 0 for the root files, but the guest maps them to nobody, so i cant use shared rootfs and user namespaces together. I cant think of a better sol

Re: [Lxc-users] Using common rootfs for multiple containers

2013-07-10 Thread Joshua Randall
We have a particular use case, but we are achieving this using CernVM-FS (http://cernvm.cern.ch/portal/filesystem) to supply read-only root filesystems to many machines (with local caching), and then aufs or overlayfs (depending on the kernel version) to provide write support as others have sugg

Re: [Lxc-users] Using common rootfs for multiple containers

2013-07-10 Thread Rob Landley
On 07/08/2013 11:22:55 PM, Ajith Adapa wrote: > Hi, > > I would like it know is it possible to create a single rootfs (might > be in > read-only mode) and share it among multiple containers ? > > Currently for every container we create its own unique rootfs. > > What would be the best place to

Re: [Lxc-users] Using common rootfs for multiple containers

2013-07-09 Thread Vallevand, Mark K
lists.sourceforge.net Subject: [Lxc-users] Using common rootfs for multiple containers Hi, I would like it know is it possible to create a single rootfs (might be in read-only mode) and share it among multiple containers ? Currently for every container we create its own unique rootfs. What would be the

Re: [Lxc-users] Using common rootfs for multiple containers

2013-07-08 Thread Walter
Yes, this is possible. There are multiple approaches, for example: 1. Creating a snapshot (or outright copy) of a filesystem, then disposing of it when done. (1a) Manually creating a full copy (1b) Using a blockstore-provided snapshot facility such as LVM2 2. Using a snapshot-capable filesys

Re: [Lxc-users] Using common rootfs for multiple containers

2013-07-08 Thread Rob van der Hoeven
> I would like it know is it possible to create a single rootfs (might > be in read-only mode) and share it among multiple containers ? At Dotcloud.com they use one basic OS rootfs. For each container they mount this OS rootfs read-only and use a union file-system (AUFS) to add a writable layer.

[Lxc-users] Using common rootfs for multiple containers

2013-07-08 Thread Ajith Adapa
Hi, I would like it know is it possible to create a single rootfs (might be in read-only mode) and share it among multiple containers ? Currently for every container we create its own unique rootfs. What would be the best place to look in code for using single rootfs across multiple containers.