【问题标题】:Vagrant command doesn't work without SudoVagrant 命令在没有 Sudo 的情况下不起作用
【发布时间】:2019-12-12 10:48:23
【问题描述】:

我已经在我的 MacOS 中安装了带有 Vagrant 的宅基地。我已经用 Virtual Box 安装了所有东西,但是当我尝试在终端中使用 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.

我尝试使用sudo vagrant up,它可以工作,但不是最佳选择。 谁能帮帮我?

有一个终端错误的截图: Terminal Error with command vagrant up and vagrant ssh.

【问题讨论】:

标签: terminal vagrant virtual-machine virtualbox homestead


【解决方案1】:

尝试删除 .vagrant 目录

rm -r .vagrant

我怀疑您将项目文件夹从一个地方复制或移动到另一个地方。

或者,您需要更新 .vagrant/ 中的 creator_uid 文件。查看this blog post

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-17
    • 1970-01-01
    • 1970-01-01
    • 2018-02-01
    • 1970-01-01
    相关资源
    最近更新 更多