5

我在 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?

我有 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后跟 aminikube delete然后尝试再次启动 minikube。我也尝试在启动时指定 virtualbox 驱动程序minikube start --vm-driver=virtualbox。这些不起作用,我仍然遇到同样的错误。

4

2 回答 2

2

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

sudo apt-get purge virtualbox virtualbox-dkms
sudo apt-get install virtualbox-5.1
于 2017-10-26T09:14:51.703 回答
0

尝试在 BIOS 系统中启用虚拟机,在我的情况下它解决了问题

于 2019-09-05T06:23:14.123 回答