laravel homestead安裝過程中,在vagrant up命令時出錯,大家有遇到同樣問題嗎?
laravel版本:5.1
homestead版本:0.2.6,最新的0.2.7下載後說box檔案有錯誤,不能使用。
在網上搜尋了一下,一般說是virtualbox的bug,
我試了以下四個版本
4.3.28;
4.3.26;
4.3.24;
4.2.30;
都出現同樣的錯誤,錯誤資訊如下:
--------------------------------------------$ vagrant upBringing machine 'default' up with 'virtualbox' provider...==> default: Importing base box 'laravel/homestead'...==> default: Matching MAC address for NAT networking...==> default: Setting the name of the VM: homestead==> default: Clearing any previously set network interfaces...There was an error while executing `VBoxManage`, a CLI used by Vagrantfor controlling VirtualBox. The command and stderr is shown below.Command: ["hostonlyif", "create"]Stderr: 0%...Progress state: E_FAILVBoxManage.exe: error: Failed to create the host-only adapterVBoxManage.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------------------------------------------------------------
大家怎麼解決的?
回複內容:
laravel homestead安裝過程中,在vagrant up命令時出錯,大家有遇到同樣問題嗎?
laravel版本:5.1
homestead版本:0.2.6,最新的0.2.7下載後說box檔案有錯誤,不能使用。
在網上搜尋了一下,一般說是virtualbox的bug,
我試了以下四個版本
4.3.28;
4.3.26;
4.3.24;
4.2.30;
都出現同樣的錯誤,錯誤資訊如下:
--------------------------------------------$ vagrant upBringing machine 'default' up with 'virtualbox' provider...==> default: Importing base box 'laravel/homestead'...==> default: Matching MAC address for NAT networking...==> default: Setting the name of the VM: homestead==> default: Clearing any previously set network interfaces...There was an error while executing `VBoxManage`, a CLI used by Vagrantfor controlling VirtualBox. The command and stderr is shown below.Command: ["hostonlyif", "create"]Stderr: 0%...Progress state: E_FAILVBoxManage.exe: error: Failed to create the host-only adapterVBoxManage.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的4.3.28最新版本有木有問題
http://wenda.golaravel.com/question/1359
Failed to create the host-only adapter 不能建立host-only adapter,你試把原來的刪掉,或者用管理員權限運行
你這個貌似不是配置方面的問題,是VirtualBox設定或者硬體虛擬化沒開吧。