stream浪者拒绝启动(远程连接断开)

stream浪者在对networking进行一些改变之后拒绝开始,我得到以下结论:

$ vagrant up default: Warning: Connection timeout. Retrying... default: Warning: Remote connection disconnect. Retrying... default: Warning: Remote connection disconnect. Retrying... default: Warning: Remote connection disconnect. Retrying... default: Warning: Remote connection disconnect. Retrying... 

我试图通过重新启动服务(失败)来解决这个问题,然后导致了这个;

 $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'ubuntu/trusty64' is up to date... ==> 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 66 of file VBoxManageHostonly.cpp 

其他人推荐重新启动VirtualBox服务,但是这也失败了;

 ✗ sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart Unloading VBoxDrv.kext (kernel) Can't remove kext org.virtualbox.kext.VBoxDrv; services failed to terminate - 0xe00002c7. Failed to unload org.virtualbox.kext.VBoxDrv - (iokit/common) unsupported function. Error: Failed to unload VBoxDrv.kext Fatal error: VirtualBox 

经过大量挖掘,由于VirtualBox进程持有锁 ,看起来重启命令失败。

这是通过干预来解决的。

 # kill all virtualbox related processes $ ps aux | grep vbox -i | awk -F ' ' '{print $2}' | xargs # restart virtualbox service $ sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart # try again $ vagrant up 

这对我有用..确保你已经在virtualbox上启用了适配器2

在这里输入图像描述