Skip to content

Instantly share code, notes, and snippets.

@fmasuhr
Created June 26, 2018 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmasuhr/da68ee59a2141f5b058d940de2ecc301 to your computer and use it in GitHub Desktop.
Save fmasuhr/da68ee59a2141f5b058d940de2ecc301 to your computer and use it in GitHub Desktop.
Vagrant up error: NFS is reporting that your exports file is invalid

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment