vagrant up的时候出现以下错误:

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: 0
Your UID is: 501

只要编辑以下文件:
vim .vagrant/machines/default/virtualbox/creator_uid
把0改在501,就可以啦,其他creator_uid以此类推

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.

参考:
https://stackoverflow.com/questions/36636451/virtualbox-vm-was-created-with-a-user-that-doesnt-match-the-current-user-runnin

分类: web

标签:   vagrant