LoginSignup
12

More than 5 years have passed since last update.

Virtualbox Host-Only Ethernet Adapter の作成

Last updated at Posted at 2017-02-07

Description

vagrant × Virtualbox on Windows10で使っていると、win10のOS更新が入ったあとにvagrantが起動できなくなることがよくある。最近結構その状態に陥るのだが、毎回毎回うろたえているので、エラーになるたびに直し方をメモしていこうと思う。

Status

VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

vagrant up すると、このようなエラーが出る。

err.PNG

VirtualBox Host-Only Adapter が無い

ネットで調べると、すぐに「VirtualBoxのHost-Only Adapterが無効化したから」という情報が手に入る。しかし、コントロールパネルからネットワークとインターネット/ネットワーク接続をたどってみたところで、そんなアダプターは表示されていない。
nothing.PNG
原因はアダプターが無効になっているからではなく、アダプターそのものが無くなってしまうからである。セキュリティプログラムにでも引っかかるのだろうか?理由はよくわからない。

Solution

VirtualBox Host-Only Adapterを作成する

以下の手順で、VirtualBoxの操作画面からアダプターを作成できる。

  1. [ファイル]->[環境設定]
    step1.PNG

  2. [ネットワーク]->[ホストオンリーネットワーク]
    step2.PNG

  3. +のマークをクリックし、アダプターを作成
    final.PNG

vagrantを再起動する

vagrant reload

change log

更新記録

  1. 2月8日:投稿
  2. 2月9日:Fixed typo

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12