Vagrant error

Since a year, I am not so fond of setting up a development stack directly on my laptop (MAMP, direct install, XAMPP,…). Instead I use , it will run a headless virtual machine that I can configure as I wish. And the good thing is, I can have as much of these boxes as I want.

But even with this setup you can run into problems from time to time. As I never had this problem before, I want to document it here.

Today while starting a vagrant box, I ran into 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”:
 
conflicting exports for /projects/vm/www, 111.222.333.444
exports:5: export option conflict for /projects/vm/www
Apparently the /etc/exports file got corrupted. I still don’t know how it happened. But the fix I used is the following:
  vagrant halt // As the machine will have booted, even with the error above  rm -rf /etc/exports // Remove the exports file.  vagrant up // Let's try again, fingers crossed 

You should be fine now, have fun with those boxes!

Leave a Reply

Your email address will not be published. Required fields are marked *