Minikube not starting on Windows 10
Asked Answered
E

6

7

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?

Eras answered 2/12, 2017 at 1:32 Comment(1)
Check my answerLaroche
E
10

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
Eras answered 2/12, 2017 at 1:45 Comment(2)
I am conviced, that minikube delete did something right. I have no idea what this might be.Twomey
I have different problem. My problem is after I run this command: "minikube start --vm-driver=hyperv". It show below info: "Starting local Kubernetes v1.13.2 cluster... Starting VM... Skipping hyperv driver, existing host has virtualbox driver. E0129 11:16:30.514075 15932 start.go:205] Error starting host: Error starting stopped host: Unable to start the VM: D: \Program Files\Oracle\VirtualBox\VBoxManage.exe startvm minikube --type headless failed:" After executing above command minikube start normally.Microspore
S
4

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.

Slipon answered 29/12, 2018 at 14:39 Comment(0)
A
2

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.

Attila answered 30/9, 2018 at 21:29 Comment(0)
L
1

Start the command prompt with administrator privileges.

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

Laroche answered 14/10, 2018 at 21:49 Comment(0)
A
1

Might be because an existing old setup files are still residing. Just a proper cleanup minikube worked for me

$ minikube delete
Deleting local Kubernetes cluster...
Machine deleted.
Amine answered 25/7, 2020 at 10:38 Comment(0)
M
0

Run the below commands on cmd as administrator. Make sure Docker Desktop is installed and running

minikube delete

minikube start --driver=docker

minikube config set driver docker

minikube start
Mackenziemackerel answered 15/9 at 19:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.