Minikube 未从 Ubuntu 开始,抛出错误

Minikube not starting on Ubuntu, throwing errors

我 运行 Ubuntu 17.04 (zesty) 在戴尔 XPS 13(3854 MB RAM 和英特尔酷睿 i5-5200U CPU @ 2.20GHz)上并尝试启动 Minikube,但是当我尝试启动它时出现了一些错误。

➜  minikube version
minikube version: v0.22.3

➜  kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-08-31T09:14:02Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?

我有 VM VirtualBox 版本 5.2.0 r118431 (Qt5.7.1)。我检查了 BIOS 设置并启用了虚拟化。

➜  minikube start
Starting local Kubernetes v1.7.5 cluster...
Starting VM...
E1025 09:49:40.206594   22972 start.go:146] Error starting host: Error starting stopped host: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: The virtual machine 'minikube' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
.

 Retrying.
E1025 09:49:40.207051   22972 start.go:152] Error starting host:  Error starting stopped host: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: The virtual machine 'minikube' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

我尝试了一些我在网上找到的建议,例如 运行 ~/rm -rf .minikube/ 并尝试再次启动 minikube。我试过 运行 minikube stop 后跟 minikube delete 然后尝试再次启动 minikube。我也尝试在启动时指定 virtualbox 驱动程序 minikube start --vm-driver=virtualbox。这些都不起作用,我仍然遇到同样的错误。

这看起来像是您的 Virtualbox 安装有问题,您尝试过重新安装吗?

sudo apt-get purge virtualbox virtualbox-dkms
sudo apt-get install virtualbox-5.1

尝试在BIOS系统中启用虚拟框,我的问题已解决