gpt4 book ai didi

kubernetes - Minikube 未在 Ubuntu 上启动,引发错误

转载 作者:行者123 更新时间:2023-12-04 21:05:36 27 4
gpt4 key购买 nike

我在 Dell XPS 13(3854 MB 内存和 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。我也尝试在启动时指定 virtualbox 驱动程序 minikube start --vm-driver=virtualbox .这些不起作用,我仍然遇到相同的错误。

最佳答案

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

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

关于kubernetes - Minikube 未在 Ubuntu 上启动,引发错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46934453/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com