首页 > 解决方案 > 更新 Vagrant 后运行命令“vagrant up”时出现错误?

问题描述

在使用命令vagrant up工作虚拟机时更新 vagrant 后,我​​收到此错误:

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: 1001

标签: vagrant

解决方案


我更新项目creator_uid文件.vagrant/夹中的文件

  1. 打开文件应该在这个路径:.vagrant/machines/web/virtualbox/creator_uid

  2. 0并将此文件中的或任何值更改为1001因为在错误消息中告诉我Your UID is: 1001

  3. 之后它的vagrant up工作:)


推荐阅读