macOS 10.13 安裝Virtualbox失敗


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.”說明文字,點擊“允許”按鈕。之后重新安裝虛擬機即可。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM