最近項目轉向 Kubernates, 因而想在本地安裝使用 minikube.
但不知是由於什麼時候升級了 MacOS (10.13.3) 仍是升級了VirtualBox, VirtualBox就是沒法正常啓動, 老是顯示錯誤:app
VirtualBox: Error -610 in supR3HardenedMainInitRuntime! VirtualBox: dlopen("/Applications/VirtualBox.app/Contents/MacOS/VBoxRT.dylib",) failed: <NULL> VirtualBox: Tip! It may help to reinstall VirtualBox.
來來回回卸載安裝不一樣版本也毫無做用...
嘗試使用 brew cask install virtualbox 也能成功
, 可是仍是同樣的錯誤, 也沒有輸出任何有用的信息. 非常鬱悶..學習
可是 brew search virtualbox 的結果裏邊還有一個caskroom/cask/virtualbox-extension-pack
因而抱着試試看的態度 brew cask install virtualbox-extension-pack
code
沒想到此次居然有不一樣!component
0%... Progress state: NS_ERROR_FAILURE VBoxManage: error: Failed to install "/usr/local/Caskroom/virtualbox-extension-pack/5.2.8,121009/Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.vbox-extpack" VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: The owner is not root: '/Applications' VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: An unknown (and thus untrusted) group has write access to '/Applications' and we therefore cannot trust the directory content or that of any subdirectory VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1211 of file VBoxManageMisc.cpp
連忙查看/Applications的權限, 不知道何時改爲了 xxx:staff, 趕緊sudo chown root:wheel /Applications
ip
再次brew cask install virtualbox-extension-pack
it
==> Installing Cask virtualbox-extension-pack ==> 0%... ==> 10%...20%...30%...40%...50%...60%...70%...80%...90%... ==> 100% ? virtualbox-extension-pack was successfully installed!
成功的預感!
再次啓動 VirtualBox, 久違的界面終於回來了!io
minikube start
也能夠成功, 終於能安心學習 K8S 了, 去了一塊心病 :)virtualbox