1,Virtualbox 安裝不成功,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 HostNetworkInterfaceWrap, interface IHostNetworkInterface VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp
2,進入系統偏好設置-安全性與隱私,看不到“任何來源”選項
3,解決方法:
進入終端輸入:sudo spctl --master-disable,然后就看到:
重要步驟:需要重新進入以上設置,找到“任何來源”下方出現一行關於“Oracel America,Inc.”說明文字,點擊“允許”按鈕。之后重新安裝虛擬機即可。