Ubuntu – NFS with encrypted ubuntu home directory

nfspuppetUbuntuubuntu-12.04vagrant

I am having trouble getting NFS setup on with vagrant:

On my local machine I have installed NFS:

apt-get install nfs-common nfs-kernel-server

And in my Vagrantfile set it to be used:

config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)

On vagrant up I get:

exportfs: /home/<user>/path/to/dir does not support NFS export

Mounting NFS shared folders failed. This is most often caused by the NFS
client software not being installed on the guest machine. Please verify
that the NFS client software is properly installed, and consult any resources
specific to the linux distro you're using for more information on how to
do this.

Am I missing a step or two here?

I'm aware of some issues with ubuntus encrypted home folders and NFS but I understand this is only meant to be a problem before boot.

[update] my /etc/exports file looks like this:

# VAGRANT-BEGIN: 5af3e5d6-b086-416d-8eab-987275445634
/home/<user>/path/to/dir 192.168.33.11(rw,no_subtree_check,all_squash,
anonuid=1000,anongid=1000,fsid$
# VAGRANT-END: 5af3e5d6-b086-416d-8eab-987275445634

Best Answer

Actually is not possibile to export anything via NFS inside an ecryptfs volume. exportfs: Warning: /home/user/share does not support NFS export

Related Topic