我最近在使用docker工具箱一段时间没有问题后遇到了这个问题。无法创建主机专用适配器 - windows 10,docker,virtualbox
Windows更新后开始发生?
的Windows 10家 - 64
卸载和重新泊坞窗工具箱
卸载并重新安装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...
我没有使用Docker,而且我在Windows 7 x64上,以前从未遇到过这个问题。但是我刚将VirtualBox从5.2.4升级到5.2.6,并且开始接受'无法在'vagrant up'上创建仅主机适配器',无论是使用新的还是现有的VM。卸载/重新安装/修复VirtualBox没有任何作用,但是感谢你的帖子,我想在Windows 7中查看Control Panel \ Network and Internet \ Network Connections,并且VirtualBox一直使用的两个仅限主机的适配器是灰色(禁用)!我只需右键点击它们,重新启用它们,就可以参加比赛了! –
@BenJohnson嗯,我很高兴我的(非常长)的帖子对你有帮助:)在我的阅读中,我已经遇到过几次你的特殊场景。另一个常见问题似乎是“VirtualBox NDIS6桥接网络驱动程序”在适配器上未启用。 – bszom
就我而言,重启也很有可能解决了问题。变量太多... – bszom