158

このエラーが見つかりました。一般的な解決策は virtualbox を再インストールすることですが、もっと良い方法があります。

解決

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

また

sudo /Library/StartupItems/VirtualBox/VirtualBox start

バーチャルボックス 4.3+

最近のバージョンでは、ファイル (/Library/StartupItems/VirtualBox/VirtualBox) が存在しないため、次のコマンドを使用する必要があります。

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

エラー

印刷: http://d.pr/i/1Bvi

VBoxManageVagrant が VirtualBox を制御するために使用する CLI の実行中にエラーが発生しました。コマンドと stderr を以下に示します Command: ["hostonlyif", "create"]

Stderr: 0%... 進行状況: NS_ERROR_FAILURE VBoxManage: エラー: ホストオンリー アダプターの作成に失敗しました VBoxManage: エラー: VBoxNetAdpCtl: 新しいインターフェイスの追加中にエラーが発生しました: /dev/vboxnetctl を開けませんでした: そのようなファイルまたはディレクトリはありません

VBoxManage: エラー: 詳細: コード NS_ERROR_FAILURE (0x80004005)、コンポーネント HostNetworkInterface、インターフェイス IHostNetworkInterface VBoxManage: エラー: コンテキスト: "int handleCreate(HandlerArg*, int, int*)" ファイル VBoxManageHostonly.cpp の 68 行目

エラーに関する Vagrant Git の問題: https://github.com/mitchellh/vagrant/issues/1671#issuecomment-22304107

4

10 に答える 10

26

システムが最近カーネルを更新した場合は、vbox セットアップを再実行する必要があります。この場合、virtualbox start コマンドを実行すると、次のメッセージが表示されます。

$ sudo /path/to/virtualbox start
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (2.6.32-358.23.2.el6.x86_64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
于 2013-10-21T11:12:27.270 に答える
6

すべての救済策を試しましたが、いくつかのコマンドを実行しましたが、機能しませんでした。並べ替えの /Library/StartupItems/Vir* の Mac (エル キャプテン) には何も存在せず、以下のコマンドが失敗しました:

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

最新のVirtualBoxを再インストールしてから以下のコマンドを実行すると、VMを実行するのに役立ちました

sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist
于 2016-05-03T08:39:32.253 に答える
3

私はしばらくこれに行き詰まりました。sudo: /Library.. コマンドを実行しようとすると、「コマンドが見つかりません」というメッセージが表示され続けました。

しかし、これは私にとってはうまくいきました:

sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
于 2019-03-18T21:44:36.577 に答える
0

エラーが発生すると...

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

以下は私のために機能し、エラーを返しません。その後、vagrant を正常に起動できます

sudo /Library/StartupItems/VirtualBox/VirtualBox restart
于 2014-11-07T15:33:53.490 に答える