Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Minikube version (use minikube version): v0.16.0
Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName): hypervcat ~/.minikube/machines/minikube/config.json | grep ISO): v1.0.6What happened:
I downloaded latest minikube version and started it with hyperv driver.
I received the following error:
Error dialing TCP: dial tcp [fe80::215:5dff:fe54:b5a7]:22: connectex: A socket operation was attempted to an unreachable host.
What you expected to happen:
Minikube starts
How to reproduce it (as minimally and precisely as possible):
Download minikube for windows and start with the following comand:
minikube start --vm-driver hyperv --v 999
Log:
Starting local Kubernetes cluster...
Downloading Minikube ISO
84.07 MB / 84.07 MB [==============================================] 100.00% 0s
Found binary path at minikube.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:56093
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minikube) Calling .GetMachineName
(minikube) Calling .DriverName
Creating CA: C:\Users\Uladzimir_Shelhunou\.minikube\certs\ca.pem
Creating client certificate: C:\Users\Uladzimir_Shelhunou\.minikube\certs\cert.pem
Running pre-create checks...
(minikube) Calling .PreCreateCheck
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Ge
t-Command Get-VM).ModuleName
(minikube) DBG | [stdout =====>] : Hyper-V
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("Hyper-V Administrators")
(minikube) DBG | [stdout =====>] : False
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
(minikube) DBG | [stdout =====>] : True
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (Get-VMSwitch).Name
(minikube) DBG | [stdout =====>] : minikube
(minikube) DBG | DockerNAT
(minikube) DBG |
(minikube) Calling .GetConfigRaw
(minikube) DBG | [stderr =====>] :
Creating machine...
(minikube) Calling .Create
(minikube) Downloading C:\Users\Uladzimir_Shelhunou\.minikube\cache\boot2docker.iso from file://C:/Users/Uladzimir_Shelhunou/.minikube/cache/iso/minikube-v1.0.6.iso...
(minikube) Creating SSH key...
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (Get
-VMSwitch).Name
(minikube) Creating VM...
(minikube) Using switch "minikube"
(minikube) DBG | [stdout =====>] : minikube
(minikube) DBG | DockerNAT
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([S
ecurity.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
(minikube) DBG | [stdout =====>] : True
(minikube) DBG |
(minikube) Creating VHD
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive New-VHD -Path 'C:\Users\Uladzimir_Shelhunou\.minikube\machines\minikube\fixed.vhd' -SizeBytes 10MB -Fixed
(minikube) DBG | [stdout =====>] :
(minikube) DBG |
(minikube) DBG | ComputerName : EPBYMINW2892
(minikube) DBG | Path : C:\Users\Uladzimir_Shelhunou\.minikube\machines\minikube\fixed.vhd
(minikube) DBG | VhdFormat : VHD
(minikube) DBG | VhdType : Fixed
(minikube) DBG | FileSize : 10486272
(minikube) DBG | Size : 10485760
(minikube) DBG | MinimumSize :
(minikube) DBG | LogicalSectorSize : 512
(minikube) DBG | PhysicalSectorSize : 512
(minikube) DBG | BlockSize : 0
(minikube) DBG | ParentPath :
(minikube) DBG | DiskIdentifier : CAA012DC-8ACE-43FC-B682-C14BCA057F0F
(minikube) DBG | FragmentationPercentage : 0
(minikube) DBG | Alignment : 1
(minikube) DBG | Attached : False
(minikube) DBG | DiskNumber :
(minikube) DBG | Number :
(minikube) DBG |
(minikube) DBG |
(minikube) DBG |
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | Writing magic tar header
(minikube) DBG | Writing SSH key tar header
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Convert-VHD -Path 'C:\Users\Uladzimir_Shelhunou\.minikube\machines\minikube\fixed.vhd' -DestinationPath 'C:\Users\Uladzimir_Shelhunou\.minikube\machines\minikube\disk.vhd' -VHDType Dynamic -DeleteSource
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Resize-VHD -Path 'C:\Users\Uladzimir_Shelhunou\.minikube\machines\minikube\disk.vhd' -SizeBytes 20000MB
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive New-VM minikube -Path 'C:\Users\Uladzimir_Shelhunou\.minikube\machines\minikube' -SwitchName 'minikube' -MemoryStartupBytes 2048MB
(minikube) DBG | [stdout =====>] :
(minikube) DBG | Name State CPUUsage(%) MemoryAssigned(M) Uptime Status Version
(minikube) DBG | ---- ----- ----------- ----------------- ------ ------ -------
(minikube) DBG | minikube Off 0 0 00:00:00 Operating normally 8.0
(minikube) DBG |
(minikube) DBG |
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Set-VMProcessor minikube -Count 2
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Set-VMDvdDrive -VMName minikube -Path 'C:\Users\Uladzimir_Shelhunou\.minikube\machines\minikube\boot2docker.iso'
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Add-VMHardDiskDrive -VMName minikube -Path 'C:\Users\Uladzimir_Shelhunou\.minikube\machines\minikube\disk.vhd'
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) Starting VM...
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Start-VM minikube
(minikube) DBG | [stdout =====>] :
(minikube) Waiting for host to start...
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] :
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] : fe80::215:5dff:fe54:b5a7
(minikube) DBG |
(minikube) Calling .GetConfigRaw
(minikube) DBG | [stderr =====>] :
(minikube) Calling .DriverName
(minikube) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(minikube) Calling .GetState
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
Detecting operating system of created instance...
(minikube) DBG | [stderr =====>] :
Waiting for SSH to be available...
Getting to WaitForSSH function...
(minikube) Calling .GetSSHHostname
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
(minikube) DBG | [stdout =====>] : Running
(minikube) DBG |
(minikube) DBG | [stderr =====>] :
(minikube) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
(minikube) DBG | [stdout =====>] : fe80::215:5dff:fe54:b5a7
(minikube) DBG |
(minikube) Calling .GetSSHPort
(minikube) DBG | [stderr =====>] :
(minikube) Calling .GetSSHKeyPath
(minikube) Calling .GetSSHKeyPath
(minikube) Calling .GetSSHUsername
SSH binary not found, using native Go implementation
&{{{<nil> 0 [] [] []} docker [0xdc8cc0] <nil> []} fe80::215:5dff:fe54:b5a7 22 <nil>}
About to run SSH command:
exit 0
Error dialing TCP: dial tcp [fe80::215:5dff:fe54:b5a7]:22: connectex: A socket operation was attempted to an unreachable host.
Have you tried specifying the hyperv-virtual-switch flag to minikube start?
Can you also verify that the minikube VM has network access by running ping or curl inside the minikube VM? minikube ssh curl google.com
I faces a similar problem.
There is result of network access checking :
PS C:\> .\minikube ssh curl google.com
E0302 15:20:51.758005 9240 ssh.go:41] Error attempting to ssh/run-ssh-command: dial tcp [fe80::215:5dff:fe6f:910a]:22
: connectex: A socket operation was attempted to an unreachable network.
I have the same issue, hyperv windows 10, with a new network switch setup. Im getting:
minikube start --vm-driver=hyperv --v 7 --hyperv-virtual-switch mainvs

Using this openssh:
https://github.com/PowerShell/Win32-OpenSSH
@r2d4 - Is there a way to force minikube to use the built in go ssh implementation?
It is forced in the latest version of minikube, v0.17.1
This version has this PR in it: https://github.com/kubernetes/minikube/pull/1141
Strange, from my output it seems like its still trying to grab my 3rd party external ssh 'C:\ssh-cli\ssh.exe'. If I uninstall the external ssh it just hangs on 'waiting for ssh'. Doesn't seem to even attempt to use the baked in go ssh.
Edit: I was able to get it working using the built in ssh by completely removing any ssh binaries from my computer and from the CLI tool I was using (Cmder has a built in ssh client).
I confirm I have the same issue with minikube v0.21.0
it won't take built'in ssh in first place, and try to use the one I had with MobaxTerm.
SSH binary not found, using native Go implementation
It works by remooving the ssh.exe from my MobaXterm, but this can't be a viable solution..
Hey,
I'm also facing the same issue in minikube. 0.22.2
Same as above on windows 10 using hyperv driver... minikube v0.22.3
@dancingfrog ,
1) Create a external switch. I believe you are using your laptop. So once installed please see the network adapter to check that your switch is listed with network access.
2) Get the latest version of kubectl also.
I did these two things and I was able to get Minikube working
Same error here :
[stderr =====>] :
I1207 15:34:54.532197 6320 cluster.go:83] Machine state: Running
Waiting for SSH to be available...
Getting to WaitForSSH function...
[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 minikube ).networkadapters[0]).ipaddresses[0]
[stdout =====>] : fe80::215:5dff:fe28:108
[stderr =====>] :
Using SSH client type: native
&{{{<nil> 0 [] [] []} docker [0x83feb0] 0x83fe60 [] 0s} fe80::215:5dff:fe28:108 22 <nil> <nil>}
About to run SSH command:
exit 0
Error dialing TCP: dial tcp [fe80::215:5dff:fe28:108]:22: connectex: Une op茅ration a 茅t茅 tent茅e sur un r茅seau impossible 脿 atteindre.
Error dialing TCP: dial tcp [fe80::215:5dff:fe28:108]:22: connectex: Une op茅ration a 茅t茅 tent茅e sur un r茅seau impossible 脿 atteindre.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close
Was this ever resolved or closed by the bot?
This was closed by bot
/remove-lifecycle rotten
FYI, I had a OpenSSH-Win64\ssh.exe in PATH on windows. Removing that exe resolved the issue.