最近项目转向 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