Mac下安裝VirtualBox

weixin_34279579發表於2016-11-26

首先,在Oracle官網下載Mac版的VirtualBox:OS X hosts
下載完成之後開啟VirtualBox-5.1.10-112026-OSX.dmg檔案,然後雙擊下圖即可開始安裝

290160-a051eb5cee5255b2.png

如果這一步沒問題,那麼恭喜你安裝成功了。然而,天有不測風雲,我這一步之後就卡在了驗證環節上了...

最後,使用萬能的命令列解決之:
開啟終端,進入VirtualBox所在的目錄,一般是/Volumes/VirtualBox,然後執行安裝命令:

sudo installer -pkg VirtualBox.pkg -target /

返回資訊:

Password:
installer: Package name is Oracle VM VirtualBox
installer: Installing at base path /
installer: The install was successful.

注意
需要以root許可權執行上面的命令,否則會提示如下資訊:

VirtualBox$: installer -pkg VirtualBox.pkg -target /
installer: Must be run as root to install this package.

相關文章