在Windows上使用virtualbox启动minishift会引发超时错误

时间:2019-07-25 20:52:00

标签: minishift

我正在尝试在机器上启动minishift。它可以成功创建minishift VM,但会引发超时错误。

配置:

Minishift版本:v1.34.0 + f5db7cb

操作系统:Windows 10

管理程序:Virtual Box v6.0.10

PS C:\WINDOWS\system32> minishift start

-- Starting OpenShift cluster .......................................................................Error during 'cluster up' execution: Error starting the cluster. ssh command error:
command : /var/lib/minishift/bin/oc cluster up --image 'openshift/origin-${component}:v3.11.0' --public-hostname 192.168.99.100 --routing-suffix 192.168.99.100.nip.io --base-dir /var/lib/minishift/base
err : exit status 1
output : Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
Pulling image openshift/origin-cli:v3.11.0
E0725 17:15:42.919928 5316 helper.go:173] Reading docker config from /home/docker/.docker/config.json failed: open /home/docker/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-cli:v3.11.0 anonymously
Image pull complete
E0725 17:15:44.643860 5316 helper.go:173] Reading docker config from /home/docker/.docker/config.json failed: open /home/docker/.docker/config.json: no such file or directory, will attempt to pull image docker.io/openshift/origin-node:v3.11.0 anonymously
Pulling image openshift/origin-node:v3.11.0
Pulled 5/6 layers, 85% complete
Pulled 6/6 layers, 100% complete
Extracting
Image pull complete
Checking type of volume mount ...
Determining server IP ...
Using public hostname IP 192.168.99.100 as the host IP
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3.11.0 is available ...
I0725 17:16:20.775520 5316 config.go:40] Running "create-master-config"
Starting OpenShift using openshift/origin-control-plane:v3.11.0 ...
I0725 17:16:31.108342 5316 config.go:46] Running "create-node-config"
I0725 17:16:35.237968 5316 flags.go:30] Running "create-kubelet-flags"
I0725 17:16:36.785234 5316 run_kubelet.go:49] Running "start-kubelet"
I0725 17:16:37.288388 5316 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ...
E0725 17:21:37.300062 5316 run_self_hosted.go:571] API server error: Get https://192.168.99.100:8443/healthz?timeout=32s: dial tcp 192.168.99.100:8443: connect: connection refused ()
Error: timed out waiting for the condition

预期结果:它应该为我提供无误的链接以打开Web控制台

1 个答案:

答案 0 :(得分:0)

有时候我也会发生这种情况。

解决方案包括:

  • B32:I35(将其关闭然后再次打开)
  • 重新启动Windows(也许VBox再次损坏了自己)

有关我的minishift设置的更多信息,请点击此处:

http://divby0.blogspot.com/2019/07/configuring-minishift-for-use-with.html

为此,我结合使用Windows 10中的Linux shell与minishift / docker守护程序进行交互:

  • Git Bash(通常是最好的)
  • Docker Toolbox(计划B,当Git Bash外壳中无法运行某些内容时)
  • WSL(基于Ubuntu,绝望的计划C)