Nicky Valentino
Nicky Valentino

Reputation: 31

VirtualBox VM was created with a user that doesn't match the current user running Vagrant

Error while running vagrant

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

Upvotes: 3

Views: 9134

Answers (5)

steakoverflow
steakoverflow

Reputation: 1366

This happened to me (on subsequent runs) when I used vagrant up with elevated privileges for the first time (administrator).

Upvotes: 0

siva krishna
siva krishna

Reputation: 31

Remove .vagrant dir in the current working dir and re-run vagrant up command. Error, because of copy / backup of Vagranfile /s from one system to another system. user id's mismath to the Vagrant to bring up the environment.. hope it helps cheers..!! :))

Upvotes: 3

user3805033
user3805033

Reputation: 157

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.

Upvotes: 8

Artur Licks
Artur Licks

Reputation: 21

In the Windows folder. Vagrant is in the same folder as the Vagrantfile. As default won't be available, so you may have to edit in every vm but the path is the same: vagrant/machines/(name of the vm)/virtualbox/creator_uid

Upvotes: 2

Bala
Bala

Reputation: 973

Find this path and change to 0.

.vagrant/machines/default/virtualbox/creator_uid

Upvotes: 5

Related Questions