Reputation: 1677
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?
Upvotes: 7
Views: 23541
Reputation: 149
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
Upvotes: 0
Reputation: 35
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.
Upvotes: 1
Reputation: 5369
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.
Upvotes: 4
Reputation: 10562
Start the command prompt with administrator privileges.
Right click on the cmd.exe icon and choose Runs As Administrator
Upvotes: 1
Reputation: 645
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.
Upvotes: 2
Reputation: 1677
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
Upvotes: 10