Warm tip: This article is reproduced from serverfault.com, please click

linux-当“无所事事”时,显示“看来你的计算机不支持NFS”(Debian jessie)

(linux - When “vagrant up” it says “It appears your machine doesn't support NFS” (Debian jessie))

发布于 2017-10-29 21:06:37

问题

vagrant up它显示“看来你的计算机不支持NFS”时

设定

  • Debian GNU / Linux 8(jessie)
  • 流浪汉1:2.0.0
  • 虚盒5.1.30 r118389

细节

使用apt-get更新和升级系统后,我基本上按照Mediawiki页面上的说明进行操作,因为我想安装Mathoid以便在mediawiki页面上本地渲染LaTeX方程。

但是,当我vagrant up回显以下内容时:

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

我也尝试了google,但没有找到适合我的问题的解决方案,也找不到解决此问题的任何提示。例如,我尝试安装该软件包

sudo apt-get install nfs-common

但是已经安装好了。先感谢你。

Questioner
gamebm
Viewed
12
user8556290 2017-10-30 05:39:59

可以通过将任何导出添加到/ etc / exports进行修复。

经过 :

   modprobe nfs
   modprobe nfsd

然后运行vagrant,它将添加/etc/exports,然后重新加载 内核服务器重新启动vagrant

发行http://jb-blog.readthedocs.io/en/latest/posts/0021-vagrant-nfs-problems.html

而不是已安装的NFS cos,实际上不支持:

尝试仅将其type: nfsvagrant_synced_folders

更多:https : //www.vagrantup.com/docs/synced-folders/nfs.html