Skip to content

Instantly share code, notes, and snippets.

@juanramirezc2
Forked from ikennaokpala/nfs-vagrant-error.md
Created September 16, 2019 23:08
Show Gist options
  • Save juanramirezc2/0154b117804ec6b8f0cf3bc830c50a4b to your computer and use it in GitHub Desktop.
Save juanramirezc2/0154b117804ec6b8f0cf3bc830c50a4b to your computer and use it in GitHub Desktop.
Vagrant error :NFS is reporting that your exports file is invalid

Vagrant error :NFS is reporting that your exports file is invalid

==> 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:2: path contains non-directory or non-existent components: /Users/<username>/path/to/vagrant
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /
exports:5: path contains non-directory or non-existent components: /Users/<username>/path/to/vagrant
exports:5: no usable directories in export entry
exports:5: using fallback (marked offline): /

This means that you may already have old vagrant path definitions in your /etc/exports file.

Try opening up /etc/exports file to identify old or unwanted vagrant paths and removing them if necessary

On opening /etc/exports file each set begins with # VAGRANT-BEGIN: and ends with # VAGRANT-END:. Make sure to delete these and any other lines between VAGRANT-BEGIN: and VAGRANT-END:

or maybe

sudo rm /etc/exports
sudo touch /etc/exports

vagrant halt
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment