[lxc-devel] NFS mounts inside a container uses/requires the host IPstack

Rob Landley rlandley at parallels.com
Fri Mar 18 13:34:33 UTC 2011


On 03/16/2011 01:51 PM, Tim Spriggs wrote:
> Thanks for the offer but I think I have networking under control. What
> is not working properly is that NFS happens from a host IP instead of
> a context IP... even though it is started from the context IP.

I'm working on that.

Here's the kernel patch needed to get the basic minimal NFSv3
functionality to work.  (Note the big long mount invocation switching
off tons of stuff.  This patch makes it work ONCE YOU'VE SWITCHED ALL
THAT OFF.  No portmap, no lockd, no dns resolution...)

Also, note that if the host and container ever try to use the same IP,
the NFS cacheing stuff mixes stuff together and it all goes pear shaped.

As I said: working on it...

Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfs3.patch
Type: text/x-patch
Size: 3137 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20110318/cdf1640f/attachment.bin>


More information about the lxc-devel mailing list