OS X Mavericks にアップデートした際の Vagrant の様子(僕の場合)

2013/10/28

メイン機マベり中 #TiltShiftGen

あくまでも僕の場合の報告です。

結果的に上手く行ったので、特に深追いはしていません。参考にならないかもですね。。

使ってる Mac

  • MacBook Pro 15-inch, Mid 2009

アップデート前の VirtualBox, Vagrant のバージョン

  • VirtualBox 4.2.16
  • Vagrant 1.2.7

OS X Mavericks アップデート直後の vagrant up 結果

下記メッセージで失敗。

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[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 68 of file VBoxManageHostonly.cpp

VirtualBox, Vagrant を安定版の最新にしたらなんなく成功

  • VirtualBox 4.2.18
  • Vagrant v1.3.5

これで成功しました。なんだか拍子抜け。あんまり特殊なことしてないからかなぁ。

【追記】

と思ったら、再起動したら下記エラー。

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[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 68 of file VBoxManageHostonly.cpp

これは、

$ sudo /Library/StartupItems/VirtualBox/VirtualBox restart

で解決。

参考)https://coderwall.com/p/ydma0q