I'm using Vagrant on two machines (home and office) with my working directories stored in Dropbox. I regularly run into the pronblem:
The VirtualBox VM was created with a user that doesn't match the
current user running Vagrant. VirtualBox requires that the same user
be used to manage the VM that was created. Please re-run Vagrant with
that user. This is not a Vagrant issue.
This is easily solved, brute-force, by rm -rf .vagrant, but I'd like to find a more elegant solution -- like an easily automated way to put the .vagrant files elsewhere.
Update
Here's the scenario: a working directory shared between office and home machine via Dropbox.
- I
vagrant upon office machine, successfully. - I shut down office machine and go home.
- I get the message about on
vagrant up, saying theidvalues aren't the same as when I created. (503 vs 501 in general) - I do
rm -rf .vagrantand dovagrant upagain, successfully. - When I go back to the office, same problem.