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 fails to start start on Hyper-V with Windows Server 2016 or Windows 10 due to KVP issues #1598

Closed
alexpilotti opened this issue Jun 16, 2017 · 6 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. os/windows

Comments

@alexpilotti
Copy link
Contributor

alexpilotti commented Jun 16, 2017

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Minikube version (use minikube version): v0.19.1

Environment: Hyper-V

  • OS (e.g. from /etc/os-release): Windows Server 2016
  • 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.18.0.iso
  • Install tools:
  • Others:

What happened:

When starting Minikube, it will hang waiting for retrieving an IP address via KVP (e.g. Get-VMNetworkAdapter minikube). An IP address is correctly assigned in the VM, this can be verified by logging in via ssh using the docker / tcuser credentials.

The following messages are visible in the "minikube start" verbose output:

(( 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

This issue is due to outdated LIS modules / KVP daemon in the ISO.

What you expected to happen:

minikube should retrieve an IP address and proceed with the deployment.

How to reproduce it (as minimally and precisely as possible):

.\minikube.exe start --vm-driver=hyperv --hyperv-virtual-switch=<your_external_switch> -v 9

Anything else do we need to know:

This issue is common on any Linux distro and can be fixed by updating the Kernel used in the ISO. This will include recent LIS modules that fix the issue.

@alexpilotti alexpilotti changed the title Minikube fails to start start on Hyper-V with Windows Server 2016 due to KVP issues Minikube fails to start start on Hyper-V with Windows Server 2016 or Windows 10 due to KVP issues Jun 16, 2017
@r2d4 r2d4 added iso/minikube-iso kind/bug Categorizes issue or PR as related to a bug. os/windows labels Jun 16, 2017
@alexpilotti
Copy link
Contributor Author

alexpilotti commented Jun 16, 2017

Update: building a minikube ISO from source and using it with "minikube start" works:

.\minikube.exe start --vm-driver=hyperv --hyperv-virtual-switch=External \
--iso-url=https://<your_url_here>/minikube.iso -v 9

The Linux kernel version now is 4.9.13, which includes the required LIS fixes.

Would it be possible to release a new default ISO?

@r2d4
Copy link
Contributor

r2d4 commented Jun 16, 2017

@alexpilotti we've released a 0.19.1 image, however there hasn't been a minikube release with it yet
It will be the default in the next version of minikube.

https://storage.googleapis.com/minikube/iso/minikube-v0.19.1.iso

@alexpilotti
Copy link
Contributor Author

alexpilotti commented Jun 16, 2017

@r2d4 great thanks, I just tested it performing multiple start / delete runs and I noticed a race condition behaviour in LIS that causes the same failure on Hyper-V in some cases.

Is there already a plan to switch to BUILDROOT_BRANCH 2017.5 in the ISO? The kernel version is 4.11.5.

@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 Dec 28, 2017
@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 Jan 27, 2018
@fejta-bot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. 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

4 participants