Minikube not starting on Windows 10

12/2/2017

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?

-- J K
docker
kubernetes
minikube
windows-10

4 Answers

10/14/2018

Start the command prompt with administrator privileges.

Right click on the cmd.exe icon and choose Runs As Administrator

-- ACV
Source: StackOverflow

12/2/2017

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
-- J K
Source: StackOverflow

9/30/2018

Incomplete or wrong installation lead this issue.There are some files, settings are cached. Deleting those might solve the problem. There is a folder called .minikube . It could be in profile folder or where minikube binary located. Delete that one and try again.

-- haltunbay
Source: StackOverflow

12/29/2018

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.

-- Yury Schkatula
Source: StackOverflow