minikube: hyperv: ssh: connectex: A connection attempt failed because the connected party did not properly respond
BUG REPORT
minikube version: v0.24.1 Windows 10 Hyper-V minikube-v0.23.6.iso
What happened:
Trying to run minikube on Windows 10 laptop ( HyperV enabled, running Docker for Windows 17.09.1-ce-win42). Created a virtual switch for internal network since using external network switch is causing wifi problems at office.
Executed this command:
./minikube start --kubernetes-version=“v0.24.1” --vm-driver=“hyperv” --hyperv-virtual-switch=“VmNAT” --v=7 --alsologtostderr
The docker machine returns an IPv6 address, minikube is not able to ssh into that machine. Please note that I have disabled IPv6 address on the virtual NIC but it does not help.
Running the command “minikube ip” returns fe80::215:5dff:fedc:eb17
What you expected to happen:
Minikube to start running
How to reproduce it (as minimally and precisely as possible):
Output of minikube logs (if applicable):
[stderr =====>] : [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikub e ).networkadapters[0]).ipaddresses[0] [stdout =====>] : fe80::215:5dff:fedc:eb17
[stderr =====>] : [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state [stdout =====>] : Running
[stderr =====>] : setting hostname “minikube” [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state [stdout =====>] : Running
[stderr =====>] : [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikub e ).networkadapters[0]).ipaddresses[0] [stdout =====>] : fe80::215:5dff:fedc:eb17
[stderr =====>] : SSH binary not found, using native Go implementation &{{{<nil> 0 [] [] []} docker [0x83feb0] 0x83fe60 [] 0s} fe80::215:5dff:fedc:eb17 22 <nil> <nil>} About to run SSH command: sudo hostname minikube && echo “minikube” | sudo tee /etc/hostname Error dialing TCP: dial tcp [fe80::215:5dff:fedc:eb17]:22: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has faile d to respond.
Anything else do we need to know: Minikube was running successfully with External Network switch. But this configuration cannot be used in our office network since it conflicts with existing IPs
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 16 (2 by maintainers)
@briansmith Just in case it might help. I had this exact same issue (and was getting very frustrated!)…
i would run the command (
minikube start --vm-driver=hyperv --hyperv-virtual-switch="Default Switch" --v=7) at first it would pick up the IPV4 address and issue the SSH commands… after a few commands it would seem to lose the IPV4 address and only get the IPV6 address (which then wouldnt accept SSH). Ever time I ran it it would fail at a different point, the IPV4 address seemingly just randomly dropping off. The annoyance was that the script constantly asked for the IP which seemed to be in a state of flux.The solution for me (and I hope this solves it for a few other people) was to not use WIFI. When i used a wired/ethernet connection all those problems went away and it all worked fine and minikube installed without a problem. I dont know if its something to do with HyperV / Default Switch and wireless network cards but I would advise trying with a wired connection.
Hope this helps you / others who might be seeing this.
I have the same problem with IPv4, so use of IPv6 should not be an issue:
With native client result is the same
I have the same problem. When I start in Git bath with admin with:
finally got:
… disconnected from corporate VPN (cisco) and was able to start minikube. Thanks!
This likely warrants no action, but I’m commenting here in case it helps someone else. I faced this exact same problem on Minikube v1.6.2. I tried explicitly specifying the “Default Switch”, an internal switch, and an external switch and also not specifying a switch at all: none of these made a difference.
The culprit turned out to be that I was connected to a corporate VPN (using the Cisco client) that is notorious for causing internet connection issues with a variety of programs. Once in a while it causes local network issues too. This instance may be related to #1265 (had a hard time following that issue).
You should use an external network, an internal network with a dhcp server or the new default switch
On Monday, March 5, 2018, Harsh Kumar notifications@github.com wrote:
–
Gerard Braad | http://gbraad.nl [ Doing Open Source Matters ]