Parallels / docker-machine-parallels

Parallels driver for Docker Machine https://github.com/docker/machine
MIT License
471 stars 35 forks source link

Can't start minikube: HostIP not yet implemented for "parallels" driver #90

Closed Velociround closed 4 years ago

Velociround commented 4 years ago

Minikube works with HyperKit and also VirtualBox, but does not work with the Parallels driver. The issue is HostIP not yet implemented for "parallels" driver

I have installed the parallels driver with MacPorts, and then uninstalled that and installed with Homebrew, but it didn't make a difference, I get the same error message on either.

Here's the complete log:

Server:~ antoniogermano$ minikube start
πŸ˜„  minikube v1.10.1 on Darwin 10.15.4
✨  Using the parallels driver based on user configuration
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”₯  Creating parallels VM (CPUs=2, Memory=3072MB, Disk=20000MB) ...
❗  This VM is having trouble accessing https://k8s.gcr.io
πŸ’‘  To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
🐳  Preparing Kubernetes v1.18.2 on Docker 19.03.8 ...
E0520 09:36:19.132217   60998 start.go:95] Unable to get host IP: HostIP not yet implemented for "parallels" driver

πŸ’£  failed to start node: startup failed: Failed to setup kubeconfig: HostIP not yet implemented for "parallels" driver

😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
πŸ‘‰  https://github.com/kubernetes/minikube/issues/new/choose

I know the log asks to open the issue on the minikube project, but I've got the feeling that if I do, they will ask me to open an issue here.

Thank you in advance!

legal90 commented 4 years ago

Hi @antoniogermano,

libmachine doesn't provide a way to expose HostIP, so it seems it should be implemented on the minikube side. The error comes from here: https://github.com/kubernetes/minikube/blob/522c746df4b653d4a77f98be737025bf23d10a5b/pkg/minikube/cluster/ip.go#L90

And there is an ongoing discussion about Parallels support for minikube: https://github.com/kubernetes/minikube/issues/4862

I think it should be pretty easy to do. I'll check if I can implement it and contribute there soon.

legal90 commented 4 years ago

I sent the PR to the minikube repo: https://github.com/kubernetes/minikube/pull/8259

legal90 commented 4 years ago

kubernetes/minikube#8259 was merged

UPDATE: The fix has been released in minikube v1.11.0 https://github.com/kubernetes/minikube/releases/tag/v1.11.0