首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用厨房会聚。例外情况: VirtualBox要求使用同一个用户来管理创建的VM

用厨房会聚。例外情况: VirtualBox要求使用同一个用户来管理创建的VM
EN

Stack Overflow用户
提问于 2015-08-06 11:50:34
回答 1查看 3.9K关注 0票数 4

我使用厨师在本地机器上的VirtualBox上构建开发环境。我的本地机器是Windows 7。

首先,我想原谅我自己,因为我对所有这些厨师和流浪汉的环境都是全新的,我只是按照指示行事,现在我陷入了一个我不明白的错误,在这种情况下,我不知道如何修复它。

我被告知要转到主厨文件夹结构中的vm文件夹,并运行"bundle install“命令。经过几个问题后,我设法安装了所需的宝石。现在,我需要运行“厨房聚合”命令来在oracle中构建虚拟机,但是在执行过程中的某个阶段,我得到了下面的错误/exeption。

代码语言:javascript
复制
Class: Kitchen::ActionFailed
Message: Failed to complete #create action: Expected process to exit with
0, but received '1'
Begin output of vagrant ssh-config
STDOUT:
STDERR: 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: 122765
Your UID is: 0
End output of vagrant ssh-config 
Ran vagrant ssh-config returned 1

Please see .kitchen/logs/kitchen.log for more details
Also try running kitchen diagnose --all for configuration

我发现这个问题:

Vagrant Not Starting Up. User that created VM doesn't match current user

因此,我运行与Administrator相同的命令,但没有帮助。同样的问题。

具体来说,我不明白下面的命令

VirtualBox要求使用同一个用户来管理创建的VM。

我猜厨师是在用特定的用户来建立流浪环境。

我想直接从命令行停止并启动Vagrant,但是我得到了同样的错误。

代码语言:javascript
复制
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: 122765
Your UID is: 0

如果能提供任何帮助,我将不胜感激。我想说的是,这是公司的机器,我无法更改UID这样的用户特权(尽管我认为它只与windows相关)。

EN

回答 1

Stack Overflow用户

发布于 2015-08-07 11:36:03

对于所有处理同一个问题的人来说,解决方案是非常简单的。至少是为我工作。

我首先运行命令

代码语言:javascript
复制
kitchen destroy

它会破坏你刚刚创建的虚拟盒子,但老实说,我不认为它是相关的。

解决方案:

我不得不从我的用户主目录中删除.Vagrant文件夹,该文件夹位于C:\Users(您的用户名).Vagrant中。

这将移除你的流浪实例。

谢谢祝你好运。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31855013

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档