LoginSignup
25
26

More than 5 years have passed since last update.

vagrant up失敗ーVirtualBox編ー

Posted at

vagrant upが失敗した時の対処方法。
下記のようなエラーが出た場合。

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

方法1: Virtual Boxの再起動

/Library/StartupItems/VirtualBox/VirtualBox restart

若しくは

launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist

方法2: Virtual Boxの再インストール

こちらの方が確実

1、まずは既にあるファイルをアンインストール(これは必要ない?)

   /Volumes/VirtualBox/VirtualBox_Uninstall.tool ; exit;

2、最新版をVirtualBoxのHPよりDL

3、インストール

25
26
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
25
26