Vagrant failing on mounting NFS due to MacOS Catalina beta update

I have figured out the solution after tinkering. For me, I had to update everything including vagrant (v2.2.6) and virtual box.

Then, in MacOS Catalina, navigate to System Preferences → Security & Privacy → Privacy → Full Disk Access and press '+' then Command-Shift-G and enter the /sbin directory and find the nfsd file and add that to Full Disk Access.

Then sudo nano to your /etc/exports and delete everything in the file and vagrant up should work flawlessly!


For me this was the solution: https://github.com/hashicorp/vagrant/issues/10961#issuecomment-526132132

"workaround is to add /System/Volumes/Data/... to your paths in VagrantFile and /etc/exports"


For me the workaround suggested in the github issue (https://github.com/hashicorp/vagrant/issues/10961#issuecomment-526132132) took the following form, so it does not break non-Catalina hosts:

nfsPath = "."
if Dir.exist?("/System/Volumes/Data")
    nfsPath = "/System/Volumes/Data" + Dir.pwd
end
config.vm.synced_folder nfsPath, "/vagrant", type: "nfs"

This still requires you to remove existing nfs exports from /etc/exports, or vagrant will complain about a mismatch between what's in the /etc/exports file vs what is configured in Vagrantfile.