[Lxc-users] Problem mounting Host directory in guest

Serge Hallyn serge.hallyn at canonical.com
Fri Apr 20 19:12:52 UTC 2012


Quoting Xavier Garcia (xagaba at xnaove.com):
> I have a problem with mounting a host directory in guest.I have an uptodate
> 12.04 ubuntu host and guest.
> I'm trying to mount inside container an ZFS filesystem exported with
> nfs with no luck.
> I try it mounting from Host fstab, guest fstab config file and
> lxc.mount.entry, neither work.
> Trying to mount the nfs share also doesn't work.
> Any advice, any things to try .... ???
> 
> Thanks in advance for your help

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.

-serge




More information about the lxc-users mailing list