VirtualBox VM was created with a user that does not match the current user running Vagrant

advertisements

I'm new in Windows. I use Windows 10. While I run vagrant on my machine, there are some issues with UID. Please look at the picture for more information.

While I run vagrant up, I get some warning :

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 as created. Please re-run Vagrant with
that user. This is not a Vagrant issue.

The UID used to create the VM was: 1000
Your UID is: 0


Looks like you are logged in as sudo, hence the UID is different. Log-out of sudo and try vagrant up as normal user.

If the above doesn't work then update the below file

vi .vagrant/machines/default/virtualbox/creator_uid

to add 0 in it

Let me know if this helps.