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

win10中vagrant報(bào)錯(cuò)Failed to create the host-only adapter

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


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

當(dāng)在win10中執(zhí)行vagrant up啟動(dòng)虛擬機(jī)環(huán)境時(shí)報(bào)錯(cuò):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ā)生此類錯(cuò)誤,Google后發(fā)現(xiàn)這就是virtualbox在win10中的一個(gè)bug,官方已給出解決辦法:
下載補(bǔ)?。篽ttps://www.virtualbox.org/attachment/ticket/14040/VBox-Win10-fix-14040.exe
下載后,右鍵,以管理員權(quán)限運(yùn)行,運(yùn)行后只會(huì)有一個(gè)白色小框,上面描述了這個(gè)補(bǔ)丁的基本信息。
命令中再次執(zhí)行vagrant up,已經(jīng)沒有上面的錯(cuò)誤了。

以后再啟動(dòng)虛擬機(jī)就不需要這個(gè)補(bǔ)丁了。

? ? ? ?

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

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

win10中vagrant報(bào)錯(cuò)Failed to create the host-only adapter:目前有1 條留言

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

五一快樂,混個(gè)臉熟!

發(fā)表評(píng)論

change vcode