首頁  >  文章  >  後端開發  >  laravel5.1 homestead0.2.6 安装中,在vagrant up命令时出错,大家有遇到同样问题么?

laravel5.1 homestead0.2.6 安装中,在vagrant up命令时出错,大家有遇到同样问题么?

WBOY
WBOY原創
2016-06-06 20:28:37975瀏覽

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;
都出现同样的错误,错误信息如下:

<code>--------------------------------------------
$ vagrant up
Bringing 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 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
------------------------------------------------------------
</code>

大家怎么解决的?

回复内容:

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;
都出现同样的错误,错误信息如下:

<code>--------------------------------------------
$ vagrant up
Bringing 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 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
------------------------------------------------------------
</code>

大家怎么解决的?

你先试试我的方案,明天我给同事装的时候,再来检测一下可行度。还有就是你现在这个问题真没遇到过,我明天再试一下virtualbox的4.3.28最新版本有木有问题

http://wenda.golaravel.com/question/1359

Failed to create the host-only adapter 不能创建host-only adapter,你试把原来的删掉,或者用管理员权限运行

你这个貌似不是配置方面的问题,是VirtualBox设置或者硬件虚拟化没开吧。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn