[Lxc-users] [lxc-users] Sharing the host /lib with ubuntu 10.04 guest

Nirmal Guhan vavatutu at gmail.com
Wed Nov 3 01:00:10 UTC 2010


Don't define /etc/fstab. Have an entry in your config as :
lxc.mount = test.fstab

and add an entry to test.fstab as
/lib /container-rootfspath/lib none bind 0 0

-Nirmal

2010/11/1 Pierre-François Bonnefoi <pierre-francois.bonnefoi at unilim.fr>:
> hello,
>
> I've encountered a new problem :
> I would like to decrease the disk usage of my container by sharing some big directories.
> When I try to share the /lib directory between my host under Ubuntu 10.04 with my guest under Ubuntu 10.0.4, I've got the problem that the file /lib/init/fstab from the host is shared with the container and create some panic with some not needed mounts.
> I've try to define a /etc/fstab but I can't prevent the guest system to analyze the /lib/init/fstab file.
> (And I don't want to modify my host Ubuntu...).
>
> How could I perform this ?
>
> Thank you,
> regards,
> Pierre-François Bonnefoi.
>
> --
> Bonnefoi Pierre-Francois                |    E-mail : bonnefoi at unilim.fr
> Universite de Limoges, Laboratoire XLIM |       Tel : 06 28 18 03 38
> 83, rue d'Isle                          |  Mrs. Peel, we're needed...
> 87000 Limoges - FRANCE                  |                 The Avengers.
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>




More information about the lxc-users mailing list