Minikube无法在Ubuntu上启动,引发错误

Att*_*ila 5 virtualbox kubernetes kubectl minikube ubuntu-17.04

我在Dell XPS 13(3854 MB的RAM和Intel Core i5-5200U CPU @ 2.20GHz)上运行Ubuntu 17.04(zesty),并尝试启动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?
Run Code Online (Sandbox Code Playgroud)

我有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
Run Code Online (Sandbox Code Playgroud)

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

vas*_*cop 3

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

sudo apt-get purge virtualbox virtualbox-dkms
sudo apt-get install virtualbox-5.1
Run Code Online (Sandbox Code Playgroud)