VirtualBox on Win で vagrant up できない (ホストのNICに NDISがなかった)
三か月前には動いてた vagrant 環境が動作しない。使ってない期間、VirtualBoxのアップデート、Hyper-Vのインストール、CreatorsUpdateの適用など色々あったしなぁ。
結果的にはホスト上のNICに、 「VirtualBoxのNDISをインストール」 してあげればOKだった。
環境
- Windows 10 Pro v.1703 (Creators Update) x64
- VirtualBox v.5.1.22r115126
エラー
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 が適用されたときに、設定が変わったのじゃないかなぁと思われます(推測)。
(手順)
- NIC のプロパティを開く
- インストール
- サービス > 追加
- Oracle Corporation > VirtualBox NDIS6 Bridged Networking Driver > OK
- インストールされたサービスにチェックを入れる
Googleさんに聞いたら、公式にチケットが入っていた。古くからある問題のもよう。
その中に Vito さんのコメント があって解決方法(回避方法)がでていた。StackOverflowでも議論されてたのね。
- #15019 (Unable to create Host-Only Network in Windows 10) – Oracle VM VirtualBox
- virtualbox - Failed to open/create the internal network Vagrant on Windows10 - Stack Overflow
環境壊れずに済んで、ほっと一安心です。解決法的に、Macでは発生しなさそうな問題ですね。