问题
流浪汉说它“看来你的机器不支持NFS”
设置
> Debian GNU / Linux 8(jessie)
> Vagrant 1:2.0.0
> Virtualbox 5.1.30 r118389
详情
在使用apt-get更新和升级系统之后,我基本上遵循了Mediawiki page的指令,因为我想安装Mathoid以在mediawiki页面本地渲染LaTeX方程式.
但是,当我流浪时,它会回复以下内容:
It appears your machine doesn't support NFS, or there is not an
adapter to enable NFS on this machine for Vagrant. Please verify
that `nfsd` is installed on your machine, and try again. If you're
on Windows, NFS isn't supported. If the problem persists, please
contact Vagrant support.
我检查了nfsd是否正确地在主机上工作,它说它已启用.
# /etc/init.d/nfs-kernel-server status
nfs-kernel-server.service - LSB: Kernel NFS server support
Loaded: loaded (/etc/init.d/nfs-kernel-server)
Active: active (running) since Sun 2017-10-15 07:56:32 -02; 2 weeks 0 days ago
CGroup: /system.slice/nfs-kernel-server.service
??1277 /usr/sbin/rpc.mountd --manage-gids
我也试过谷歌,并没有找到适合我的问题的解决方案,我找不到任何提示来解决这个问题.例如,我试图安装包
sudo apt-get install nfs-common
但它已经安装好了.
先感谢您.
解决方法:
可以通过向/ etc / exports添加任何导出来修复.
通过:
modprobe nfs
modprobe nfsd
然后运行vagrant,它将添加/ etc / exports,然后重新加载
kernel-server并重启vagrant.
问题http://jb-blog.readthedocs.io/en/latest/posts/0021-vagrant-nfs-problems.html
而不是安装NFS cos真的不支持:
尝试从vagrant_synced_folders中删除type:nfs
更多:https://www.vagrantup.com/docs/synced-folders/nfs.html