-
Notifications
You must be signed in to change notification settings - Fork 476
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
Hyper-V virtual networking; NAT and IPv6 #418
Comments
I think this may be related to my problem as well... Th only difference is that when i run start it never gets past this:
Using hyperv manager, i can Connect... to the vm and watch it boot all the way to the root prompt: Also, inside of hyperv manager i can see an IPV6 address assigned under the network tab... But then it just hangs. |
@lucastheisen we have since provided a way to select the networking switch https://docs.openshift.org/latest/minishift/getting-started/setting-up-driver-plugin.html#hyper-v hopefully this helps. Do you have Docker for Windows installed? |
@gbraad, I did set up my network switch in that fashion. Created one according to the instructions you linked to on the Microsoft page... The only difference being that I created it as an internal Network with NAT... |
@LalatenduM @hferentschik one of the things we can do on startup is to throw an error when the host has two (or no) virtual switches, and of course report which one is used |
@lucastheisen The text mentions "set the environment variable HYPERV_VIRTUAL_SWITCH to the name of the external virtual switch" Modifying the first part by explicitly mentioning "an External Virtual Switch" (#1051) At the moment we do not support NAT or Internal, as they do not provide the necessary DHCP functionality. |
@gbraad, I did see that, but thought this issue was about getting NAT support, so I hoped that little please was outdated (given that docker for Windows has this feature). Without NAT, my team is out of luck, as corporate won't assign ips to non-corporate managed images. If I keep watch on this ticket will it let us know when NAT is supported? |
Is NAT support expected for v1.4.0? |
It is currently not on the roadmap to be solved. At the moment we detect
it. The solution is also related to the virtual network stack of HyperV and
improvements to this is expected (although not confirmed).
…--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]
|
Ok thank you for the update. |
@LalatenduMohanty @praveenkumar @hferentschik @budhrg I think we need to consider including this to the current milestone... Even though I might not be able to work on it instantly, we need to do something about this ASAP. |
@gbraad , are you saying I should try setting the eth0 in the minishift instance to match the docker config as a workaround? Or are you commenting so that the other members of the project have a way to begin to work on NAT support? |
You can assign an IP address to the VM in the Docker NAT range, and this will work. It might however clash with the IP addresses that are handed out already to a container, but generally you can do this. As one of the solutions we are working on #1316, and coordinate with Minikube to get a general solution. We are still looking into other solutions. |
@lucastheisen We have worked on a static IP option which allows you to use the NAT functionality. Please see #1316 (comment) for more information. Closing this issue |
Added #1500 to look into the IPv6 support, as this needs to be addressed in general (across all hypervisors) |
When a VM is started on Hyper-V, connected to a virtual switch that is configured for NAT, the virtual machine will not receive an IPv4 address (as no DHCP server runs), but gets assigned a IPv6 address. Eg. when using 'DockerNAT'.
However, this leads to unexpected behaviour. The VM is 'Running', but SSH can not connect (and the process seems to be hanging). On a separate cmd prompt the following can be seen:
Related to: #417
The text was updated successfully, but these errors were encountered: