已存在具有您指定名称的连接 [英] A connection with the name you specified already exists

查看:32
本文介绍了已存在具有您指定名称的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Windows 10 中设置我以前工作的 vagrant 环境.我已更新到 VirtualBox 的最新版本 (https://www.virtualbox.org/ticket/14040) 和 Vagrant.

I am setting up my previously working vagrant environment in Windows 10. I've updated to the newest version of both VirtualBox (https://www.virtualbox.org/ticket/14040) and Vagrant.

当我 vagrant up 时出现错误:无法重命名此连接.已存在具有您指定名称的连接.请指定其他名称.

When I vagrant up I get an error: Cannot rename this connection. A connection with the name you specified already exists. Specify a different name.

我已经尝试删除我所有的盒子,删除 .vagrant 和 .virtualbox 目录,重新安装 virtualbox 和 vagrant.然而,我总是得到同样的错误.这是来自我的控制台的错误消息:

I've since tried deleting all of my boxes, deleting the .vagrant and .virtualbox directories, reinstalling both virtualbox and vagrant. Yet, I always get the same error. Here is the error message from my console:

客户机在等待时进入了无效状态启动.有效状态是开始、运行".机器在关机"状态.请确认一切都已配置正确,然后重试.

The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'poweroff' state. Please verify everything is configured properly and try again.

如果您使用的提供程序具有随附的 GUI,打开它并观察机器通常很有帮助,因为GUI 通常有比 Vagrant 可以检索到的更多有用的错误消息.例如,如果您使用的是 VirtualBox,请运行 vagrant up 而VirtualBox GUI 已打开.

If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve. For example, if you're using VirtualBox, run vagrant up while the VirtualBox GUI is open.

此错误的主要问题是您使用的提供程序未正确配置.这很少是 Vagrant 问题.

The primary issue for this error is that the provider you're using is not properly configured. This is very rarely a Vagrant issue.

推荐答案

我在使用 Scotchbox 时遇到了同样的问题,即使在安装了测试版本后问题仍然存在.

I had the same issue with Scotchbox, and even after installing the test build the issue was still there.

这就是我解决问题的方法.

This is how I fixed the issue.

第 1 步:下载并安装 https://www.virtualbox.org/attachment/ticket/14040/VBox-Win10-fix-14040.exe 让它在后台运行

Step 1: Download and install https://www.virtualbox.org/attachment/ticket/14040/VBox-Win10-fix-14040.exe and leave it running in the background

第 2 步:前往 Virtual box 程序文件 ( C:Program FilesOracleVirtualBox ).

Step 2: Head to the Virtual box program files ( C:Program FilesOracleVirtualBox ).

第 3 步:转到这三个 .exe(Virtualbox.exe、VBoxHeadless.exe 和 VBoxManage.exe)的兼容性并选择 windows 7.

Step 3: Go to compatibility for these three .exe ( Virtualbox.exe, VBoxHeadless.exe, and VBoxManage.exe ) and choose windows 7.

然后再次运行 vagrant,它应该可以工作了.

Then just run vagrant up again and it should work.

这篇关于已存在具有您指定名称的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆