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

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

问题描述

我正在 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 Files\Oracle\VirtualBox).

Step 2: Head to the Virtual box program files ( C:\Program Files\Oracle\VirtualBox ).

第 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天全站免登陆