NFS is reporting that your exports file is invalid.

Alexandr Ursu
Dec 6, 2020
Error on “vagrant up”

UPDATE: this solution also works for vagrant up : The following SSH command responded with a non-zero exit status.

The following SSH command responded with a non-zero exit status.

or

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":

Since I cloned my old Macbook into my brand new Macbook Pro machine where I had some previous boxes installed in my VirtualBox installation, I ended up having few invalid entries in /etc/exports. You will need to clean up that file and restart Vagrant box.

SOLUTION. You’ll need to run following command to fix it:

sudo rm /etc/exports
sudo touch /etc/exports
vagrant halt
vagrant up --provision

You’re all set. Happy hacking!

--

--