关于vagrant up 启动时报错
===================================================================
$cd ~/Homestead && vagrant up
Bringingmachine 'homestead-7' up with 'virtualbox' provider...
==>homestead-7: Checking if box 'laravel/homestead' is up to date...
==>homestead-7: Clearing any previously set network interfaces...
Therewas an error while executing `VBoxManage`, a CLI used by Vagrant
forcontrolling VirtualBox. The command and stderr is shown below.
Command:["hostonlyif", "create"]
Stderr:0%...
Progressstate: E_FAIL
VBoxManage.exe:error: Failed to create the host-only adapter
VBoxManage.exe:error: Could not find Host Interface Networking driver! Please r einstall
VBoxManage.exe:error: Details: code E_FAIL (0x80004005), component HostNetworkI nterfaceWrap, interfaceIHostNetworkInterface
VBoxManage.exe:error: Context: "enum RTEXITCODE __cdecl handleCreate(struct Han dlerArg *)" at line 71 offile VBoxManageHostonly.cpp
=====================================================================
以上是git 中 vagrant up 启动失败的报错提示。下面把我个人的一个搭建过程简单讲述下:
第一次搭建失败,报以上错误。
环境:
win7 64位
VirtualBox-5.1.14-112924-Win
vagrant_1.9.5
----------------------------------------------第二次,卸载vagrant_1.9.5,重新安装vagrant_1.9.0。执行启动Homestead命令
cd ~/Homestead&& vagrant up。还是报错。
---------------------------------------------------------------------------------第三次,借鉴https://segmentfault.com/q/1010000004640237
重新安装VirtualBox,此时版本换成VirtualBox-5.1.30.18389-Win,再次执行启动Homestead命令,安装成功。
使用 vagrant ssh 命令,成功登录。
环境:
win7 64位
vagrant_1.9.0
VirtualBox-5.1.30.18389-Win
本次搭建教程参考:
https://laravel-china.org/courses/laravel-essential-training-5.5/557/development-environment-windows