[Lxc-users] Problem mounting Host directory in guest
Serge Hallyn
serge.hallyn at canonical.com
Mon Apr 23 16:02:35 UTC 2012
Quoting Xavier Garcia (xagaba at xnaove.com):
> 2012/4/20 Serge Hallyn <serge.hallyn at canonical.com>
>
> > Quoting Xavier Garcia (xagaba at xnaove.com):
> > > > I don't think patches to make nfs work right in containers have ever
> > > >> made it in. I'd recommend mounting the filesystem someplace on the
> > > >> host, then bind-mounting them into the container through a
> > > >> lxc.mount.entry.
> > > >
> > > >
> > > lxc.mount.entry doesn't work with any host directory that I try.
> >
> > Please show me an example (cut and pasted) of one which failed.
> >
> > > If I disable apparmor containers refuse to start.
> >
> > Look in /var/lib/lxc/container/config for the commented-out line
> > 'aa_profile = unconfined'. Un-comment that.
> >
>
> This is the cut&pasted line
>
> lxc.mount.entry=/tank/series /var/lib/lxc/p2p/rootfs/mnt/series none
> rw,bind 0 0
>
> Uncommenting aa_profile gives me an
> lxc-start: No such file or directory - failed to change apparmor profile to
> unconfined
> the container don't start
Hi,
there appears to be a real, new bug in the apparmor bit:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/987371
thanks,
-serge
More information about the lxc-users
mailing list