/ dev / vboxnetctl:没有这样的文件或目录?

内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用

  • 回答 (2)
  • 关注 (0)
  • 查看 (62)

常见的解决方案是重新安装VirtualBox

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

sudo /Library/StartupItems/VirtualBox/VirtualBox start

VirtualBox 4.3+

在最近版本中,文件(/Library/StartupItems/VirtualBox/VirtualBox)不存在,因此需要使用以下命令:

sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist
提问于
用户回答回答于

可以看下这个错误

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
用户回答回答于

如果是这种情况,则在运行VirtualBox启动命令时将看到以下消息:

$ 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.

扫码关注云+社区