ISUCONの環境をVagrantで構築しようとしたらCommand: ["hostonlyif", "create"]と出たので解決した話。



環境:macOS Big Sur11.5.1

正確には

$ vagrant up
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: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp

こんな感じ。
手順としては、

1.git cloneして、

$ git clone https://github.com/matsuu/vagrant-isucon.git

2.ディレクトリに入って

$ cd vagrant-isucon/isucon6-qualifier

3.vagrant upしたら

$ vagrant up

4.ERRROR!
冒頭のエラーが発生、といった感じ。

これの原因は何だろうなと思い、ググるとBig Surにアプデしたのが原因なのではないか?というような記事が散見されたので、その解決法をみてみるとVirtualboxのアプデを行い、システム環境設定のセキュリティと
プライバシーからダウンロードしたアプリの実行許可を行う、というだけ。

思ったより簡単に解決したけどなんか助かる人がいるかもしれないからメモとして残しておく。

コメント

このブログの人気の投稿

Braveブラウザの同期機能をiPhoneで設定した話。

failed: unable to get local issuer certificate (_ssl.c:1123)と出たので解決した話

自作のChrome Extensionをインポートした時に "Invalid value for 'content_scripts[0].matches[0]': Empty path."というエラーが出たので解決した