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

Daniel Lezcano daniel.lezcano at free.fr
Thu Nov 4 09:27:05 UTC 2010


On 11/02/2010 12:51 AM, Pierre-François Bonnefoi wrote:
> 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.
>    

Do you mean a kernel panic ?

> 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 ?
>    
You can bind mount a private file on /lib/init/fstab within the 
container with the configuration line:

lxc.mount.entry="privatefstab /lib/init/fstab none bind 0 0" /bin/bash




More information about the lxc-users mailing list