问题描述
我在使用Vagrant进行NFS安装时遇到了麻烦:
在我的本地计算机上,我已经安装了NFS:
apt-get install nfs-common nfs-kernel-server
在我的Vagrantfile中将其设置为要使用:
config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)
在vagrant up
上,我得到:
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.
我在这里错过一两个步骤吗?
我知道ubuntus加密主文件夹和NFS的一些问题,但我知道这仅是引导前的问题。
[更新]我的/etc/exports
文件如下所示:
# 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
最佳办法
实际上,不可能通过ecryptfs卷中的NFS导出任何内容。 exportfs: Warning: /home/user/share does not support NFS export