[lxc-users] debian jessie && ro bind mounts...

Marco foobar.angus at gmail.com
Wed Mar 11 11:20:15 UTC 2015


Ok, I've an Ubuntu trusty 14.04 and I've done some testing with it.
With an old lxc 1.0.6:
   lxc_1.0.6-0ubuntu0.1_amd64.deb
the problem is there: read-only bind mounts are not respected.
Upgrading to lxc 1.0.7:
   lxc_1.0.7-0ubuntu0.1_amd64.deb
solve the problem.

Debian Jessie is running lxc 1.0.6 so they need to be informed of the bug I
suppose...
Is there someone from Debian here in the mailing list ?

-- Marco


On Wed, Mar 11, 2015 at 10:34 AM, Fajar A. Nugraha <list at fajar.net> wrote:

> On Tue, Mar 10, 2015 at 7:43 PM, Marco <foobar.angus at gmail.com> wrote:
> > Hi,
> > I'm experiencing issues while trying to share an host path or filesystem
> as
> > read only to guests (read only bind-mounts).
> >
> > Host: Debian 8 Jessie
> > Linux deb 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt4-3 (2015-02-03) x86_64
> > GNU/Linux
> >
> > LXC: stock, 1.0.6-6
> > Guest: Debian 8 (no systemd)
> > Filesystem on host: ext4
>
>
> > Well, the guest correctly bind-mounts the host path, but mounts it as
> > read-write.
>
>
> Works for me on ubuntu. Try upgrading lxc
>
> root at v:~# touch /host/etc/test
> touch: cannot touch ‘/host/etc/test’: Read-only file system
>
> on config file:
> lxc.mount.entry = /etc host/etc auto bind,ro,create=dir 0 0
>
> ubuntu 14.10, lxc 1.1.0+master~20150224-0137-0ubuntu1~utopic from
> ppa:ubuntu-lxc/daily
>
> --
> Fajar
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150311/578e034e/attachment.html>


More information about the lxc-users mailing list