On the host OS, this NFS command works:

mount -t nfs4 -o rw,intr,timeo=600,port=2051 10.1.3.67:/ /mnt/hdfs

That same mount works from within the container (the container is set to 
unconfined so it can perform mounts).

When I try to add this mount to the fstab file of the container it fails:

root@atlas01:/var/lib/lxc# cat testsandboxa01/fstab
proc            proc         proc    nodev,noexec,nosuid 0 0
sysfs           sys          sysfs defaults  0 0
10.1.3.67:/     /var/lib/lxc/testsandboxa01/rootfs/mnt/hdfs    nfs4  
rw,intr,timeo=600,port=2051      0 0

Try to start the container and we get:

root@atlas01:/var/lib/lxc# lxc-start -n testsandboxa01
lxc-start: Invalid argument - failed to mount '10.1.3.67:/' on 
'/usr/lib/x86_64-linux-gnu/lxc//mnt/hdfs'
lxc-start: failed to setup the mounts for 'testsandboxa01'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'testsandboxa01'

------------------------------------------------------------------------------
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