I was trying to start up my vagrant machine, so I navigated to the folder where my vagrantfile is, and used:
vagrant up && vagrant ssh
but I got the following error message:
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.
The UID used to create the VM was: 0 Your UID is: 501
I also tried with sudo, but that didn't work either.
Do I need to switch UID's? And how would I do this?
I ran into the same problem today.
I edited my UID by opening the file .vagrant/machines/default/virtualbox/creator_uid
and changing the 501 to a 0.
After I saved the file, the command vagrant up worked like a champ.
NB: the .vagrant
folder is in the same directory as your Vagrantfile, where you ran vagrant up