Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minikube not starting on Windows 10

I'm just getting started with kuberneted on Windows 10. I downloaded the bits from here.

While attempting to start minikube from powershell:

PS C:\WINDOWS\system32> minikube start --vm-driver=hyperv

I'm encountering the error:

Starting local Kubernetes v1.8.0 cluster...
Starting VM...
E1202 06:53:29.869106    2368 start.go:150] Error starting host: Error starting stopped host: exit status 1.

While the documentation does not mention any prerequisites to run minikube, is there any setting on Windows 10 that needs to change to make it run?

like image 386
J K Avatar asked Dec 02 '17 01:12

J K


2 Answers

While I do not completely understand what happend, I chanced upon this article.


I got minikube running using the following steps:

 PS C:\WINDOWS\system32> minikube delete 
 PS C:\WINDOWS\system32> kubectl config use-context minikube
 PS C:\WINDOWS\system32> minikube start --vm-driver=hyperv
like image 55
J K Avatar answered Nov 17 '22 06:11

J K


Let say your minicube is installed on X: drive and your profile is on Y: drive. Then, to start the minikube you have to run the following two commands at the console:

Y:
X:\path-to-minicube\minikube.exe start

So, first command should position you on the profile drive (as minikube stores its files there and then tries to access them with no any mention of the drive, just starting with /). And second one is just running the EXE with correct "current drive".

P.S. And in case your minikube still complains it can't start stopped service, just run minikube delete (because this software is stateful) and try that two commands again.

like image 4
Yury Schkatula Avatar answered Nov 17 '22 04:11

Yury Schkatula