VirtualBox VM是使用与运行Vagrant的当前用户不匹配的用户创建的

Nic*_*ino 2 windows virtualbox vagrant vagrant-windows

运行流浪汉时出错

我是Windows的新手.我使用Windows 10.当我在我的机器上运行vagrant时,UID存在一些问题.请查看图片了解更多信息.

我跑的时候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: 1000
Your UID is: 0
Run Code Online (Sandbox Code Playgroud)

小智 6

看起来你以sudo身份登录,因此UID是不同的.注销sudo并以普通用户的身份尝试流浪.

如果上述方法无效,请更新以下文件

vi .vagrant/machines/default/virtualbox/creator_uid

在其中添加0

如果这有帮助,请告诉我.


Bal*_*ala 5

找到这条路径,改成0。

.vagrant/machines/default/virtualbox/creator_uid