On 04/15/2013 09:13 PM, Istvan Balazs wrote:
> Dear Tamás!
>
> Theres is a workaround solution for this.
>
> We are using NFS mounts inside KVM guests. But can be achieved with native 
> hosts too.
>
> 1. The KVM guest is the one who mounts the NFS mount folder , let's say:
> mount -t nfs 10.10.10.122:/nfsmount /nfsdata
>
> 2. Bind mount the NFS mounted partion into an existing custom LXC folder:
> mount --bind /nfsdata /var/lib/lxc/lxccontainer/lxcnfsmount.
>
> If the NFS base mount is /lxcnfsmount, and You would like to mount the 
> subfolder "test1" to an other
> folder from the LXC container(/var/www/web1) You can do like this :
>
> 3.fstab entry content of the LXC container:(/var/lib/lxc/lxcontainer/fstab)
>   /var/lib/lxc/lxccontainer/rootfs/lxcnfsmount/test1 
> /var/lib/lxc/lxccontainer/rootfs/var/ww/web1
> none rw,bind,noatime,nodiratime,nosuid,nodev,noexec     0 0
>
> In this way you will be able to use the NFS mount in read-write mode, through 
> the host system's
> (physical, or host KVM) NFS network stack.

AFAIK, he wants to have NFS _server_ in container. Am I wrong?

tamas


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to