更新 win10 后 Homestead 报错问题解决
我的个人博客地址:博客
报错
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: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "int __cdecl handleCreate(struct HandlerArg *,int,int *)" at line 66 of file VBoxManageHostonly.cpp
解决方案
- 安装Virtualbox 5 和 Vagrant 1.7.4
- 注释homestead.rb第17行: config.vm.network :private_network, ip: settings["ip"] ||= "192.168.10.10"
- 注释path ~\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.4\plugins\providers\virtualbox\action.rb第64行:b.use ClearNetworkInterfaces
- 若是第一次安装homestead 用
homestead init
若是因为更新win10而导致的问题,运行homestead up
- 然后运行
homestead halt
关闭box - 打开virtualbox ,管理->全局设定->网络->仅主机(host-only)网络->随便修改一个虚拟网卡,Ip为:192.168.10.10
- 设置Homestead虚拟机,网络->网卡2->选中第6步设置的host-only的网卡保存
- 运行
homestead up0
你的homestead 又复活了
参考链接
本帖已被设为精华帖!