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 start: VM IP address not resolving on v.0.15 #1000

Closed
Rurouni opened this issue Jan 13, 2017 · 6 comments
Closed

minikube start: VM IP address not resolving on v.0.15 #1000

Rurouni opened this issue Jan 13, 2017 · 6 comments
Labels
co/hyperv HyperV related issues kind/bug Categorizes issue or PR as related to a bug. os/windows

Comments

@Rurouni
Copy link

Rurouni commented Jan 13, 2017

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

Minikube version (use minikube version): v0.15.0

Environment:

  • OS: Win10(1607)
  • VM Driver: hyper-V
  • Docker version: 1.13.0-rc6, build 2f2d055
  • Install tools: minikube
  • Others: none

What happened:
After switching to minikube 0.15 creating VM from scratch hangs in a loop trying to get VM IP address, logs keep writing that:C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM minikube ).networkadapters[0]).ipaddresses[0]
Full command that I am running:
minikube start --kubernetes-version="v1.5.1" --vm-driver="hyperv" --show-libmachine-logs --alsologtostderr --hyperv-virtual-switch "Minikube" --memory 4096 --v=7
Hyper-v switch is configured as internal with internet sharing and
same works if I delete VM and return back to minikube 0.14, so I think it's something to do with the new iso
What you expected to happen:
minikube start works

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

  1. delete minikube VM and .minikube folder if running
  2. minikube start --kubernetes-version="v1.5.1" --vm-driver="hyperv" --show-libmachine-logs --alsologtostderr --hyperv-virtual-switch "Minikube" --memory 4096 --v=7`
@r2d4 r2d4 added co/hyperv HyperV related issues kind/bug Categorizes issue or PR as related to a bug. os/windows labels Jan 13, 2017
@BillyD73
Copy link

I am getting the same issue, Win 10 hyperv newest docker and kube

@rikbosch
Copy link

I'm experiencing the same issue. ifconfig eth0 shows an ip is being assigned by dhcp in the vm.

@mircohacker
Copy link

I am getting the same issue.
Additionl information:

  • Host can ping minikube vm and vice versa
  • Vm has internet access

Environment:

  • OS: Win10(1511)
  • VM Driver: hyper-V
  • Docker version: 1.13.0-beta39 (9861)
  • Install tools: minikube

@Alexander-Kiselyov
Copy link

Alexander-Kiselyov commented Feb 6, 2017

Same issue, reproduced with both fabric8's gofabric8 tool (v0.4.113) and Minikube launcher itself (Win10, Hyper-V).
VM starts, I'm able to connect to it with Hyper-V Manager, but (( Get-VM minikube ).networkadapters[0]).ipaddresses[0] yields nothing.


Apparently, no IPs were assigned to the VM, so I was able to overcome it and proceed past this step by changing virtual switch settings (namely changing "Internal network" to "External network" and assigning it to a real network card):
ip
I must have missed "Connection type" step in this guide in Hyper-V setup guide somehow :(

Another viable option: these steps.

@Rurouni
Copy link
Author

Rurouni commented Feb 7, 2017

I have just tested v0.16 with VSwitch set to external network instead of internal with internet sharing and it worked fine, so I am closing this issue

@Rurouni Rurouni closed this as completed Feb 7, 2017
@fenkner
Copy link

fenkner commented Mar 16, 2017

I was having this problem, pulling my hair out and none of the explanations were helping me until I noticed @Alexander-Kiselyov last point in his posting, "Another viable option". I followed that link then I realized what I had done wrong. When you setup a virtual switch make sure you set it to PRIVATE and then inside that switch select EXTERNAL. I was selecting external virtual switch with external network and this did not work. I followed the rest of the instructions by deleting my minikube vm and blowing away the .minikube folder in my home directory. I then ran minikube start and it all worked perfectly! Finally!! Thank you @Alexander-Kiselyov and @aaron-prindle !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/hyperv HyperV related issues kind/bug Categorizes issue or PR as related to a bug. os/windows
Projects
None yet
Development

No branches or pull requests

7 participants