[Lxc-users] Problem mounting Host directory in guest
Serge Hallyn
serge.hallyn at canonical.com
Fri Apr 20 21:56:49 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):
> > > 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.
> >
> > Can you tell me exactly how you disabled apparmor?
> >
>
> Making a symlink of /etc/apparmor.d/lxc-containers in
> /etc/apparmor.d/disable/ directory
Ah, that directory just holds the per-container profiles. To run
lxc-start itself unconfined, you'll need to make the disabled
symlink for /etc/apparmor.d/usr.bin.lxc-start.
More information about the lxc-users
mailing list