Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
share|improve this question
    
Does the machine on which you're working have the NFS client software as well? Is nfs-common (not just nfs-kernel-server) installed? –  mpez0 Jul 23 '12 at 15:18
    
Yes nfs-common is also installed –  user71736 Jul 23 '12 at 15:19
add comment

3 Answers

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

share|improve this answer
add comment

I will assume the "<" and ">" in your exports file is for example only... if not remove it.

/home/<user>/path/to/dir 192.168.33.11(rw,no_subtree_check,all_squash

Why not first try to export /home and see if that works?

share|improve this answer
    
My setup works well when not in the home directory. –  user71736 Jul 25 '12 at 22:46
    
Not sure if it matters much, but how is your /home mounted, which filesystem, and is /home a symlink? –  aseq Jul 26 '12 at 19:50
    
I'm not sure - whatever defaults on ubuntu 12.04? –  user71736 Jul 27 '12 at 8:51
add comment

try to install or configure idmapd daemon on client and server. That will link remote and local users. Then you need to install nfs-common on client side, this provides nfs mount option.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.