我无法通过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.
我在这里错过了一两步吗?
我知道ubuntusencryption的家庭文件夹和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:警告:/ home / user / share不支持NFS导出
我会假设你的出口文件中的“<”和“>”是例如只…如果不删除它。
/home/<user>/path/to/dir 192.168.33.11(rw,no_subtree_check,all_squash
为什么不先尝试导出/ home,看看是否有用?
尝试在客户端和服务器上安装或configurationidmapd守护进程。 这将连接远程和本地用户。 那么你需要在客户端安装nfs-common,这提供了nfs安装选项。