gpt4 book ai didi

Vagrant 未启动。创建虚拟机的用户与当前用户不匹配

转载 作者:行者123 更新时间:2023-12-03 04:36:18 25 4
gpt4 key购买 nike

我试图启动我的 Vagrant 机器,所以我导航到我的 Vagrant 文件所在的文件夹,并使用:

vagrant up && vagrant ssh

但我收到以下错误消息:

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

我也尝试过使用 sudo,但也不起作用。

我需要切换 UID 吗?我该怎么做?

最佳答案

我今天遇到了同样的问题。
我通过打开文件 .vagrant/machines/default/virtualbox/creator_uid 并将 501 更改为 0< 来编辑我的 UID/强>。

保存文件后,命令 vagrant up 运行得非常好。

注意:.vagrant 文件夹与您运行 vagrant up 的 Vagrantfile 位于同一目录中

关于Vagrant 未启动。创建虚拟机的用户与当前用户不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31644222/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com