无法创建仅主机的适配器-Windows 10,docker,virtualbox [英] Failed to create the host-only adapter - windows 10, docker, virtualbox

查看:639
本文介绍了无法创建仅主机的适配器-Windows 10,docker,virtualbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用docker工具箱一段时间后都遇到了这个问题.

I've recently run into this problem after having used docker toolbox without a problem for a while.

Windows更新后开始发生了吗?

Started happening after windows update?

Windows 10 Home-64

Windows 10 Home - 64

已卸载并重新安装的Docker工具箱

Uninstalled and reinstalled Docker toolbox

卸载并重新安装了各种版本的VirtualBox

Uninstalled and reinstalled various versions of VirtualBox

仍然出现相同的错误

Running pre-create checks...
Creating machine...
(default) Copying C:\Users\me\.docker\machine\cache\boot2docker.iso to C:\Users\me\.docker\machine\machines\default\boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to create a network adapter. Sometimes, such confirmation window is minimized in the taskbar.
(default) Creating a new host-only adapter produced an error: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif create failed:
(default) 0%...
(default) Progress state: E_FAIL
(default) VBoxManage.exe: error: Failed to create the host-only adapter
(default) VBoxManage.exe: error: Querying NetCfgInstanceId failed (0x00000002)
(default) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(default) VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp
(default)
(default) This is a known VirtualBox bug. Let's try to recover anyway...
Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue...

推荐答案

tl; dr 如果使用的是趋势科技或Symantec防病毒解决方案,请尝试卸载Virtualbox,然后将其与防病毒软件重新安装禁用的. 它也可能与其他人一起使用.

tl;dr If you are using Trend Micro or Symantec antivirus solutions, try uninstalling Virtualbox, then re-install it with the antivirus disabled. It may work with others as well.

我正在添加此答案作为记录.

I am adding this answer for the record.

从Windows 10 Pro版本1703更新到版本1709之后,我和我的同事就开始遇到类似的问题.

My coworkers and I started having a similar issue just after updating from Windows 10 Pro version 1703 to version 1709.

我尝试回滚到1703版,并且可以正常工作,但这当然不是可接受的解决方案.

I tried rolling back to version 1703, and it worked, but of course this is not an acceptable solution.

由于某种原因,这与防病毒有关,在本例中为趋势科技Office扫描.在禁用防病毒功能的情况下进行全新重新安装后,仅主机适配器再次可用.

For some reason, this had to do with the antivirus, which in our case is Trend Micro Office Scan. After doing a clean re-install with the antivirus disabled, the host-only adapter was available again.

已在Virtualbox论坛和问题跟踪器中报告了该问题:
https://forums.virtualbox.org/viewtopic.php? f = 6& t = 86179#p413876
https://www.virtualbox.org/ticket/17354#comment:22

The issue has been reported in the Virtualbox forum and issue tracker:
https://forums.virtualbox.org/viewtopic.php?f=6&t=86179#p413876
https://www.virtualbox.org/ticket/17354#comment:22

不幸的是,此错误非常频繁,并且已经有数十次报告了不同的原因. 在我们的案例中, bszom的答案中显示的设置已经正确.

Unfortunately, this error is quite frequent, and it has been reported dozens of times with different causes. In our case, the settings shown in bszom's answer were already correct.

这篇关于无法创建仅主机的适配器-Windows 10,docker,virtualbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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