Minikube没有在Ubuntu上启动,抛出错误

时间:2017-10-25 13:59:17

标签: kubernetes virtualbox kubectl minikube ubuntu-17.04

我在戴尔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后跟minikube delete,然后尝试再次启动minikube。我也尝试在启动minikube start --vm-driver=virtualbox时指定虚拟机驱动程序。这些都没有用,我仍然得到同样的错误。

3 个答案:

答案 0 :(得分:0)

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

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

答案 1 :(得分:0)

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

答案 2 :(得分:-2)

如果我执行命令sudo apt-get install virtualbox-5.1,我将得到低于结果的结果

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package virtualbox-5.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'virtualbox-5.1' has no installation candidate
相关问题