我使用厨师在本地机器上的VirtualBox上构建开发环境。我的本地机器是Windows 7。
首先,我想原谅我自己,因为我对所有这些厨师和流浪汉的环境都是全新的,我只是按照指示行事,现在我陷入了一个我不明白的错误,在这种情况下,我不知道如何修复它。
我被告知要转到主厨文件夹结构中的vm文件夹,并运行"bundle install“命令。经过几个问题后,我设法安装了所需的宝石。现在,我需要运行“厨房聚合”命令来在oracle中构建虚拟机,但是在执行过程中的某个阶段,我得到了下面的错误/exeption。
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,但是我得到了同样的错误。
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相关)。
发布于 2015-08-07 11:36:03
对于所有处理同一个问题的人来说,解决方案是非常简单的。至少是为我工作。
我首先运行命令
kitchen destroy它会破坏你刚刚创建的虚拟盒子,但老实说,我不认为它是相关的。
解决方案:
我不得不从我的用户主目录中删除.Vagrant文件夹,该文件夹位于C:\Users(您的用户名).Vagrant中。
这将移除你的流浪实例。
谢谢祝你好运。
https://stackoverflow.com/questions/31855013
复制相似问题