- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在使用 chef 在本地计算机上的 VirtualBox 上构建开发环境。我的本地计算机是 Windows 7。
首先,我想原谅自己,因为我对所有这些 Chef 和 vagrant 环境都是全新的,只是我按照说明进行操作,现在遇到了一个我不理解的错误,在这种情况下不知道如何修复它。
有人告诉我转到 chef 文件夹结构中的 vm 文件夹并运行“bundle install”命令。在遇到一些问题后,我设法安装了所需的 gem。现在我需要运行“kitchen converge”命令在 oracle VM Box 中构建虚拟机,但在执行过程中的某个阶段我遇到了以下错误/异常。
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
所以我以管理员身份运行相同的命令,但没有帮助。同样的问题。
具体我不明白下面的命令
VirtualBox requires that the same user be used to manage the VM that was created.
我猜 Chef 正在使用特定用户来构建 vagrant 环境。
我想直接从命令行“vagrant halt”停止并启动 Vagrant env,但我遇到了同样的错误。
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 相关)
最佳答案
对于遇到同样问题的所有人来说,解决方案非常简单。至少是为我工作。
首先我运行命令
kitchen destroy
它会破坏你刚刚创建的虚拟盒子,但老实说,我认为它不相关。
解决方法:
I had to remove .Vagrant folder from my user home directory where for windows the folder is located in C:\Users\(your user name)\.Vagrant
这将删除您的 vagrant 实例。
谢谢你,祝你好运。
关于windows - 使用厨房收敛。异常 : VirtualBox requires that the same user be used to manage the VM that was created,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31855013/
我试图在Mac(OS X Mavericks)上使用测试厨房(安装了ChefDK和docker-api驱动程序)在远程服务器上创建docker实例,但似乎在最后一步几乎失败了: stardust:te
我是一名优秀的程序员,十分优秀!