minikube: Localkube crashed on Hyper-V

Minikube version (use minikube version): v0.21.0

Environment:

  • OS (e.g. from /etc/os-release): Windows 10 Enterprise 10.0.15063 build 15063
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): hyperv
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION): minikube-v0.23.0.iso
  • Install tools: Chocolatey
  • Others:

What happened: Either after restarting my laptop, or after being idle for a while, minikube appears to cease responding and is unable to restart.

Attempt to access the dashboard ends with:

minikube dashboard
Could not find finalized endpoint being pointed to by kubernetes-dashboard: Error validating service: Error getting service kubernetes-dashboard: Get https://192.168.0.185:8443/api/v1/namespaces/kube-system/services/kubernetes-dashboard: dial tcp 192.168.0.185:8443: connectex: No connection could be made because the target machine actively refused it.

Minikube sometimes is successfuly starting after doing:

  • minikube stop
  • minikube delete
  • rd /s ~/.minikube
  • minikube start --vm-driver hyperv --hyperv-virtual-switch External --alsologtostderr

The above is not always successful and I’m unable to determine why. Typically the process freezes after downloading the ISO.

What you expected to happen: I expect minikube to start succesfully.

How to reproduce it (as minimally and precisely as possible): Restart the machine or stop using the dashboard/kubectl for a while.

Output of minikube logs (if applicable):

minikube.txt

Anything else do we need to know:

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 24 (9 by maintainers)

Most upvoted comments

I’ve been having crashing issues with minikube. I’m new to kubernetes and I’m going through some Pluralsight Courses to start learning the technology. I came across this thread and I changed my minikube virtual in Hyper-V to not use dynamic memory and the system seems to have stabilized.

image