Search code examples
windowswindows-7kubernetesvirtualboxminikube

Starting minikube on Windows 7 fails to start with - Error getting state for host: machine does not exist


Have been trying to setup Kubernetes for local development on my Windows 7 machine with a VirtualBox VM Driver. Installing and running minikube fails each time with the below error:

D:\minikube>minikube start --vm-driver=virtualbox
Starting local Kubernetes v1.9.0 cluster...
Starting VM...
E0219 09:47:24.441727    4220 start.go:159] Error starting host: Error getting state for host: machine does not exist.

 Retrying.
E0219 09:47:24.448727    4220 start.go:165] Error starting host:  Error getting state for host: machine does not exist
E0219 09:47:54.448727    4220 util.go:151] Error uploading error message: : 
Post https://clouderrorreporting.googleapis.com/v1beta1/projects/k8s-minikube/events:report?key=AIzaSyACUwzG0dEPcl-eOgpDKnyKoUFgHdfoFuA: dial tcp 172.217.25.138:443: i/o timeout

I suspected this may be happening due to minikube cache downloading at a network drive folder (N:) due to enterprise configurations in my laptop, however, copying the .minikube folder from N:\.minikube to C:\Users\abc123\.minikube has not abated the problem.

Do let me know if someone has managed to solve it.


Solution

  • I ran into the same error on osx after re-installing minikube. Simply deleting the minikube VM and restarting fixed everything:

    $ minikube delete
    $ minikube start