[Lxc-users] Container remounts ro an host's mount

Serge Hallyn serge.hallyn at canonical.com
Fri Nov 26 14:08:21 UTC 2010


Quoting Daniel Lezcano (daniel.lezcano at free.fr):
> On 11/25/2010 06:05 PM, Alessandro Guido wrote:
> > After further investigation, I noticed that the remount only happens
> > when nothing keeps the host's mount point busy.
> >
> > So, launching the container with
> > "lxc-start -l DEBUG -o /var/lib/lxc/php4/log -n php4"
> > keeps the /var/lib/lxc mount point busy and the container
> > fails to remount its / read-only during shutdown.
> >
> > While, starting the container with "lxc-start -n php4" allows the
> > container to succeed and remount its / (and thus host's /var/lib/lxc)
> > read-only.
> >    
> 
> I am wondering if it is logical a private mount namespace is able to 
> remount one of the host. It is likely a missing functionality in the 
> kernel (I don't think it is a bug).

I suspect the host's fs is MNT_SHARED.  Can you cat /proc/1/mountinfo?

-serge




More information about the lxc-users mailing list