ローカルの開発環境を再構築すべく、VirtualBoxとVagrantをクリアインストールした後、Homesteadをインストールして起動したらエラー。エラー内容は’HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2’のオープン/作成に失敗したとのこと。
$ vagrant up Bringing machine 'homestead' up with 'virtualbox' provider... ==> homestead: Checking if box 'laravel/homestead' version '8.0.0' is up to date... ==> homestead: Clearing any previously set forwarded ports... ==> homestead: Clearing any previously set network interfaces... ==> homestead: Preparing network interfaces based on configuration... homestead: Adapter 1: nat homestead: Adapter 2: hostonly ==> homestead: Forwarding ports... homestead: 80 (guest) => 8000 (host) (adapter 1) homestead: 443 (guest) => 44300 (host) (adapter 1) homestead: 3306 (guest) => 33060 (host) (adapter 1) homestead: 4040 (guest) => 4040 (host) (adapter 1) homestead: 5432 (guest) => 54320 (host) (adapter 1) homestead: 8025 (guest) => 8025 (host) (adapter 1) homestead: 9600 (guest) => 9600 (host) (adapter 1) homestead: 27017 (guest) => 27017 (host) (adapter 1) homestead: 22 (guest) => 2222 (host) (adapter 1) ==> homestead: Running 'pre-boot' VM customizations... ==> homestead: 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", "af8f0dfa-b323-4ec5-a6e6-3b8a556331ce", "--type", "headless"] Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2' (VERR_INTNET_FLT_IF_NOT_FOUND). VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
思い当たる節は無し。ググったら以下の記事を発見。
Fix: Failed to open/create the internal network ‘HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter’. Error “VERR_INTNET_FLT_IF_NOT_FOUND” with Docker QuickStart Terminal and inside Oracle Virtual Box – Gaurav’s Blog
https://blogs.msdn.microsoft.com/gaurav/2016/11/19/fix-failed-to-opencreate-the-internal-network-hostinterfacenetworking-virtualbox-host-only-ethernet-adapter-error-verr_intnet_flt_if_not_found-with-docker-quickstart-terminal/
記事を参考に以下試す。
- ネットワーク接続で’HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2’を特定。
- プロパティでVirtualBox NDIS6 Bridge Networking Driverのチェックボックスをオンオフ
- ネットワークアダプタを一旦無効にして再び有効にする。
たったこれだけでエラー解決。ソフト(仮想ネットワークアダプタ)のくせして振る舞いはまるでハードみたいだね。