使用Docker Toolbox好一段时间后,最近我遇到了这个问题。
是在Windows更新之后出现的吗?
Windows 10 家庭版-64
卸载并重新安装Docker工具箱。
卸载并重新安装了各种版本的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...
vagrant up
时收到Failed to create the host-only adapter
的错误提示,无论是新的还是现有的虚拟机。卸载/重新安装/修复VirtualBox没有效果,但感谢您的帖子,我想要查看Windows 7中的控制面板\网络和Internet\网络连接
,发现VirtualBox一直在使用的两个主机模式适配器被灰显(禁用)了!我只需右键单击它们,重新启用它们,就可以继续进行了! - Ben Johnson