Vagrant synced folders with NFS on Bluefin

Hi all,

I am trying to get Vagrant synced folders with NFS working on Bluefin (libvirt provider and QEMU). The UDP protocol is disabled per the documentation below:

I still get the following error

==> default: Mounting NFS shared folders...
    default: /my/path => /vagrant-nfs-mysite.com
    default: /my/path/trellis => /vagrant
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3,udp 192.168.121.1:/my/path/trellis /vagrant
mount.nfs: requested NFS version or transport protocol is not supported for /vagrant

Has anyone else gotten Vagrant shared folders working on Bluefin?
Vagrantfile for reference:

UPDATE. Turns out Vagrant always mounts the local working directory to /vagrant with default settings (including using the UDP protocol) unless overridden. Solution below.

config.vm.synced_folder ".", "/vagrant", type: 'nfs', nfs_udp: false

or disable the default mount

config.vm.synced_folder '.', '/vagrant', disabled: true
1 Like

@j0rge Related: Any thoughts on including libvirt-devel with the Bluefin image?