AWS / PHP / Python ちょいメモ

amazon web service , PHP, Python を使ったときのメモ。日本語でググってもわからなかった事を中心に。

VirtualBox on Win で vagrant up できない (ホストのNICに NDISがなかった)

三か月前には動いてた vagrant 環境が動作しない。使ってない期間、VirtualBoxのアップデート、Hyper-Vのインストール、CreatorsUpdateの適用など色々あったしなぁ。

結果的にはホスト上のNICに、 「VirtualBoxのNDISをインストール」 してあげればOKだった。

環境

エラー

vagrant up を発行するものの、次のエラーが発生。3か月前は動いてたのになぁ。。。

$ vagrant up
Bringing machine 'host1' up with 'virtualbox' provider...
==> host1: Clearing any previously set forwarded ports...
==> host1: Clearing any previously set network interfaces...
==> host1: Preparing network interfaces based on configuration...
host1: Adapter 1: nat
host1: Adapter 2: hostonly
==> host1: Forwarding ports...
host1: 22 (guest) => 2222 (host) (adapter 1)
==> host1: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "629f7920-270e-4e7c-88b5-961c8fe6f7e6", "--type", "headless"]

Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2' (VERR_SUPDRV_COMPONENT_NOT_FOUND).
VBoxManage.exe: error: Failed to attach the network LUN (VERR_SUPDRV_COMPONENT_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

解決方法

ホスト上のNICに、 「VirtualBoxのNDISをインストール」 してあげればOKだった。

たぶん、CreatorsUpdates が適用されたときに、設定が変わったのじゃないかなぁと思われます(推測)。



(手順)

  1. NIC のプロパティを開く
  2. インストー
  3. サービス > 追加
  4. Oracle Corporation > VirtualBox NDIS6 Bridged Networking Driver > OK
  5. インストールされたサービスにチェックを入れる

f:id:hidehara:20170629132149p:plain

f:id:hidehara:20170629132154p:plain




Googleさんに聞いたら、公式にチケットが入っていた。古くからある問題のもよう。


その中に Vito さんのコメント があって解決方法(回避方法)がでていた。StackOverflowでも議論されてたのね。


環境壊れずに済んで、ほっと一安心です。解決法的に、Macでは発生しなさそうな問題ですね。