首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VBoxManage:错误:创建只有主机的适配器失败(II)

VBoxManage:错误:创建只有主机的适配器失败(II)
EN

Stack Overflow用户
提问于 2016-09-11 06:52:22
回答 5查看 16.7K关注 0票数 6

这个错误以前已经在post:VBoxManage: error: Failed to create the host-only adapter中报告过,它经常出现在新版本的Windows迷航/OracleVB中,如下所述。如果有人为下面的设置确定了解决此问题的方案,请在此共享:

  • 主机: Windows 10家庭版1607;操作系统构建14939.105
  • 来宾:使用"bento/ubuntu-14.04"图像
  • 流浪者: 1.8.5
  • Oracle : 5.1.4 r110228 (Qt5.5.1)

我安装了Oracle,然后安装了Vagrant (都是新安装的),然后在我的工作空间中以通常的方式运行vagrant up。在流浪者下载完虚拟框后,它在尝试启动VM时给出了以下错误输出:

代码语言:javascript
复制
C:\Users\AHL\workspace>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/ubuntu-14.04' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'bento/ubuntu-14.04'
    default: URL: https://atlas.hashicorp.com/bento/ubuntu-14.04
==> default: Adding box 'bento/ubuntu-14.04' (v2.2.9) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/bento/boxes/ubuntu-14.04/versions/2.2.9/providers/virtualbox.box
    default: Progress: 100% (Rate: 74436/s, Estimated time remaining: --:--:--)
==> default: Successfully added box 'bento/ubuntu-14.04' (v2.2.9) for 'virtualbox'!
==> default: Importing base box 'bento/ubuntu-14.04'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/ubuntu-14.04' is up to date...
==> default: Setting the name of the VM: workspace_default_1473571560144_68182
==> default: Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Operation canceled by the user
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component VirtualBoxWrap, interface IVirtualBox
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp

C:\Users\AHL\workspace>

Vagrantfile:

代码语言:javascript
复制
Vagrant.configure(2) do |config|
  config.vm.box = "bento/ubuntu-14.04"
  config.vm.network "private_network", ip: "192.168.33.10"
end
EN

回答 5

Stack Overflow用户

发布于 2016-09-11 07:02:19

这一问题的解决办法似乎与有关帖子中所报告的相同:

虽然Oracle VB GUI中的VM似乎没有运行,但您必须通过Oracle VB GUI手动启动它(这应该可以让您登录到该框),然后再次手动关闭它(也可以通过Oracle VB GUI)。然后,再次运行vagrant up,它应该可以工作。

如果您有此设置的问题,那么请添加评论到这篇文章。

票数 2
EN

Stack Overflow用户

发布于 2017-05-10 02:47:28

试着执行

C:\HashiCorp\Vagrant\bin\vagrant.exe作为管理员,然后

命令行中的vagrant up

对我起作用了。

票数 1
EN

Stack Overflow用户

发布于 2021-06-29 22:10:15

在Windows 10上

  • 导航到程序文件> Oracle > VirtualBox >驱动程序>网络> netadp6
  • 右键单击"VBoxNetAdp6.inf“并选择"Install”。

在执行这些步骤之前,您可能必须关闭VirtualBox,然后重新运行vagrant up,甚至可能运行vagrant destroy

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

https://stackoverflow.com/questions/39433590

复制
相关文章

相似问题

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