我在使用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
您正在使用的计算机上是否还具有NFS客户端软件?是否安装了nfs-common(不仅仅是nfs-kernel-server)?
—
mpez0 2012年