When running vagrant up
you might encounter the following error:
==> default: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":
exports:39: path contains non-directory or non-existent components: <any local path>
exports:39: no usable directories in export entry
exports:39: using fallback (marked offline): /
Usually this happens when a directory gets removed after running vagrant up
but it is still part of the old path definitions in the /etc/exports
file.
This can be solved by flushing the whole file
sudo rm /etc/exports
sudo touch /etc/exports