Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minikube on win10 with Hyperv not started. #1988

Closed
stefanstranger opened this issue Sep 20, 2017 · 13 comments
Closed

minikube on win10 with Hyperv not started. #1988

stefanstranger opened this issue Sep 20, 2017 · 13 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. os/windows

Comments

@stefanstranger
Copy link

BUG REPORT:

When starting minikube on Windows 10 with Hyper-V the start hangs on "starting vm".

Command:
minikube start --vm-driver=hyperv --hyperv-virtual-switch=External -v 10

Output:
Starting local Kubernetes v1.7.5 cluster...
Starting VM...
[executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube
).state
[stdout =====>] : Running

[stderr =====>] :
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 minikub
e ).networkadapters[0]).ipaddresses[0]
[stdout =====>] :
[stderr =====>] :
Error getting ssh command 'exit 0' : IP not found
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 minikub
e ).networkadapters[0]).ipaddresses[0]
[stdout =====>] :
[stderr =====>] :
Error getting ssh command 'exit 0' : IP not found

Please provide the following details:

Environment:

  • Windows 10
  • Hyper-V
  • External Virtual Switch HyperV
  • minikube version: v0.22.1
@richardjharding
Copy link

so the issue with missing IP seems to be fixed with 0.22.2 but that still seems to have additional issues see #1945 and #1981

@stefanstranger
Copy link
Author

I installed version v0.22.2 and I'm still getting the same error.

@fejta-bot
Copy link

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.

Prevent issues from auto-closing with an /lifecycle frozen comment.

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

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 6, 2018
@ohdihe
Copy link

ohdihe commented Feb 8, 2018

Getting the same error.
minikube version: v0.25.0

Docker-machine has no errors either.
Any help would be greatly appreciated.

@DovydasNavickas
Copy link

Same here:

minikube version: v0.25.0

@paulorobles
Copy link

I'm seign the same behavior with minikube v0.25.0

Starting local Kubernetes v1.9.0 cluster...
Starting VM...
[executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM minikube ).state
[stdout =====>] : Running

[stderr =====>] :
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 =====>] :
[stderr =====>] :
Error getting ssh command 'exit 0' : IP not found

@gbraad
Copy link
Contributor

gbraad commented Mar 6, 2018

Please make sure you can have an IP address assigned on the external switch. Since it shows 'IP not found' it does not seem to get an answer for DHCP. Make sure the external switch is active on the same interface you are connected to on the network, or try using the "Default switch" instead.

@paulorobles
Copy link

I did now i'm getting a different error... im runing this command on Powershell as admin.
PS> .\minikube.exe start --vm-driver=hyperv --hyperv-virtual-switch=kubernetes -v 10
the error is:
Error setting container-runtime options during provisioning ssh command error:
command : sudo systemctl -f restart crio
err : Process exited with status 1
output : Job for crio.service failed because the control process exited with error code.
See "systemctl status crio.service" and "journalctl -xe" for details.

Is there a way to troubleshoot from the minikube vm ?

@fejta-bot
Copy link

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

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 5, 2018
@gbraad
Copy link
Contributor

gbraad commented Apr 13, 2018

Closing issue. If this is still a problem, open a new issue against the latest version

@gbraad gbraad closed this as completed Apr 13, 2018
@adamgit
Copy link

adamgit commented Jan 9, 2019

Same with version 0.32

... in my case I hadn't realisd there were multiple ethernet cards in my machine (built-in one on the motherboard I'd forgotten was there), and didn't notice that HyperV-Manager was by default creating switches on the built-in, disconnected, never-used, ethernet card.

This is still a bug, IMHO. Fixes needed:

  1. Don't hang on the "Starting VM" stage! That should not happen! Minikube should at least output a message after - say - 30 seconds "Cannot find IP address."
  2. Along with that warning message, minikube should provide some simple advice, e.g. when running the hyperv driver: "Have you created a Virtual Switch in HyperV-Manager, and is it configured on the correct ethernet card that connects you to the internet?"

@medchkir
Copy link

I have the same problem with v0.34.
Any one have an idea how to fix it ?

@thavlik
Copy link

thavlik commented Mar 30, 2019

Same problem. My machine has two network adapters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. os/windows
Projects
None yet
Development

No branches or pull requests