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

旧城冷巷雨未停 提交于 2020-01-22 16:40:26

问题


Issue

when vagrant up it says "It appears your machine doesn't support NFS"

Setups

  • Debian GNU/Linux 8 (jessie)
  • Vagrant 1:2.0.0
  • Virtualbox 5.1.30 r118389

Detail

After using apt-get to update and upgrade the system, I basically followed the instruction from the Mediawiki page, since I wanted to install Mathoid to render LaTeX equations locally for mediawiki page.

However, when I vagrant up it echos the following:

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.

I checked if nfsd is correctly working on the host, and it says it's enabled.

# /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

I also tried google, and did not find a solution that fits my problem and I couldn't find any hint to resolve this. For instance, I tried to install the package

sudo apt-get install nfs-common

But it has been already installed. Thank you in advance.


回答1:


Can be fixed by adding any exports to /etc/exports.

by :

   modprobe nfs
   modprobe nfsd

then running vagrant, which will add /etc/exports, then reloading kernel-server and restarting vagrant.

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

instead of installed NFS cos really no supported :

Try just removing type: nfs from the vagrant_synced_folders

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




回答2:


The command mentioned below works for linux mint 18.3:

sudo apt-get install nfs-common nfs-kernel-server


来源:https://stackoverflow.com/questions/47005241/when-vagrant-up-it-says-it-appears-your-machine-doesnt-support-nfs-debian

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!