-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
hyperv-virtual-switch; startup hangs indefinitely trying to get ip address #2751
Comments
I have figured out that it is something to do with the ps command: If I remove the array index identifier from ipaddresses, it will successfully return the array object If I tell it to give me the item at index 1 it will give the mac address: But giving it the index at 0 the result is an empty string. Very bizarre. |
I have a potential solution. If you pass the -Command flag and wrap the command in the quotes you get the expected output
I could clone the project and change the command and if it works make a pull request. However I haven't seen any instructions on how to build the windows executable. Would anyone be able to help me with what steps I should take to do this? @gbraad I have seen that you are a collaborator and commented on several issues. What do you think about this issue? FYI Powershell Version 5.1.16299.251 |
I cloned the repo and changed the following code in on line 28 of /vendors/docker/machine/drivers/hyperv/powershell.go Orig: New: I try to make on a Ubuntu VM and the make fails because it can't find the package "context" referenced in /vendor/k8s.io/apimachinery/pkg/util/wait/wait.go |
Just wanted to Bump this up. I am still experiencing this issue and haven't got any response. |
I haven't dug as deep as jwgain0, but I seem to be experiencing the same issue. Whenever I run
|
+1, even i'm stuck with the same error |
+1 same issue. I am using this cmd: |
@jwgain0 @beingamarnath @cwroble - I had issues with 0.27 (have yet to try 0.28 or 0.28.1) so ended up downgrading to 0.26.2 and after the initial VM creation I let the script run for a while, stop the script, VM and then change the virtual switch back to a local switch. Then again run "minikube start" with no arguments and everything works correctly. Ideally the switch will not be required and just optional as mentioned in the documentation but it is a required argument and the script checks that it is external at VM creation time. |
+1 |
@jwgain0 - Do you mind attaching the output of "minikube start -v10" and "minikube logs"? Thanks! |
Be sure you can be assigned an IP address on an internal or private virtual switch. hyper-v does not provide a dhcp server on these networks, unless you run one yourself, with the exception of the Default Switch(but this has other shortcomings). The external switch bridges a network adapter. So when on Wireless, use the wirless adapter as bridge, and vice versa. The network you attach to has to provide the DHCP server for assigning an address. Be aware, using a VPN can cause issues as they tend to route all, which means the DHCP request will not be received. |
Minikube at Hyper-V should have its own, External, Virtual Switch, based on your main (real) Intel Adapter. Create at PowerShell:
Then, reference that Hyper-V switch at the minikube start command:
Or, better still, add such to the
(I experienced similar error messages when accidentally using an Internal Virtual Switch.) |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
+1 OS: Windows 10 - 1803
|
Anyone any update on this? |
I have also hit this issue - I have applied various proposed fixes - including moving my executables and folders from my D drive to my C drive. Creating various vswitch (I know my vswitch "external" is working as I have a working HYPERV image running an SNMP evaluation on it - and that is reaching out into my wider network). It is a shame really as I really wanted to get a feel for Kubernetes. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@AdamDadvar: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Minikube Version: 0.26.1
OS: Windows 10 - 1709
VM Driver: hyperv
ISO: minikube-v0.26.0.iso
I am having a similar problem #2425. I am searching through open issues to see if anyone has a work around for my problem. Attempting to use Windows 10/Hyper-v. I have setup a Virtual Switch (external network with Ethernet network adapter). I am using release 0.25.2 to get around #2634. (Update: This morning I updated to 0.26.1)
I run the following command in powershell:
minikube start --vm-driver="hyperv" --memory=4096 --hyperv-virtual-switch="My Virtual Switch" --v=7 --alsologtostderr
The script goes along for while. It successfully creates the minikube VM. But then it gets to a point where it continually polls for the vm's state and ip address. It appears the command to get the network adapter IP address returns nothing. But command to retrieve the state returns "Running". It does this several times until it just hangs indefinitely.
If I then open another powershell instance and do kubectl cluster-info, it initially says Kubernetes master is running at http://localhost:8080 but then receives an error stating it couldn't connect to target machine because connection has been actively refused.
Update: Minikube ssh does not work. But if I connect to the VM via Hyper-V Manager, I can execute curl command and get a webpage, so it does have network connectivity with my Virtual Switch
The text was updated successfully, but these errors were encountered: