linuxvagrantdebianvirtualboxdebian-jessie

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


Issue

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

Setups

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.


Solution

  • 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