vagrant-nfs4j

A Vagrant plugin that brings support of Vagrant NFS Synced Folders to Windows hosts with nfs4j-daemon under the hood.

This project is heavily inspired by vagrant-winnfsd.

Quickstart

  • Install the plugin

    vagrant plugin install vagrant-nfs4j
    
  • Configure nfs synced folders in Vagrantfile

Vagrant.configure('2') do |config|
  config.vm.box = 'ubuntu/xenial64'

  config.vm.synced_folder 'C:\Users\Toilal', # Host Path 
                          '/user', # VM Path
                          id: 'user',
                          type: 'nfs',
                          mount_options: %w(uid=1000 gid=1000 mask=0777)
end

Configuration

See lib/vagrant-nfs4j/config/nfs4j.rb for options available in config.nfs4j object of Vagrantfile.