LoginSignup
1
0

More than 5 years have passed since last update.

MacをMojaveにしたら、Vagrantが動かなくなった時の対処

Posted at

最近MacをMojaveにアップグレードしたら、唐突にVagrantが動かなくなりました……。
その時の解決策を紹介します。

発生したエラー

vagrant upはMacのアップグレードにより突然の死を迎えました。

$ vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> 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 HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp

 解決策

まずvirtualboxをアンインストールして、

$ brew cask uninstall virtualbox

インストールし直すだけです。

$ brew cask install virtualbox

これで私の環境ではすぐに治りました。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0