default: Clearing any previously這是鄭曉技術(shù)博客的原創(chuàng)博文"/ >
當(dāng)前位置:博客首頁>>分享經(jīng)驗 >> 閱讀正文

win10中vagrant報錯Failed to create the host-only adapter

作者: 鄭曉 分類: 分享經(jīng)驗 發(fā)布于: 2018-04-28 19:00 瀏覽:7,026 評論(1)


我的環(huán)境:Windows10? + vagrant 2.0.4 + virtualbox4.3.12

當(dāng)在win10中執(zhí)行vagrant up啟動虛擬機環(huán)境時報錯:Failed to create the host-only adapter


==> 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

之前在win7和macos中使用,并沒有發(fā)生此類錯誤,Google后發(fā)現(xiàn)這就是virtualbox在win10中的一個bug,官方已給出解決辦法:
下載補?。篽ttps://www.virtualbox.org/attachment/ticket/14040/VBox-Win10-fix-14040.exe
下載后,右鍵,以管理員權(quán)限運行,運行后只會有一個白色小框,上面描述了這個補丁的基本信息。
命令中再次執(zhí)行vagrant up,已經(jīng)沒有上面的錯誤了。

以后再啟動虛擬機就不需要這個補丁了。

? ? ? ?

本文采用知識共享署名-非商業(yè)性使用 3.0 中國大陸許可協(xié)議進(jìn)行許可,轉(zhuǎn)載時請注明出處及相應(yīng)鏈接。

本文永久鏈接: http://www.yjfs.org.cn/win10-vagrant-up-failed-to-create-the-host-only-adapter.html

win10中vagrant報錯Failed to create the host-only adapter:目前有1 條留言

用戶評論頭像 鐘水洲發(fā)表于 2018年05月01日 20:38[回復(fù)]

五一快樂,混個臉熟!

發(fā)表評論

change vcode