Here's mine, if it helps anyone.  I use this for all my containers so that I don't need to have a bunch of duplicated files for every lxc container running on my system:<div><br></div><div><div>lxc.mount.entry=proc /var/lib/lxc/squeeze1/rootfs/proc proc nodev,noexec,nosuid 0 0</div>
<div>lxc.mount.entry=devpts /var/lib/lxc/squeeze1/rootfs/dev/pts devpts defaults 0 0</div><div>lxc.mount.entry=sysfs /var/lib/lxc/squeeze1/rootfs/sys sysfs defaults  0 0</div><div>lxc.mount.entry=/opt /var/lib/lxc/squeeze1/rootfs/opt none bind,ro 0 0</div>
<div>lxc.mount.entry=/lessfs/squeeze/rootfs/bin /var/lib/lxc/squeeze1/rootfs/bin none bind,ro 0 0</div><div>lxc.mount.entry=/lessfs/squeeze/rootfs/boot /var/lib/lxc/squeeze1/rootfs/boot none bind,ro 0 0</div><div>lxc.mount.entry=/lessfs/squeeze/rootfs/lib /var/lib/lxc/squeeze1/rootfs/lib none bind,ro 0 0</div>
<div>lxc.mount.entry=/lessfs/squeeze/rootfs/lib64 /var/lib/lxc/squeeze1/rootfs/lib64 none bind,ro 0 0</div><div>lxc.mount.entry=/lessfs/squeeze/rootfs/sbin /var/lib/lxc/squeeze1/rootfs/sbin none bind,ro 0 0</div><div>lxc.mount.entry=/lessfs/squeeze/rootfs/usr /var/lib/lxc/squeeze1/rootfs/usr none bind,ro 0 0</div>
<div><br></div><div>For my system in /lessfs/squeeze/rootfs, I can upgrade it and simply reboot one of my containers and have all their binaries upgraded as well.</div><div><br></div><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 5:31 AM, Patrick Westphal <span dir="ltr"><<a href="mailto:patrick.westphal@inqbus.de">patrick.westphal@inqbus.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Sergio,<br>
<div class="im"><br>
><br>
> you can use the root mount point ("/") or create your own<br>
> root-mount-point, I prefered to use my own mount point called<br>
> "/container/" .<br>
<br>
</div>So do I. :)<br>
<div class="im"><br>
> Within  container's direrctory i copied all the necessary dirs and<br>
> files (/usr/, /etc/ , /bin ....).<br>
> Remember to change config file to change rootfs mount point.<br>
<br>
</div>OK. But 'shared' in this case means 'shared once' not 'shared forever',<br>
doesn't it? I mean if you just copy the corresponding directories, you<br>
will have to do e.g. security updates once for every container.<br>
I just set up the (/usr-, /bin-, /sbin-, ...) bind-mounts (read only) to<br>
(hopefully) keep the system maintainable for a larger number of<br>
containers. So I could install additional software once for all of them.<br>
Let's see if that works. ;)<br>
<div class="im"><br>
><br>
> Those dirs and files will be shared  but some programs need to run<br>
> with their own (no shared) directories.<br>
> In this point you can mount (bind mode) them , for example i use to do<br>
> it creating a folder called "/webvirtualX", within it i've created<br>
> no-shared dirs such as apache logs, fcgid sockets, and so on .<br>
<br>
</div>So do I, too. (Except that I do not bind-mount them but give them a<br>
dedicated directory tree.)<br>
<br>
<br>
Thanks and best regards<br>
<div><div></div><div class="h5"><br>
Patrick<br>
<br>
------------------------------------------------------------------------------<br>
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!<br>
Finally, a world-class log management solution at an even better price-free!<br>
Download using promo code Free_Logger_4_Dev2Dev. Offer expires<br>
February 28th, so secure your free ArcSight Logger TODAY!<br>
<a href="http://p.sf.net/sfu/arcsight-sfd2d" target="_blank">http://p.sf.net/sfu/arcsight-sfd2d</a><br>
_______________________________________________<br>
Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
</div></div></blockquote></div><br></div>