masayuki5160's diary

名古屋でエンジニアしてます。

Mac OS X 10.9 とVagrant

ほかの方もいろいろはまってますが僕も同様の状況になったのでメモ。

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の再起動でとりあえずは立ち上がりました。

OSX Mavericksアップデート後にvagrant upが立ち上がらない対処方法
http://qiita.com/osamu1203/items/0043b59461ed31e2934b


でもなんども同じ状況になったのでVirtualBoxを再インストール。
で最新の4.3をいれたらそこでエラーw

$ vagrant up
Vagrant has detected that you have a version of VirtualBox installed
that is not supported. Please install one of the supported versions
listed below to use Vagrant:

4.0, 4.1, 4.2

メッセージのとおりVirtualBoxの4.2を再インストールして一段落しました。
なかなかばたばたしましたが、いまのところこの程度ですんだのでよかったな、と。

関係ないですが、個人的にはiBooksがはいったことがうれしかったですね。