El CapitanにしてVagrantが起動しなくなって超焦った
普段つかってないMacを試しにEl Capitanにアップグレードしてみたら、vagrant upで下記の様なメッセージが出てvagrantが起動してくれなくなりました
Bringing machine 'default' up with 'virtualbox' provider... Skipping Berkshelf with --no-provision ==> default: Clearing any previously set network interfaces... 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 HostNetworkInterface, interface IHostNetworkInterface VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 66 of file VBoxManageHostonly.cpp
で、こちらにかいてあったコマンド実行してもダメだったので書かれてる通りVirtualBox再インストールしたら無事復活しました。
というわけでメインマシンをEl Capitanにアップしたときに焦らないようにメモ残しときます。