LoginSignup
1
2

More than 5 years have passed since last update.

macOS Sierraにアップグレードしたらvagrant up出来ない

Last updated at Posted at 2017-05-13

OS X El CapitanからSierraにアップデートしたら以下のエラーを履いてvagrantが起動しなくなった。

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

ぐぐってみるとアップグレードしたら結構動かない問題があるみたい。
Virtual boxとvagrantを一度アンインストールして再インストール。

以下のコマンドで起動するとエラーが再び。

$ vagrant up
Vagrant failed to initialize at a very early stage:

The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:

  vagrant plugin repair

If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:

  vagrant plugin expunge --reinstall

Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-hostsupdater (> 0)'

エラー文言に従って

$ vagrant plugin expunge --reinstall

したあとに起動で完了。
めでたしめでたし。

以下、ダウンロードページ
vagrant
Virtual box

参考:http://stackoverflow.com/questions/39652593/virtualbox-error-on-macos-sierra

1
2
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
2