docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 285 forks source link

Enabling Hyper-V feature turns my wi-fi off #139

Closed londoncalling closed 7 years ago

londoncalling commented 7 years ago

@rneugeba @friism I'm adding this issue per feedback we got through the docs, docs issue #100 "Feedback for: docker-for-windows/index.md" from https://github.com/shazChaudhry

Expected behavior

Install Docker for Windows (which enables Hyper-V), or enable Hyper-V manually, and all works, with Wi-Fi enabled.

Actual behavior

I am using Docker v1.12.1 on a Windows 10 laptop. Enabling Hyper-V feature turns my wi-fi off. How do I ensure that my wi-fi stays on while using Hyper-V features?

We need this information from the user:

Information

rn commented 7 years ago

@shazChaudhry the issue you reported on https://github.com/docker/docker.github.io/issues/100 has been moved here.

We enable Hyper-V on installation if it is not enabled. This should not interfere with your networking setup and the rest of the installation does not touch the network interface either.

Could you describe in a bit more details what's happening and how to reproduce it, what the version of Windows is, you are using etc. Could you please upload diagnostics and provide the ID?

Thanks

simonferquel commented 7 years ago

There are known issues with some old wireless device drivers and Hyper-V. Can you try to update your wifi drivers ?

tommiehansen commented 7 years ago

Try running a repair on your default connection, if that fails try it on dockerNAT.

If all fail uninstall Docker and run a repair on your default connection. Then re-install Docker.

shazChaudhry commented 7 years ago

I have done windows updates, uninstalled and installed Docker several time. However, my wi-fi is still turned off every time hyper-v feature is enabled. wi-fi drivers are also up to date.

I have just done:

  1. Got docker for windows (beta) from https://docs.docker.com/docker-for-windows/
  2. Installed Docker (1.12.2, build bb80604, experimental), enabled Hyper-V feature, double checked that Virtualization was enabled and waited for Docker to start. As expected, wi-fi was automatically turned off.
  3. To turn wi-fi back on and to connect to internet, I have disabled "vEthernet (DockerNAT)"
  4. Uploaded diagnostic and feedback: 4F7DC077-55A5-43DC-974E-2A86B75AB998/2016-10-20_15-06-18
  5. Host info: Windows 10 Enterprise; Version = 1511; OS Build = 10586.633, Dell Latitude E5250

Please let me know if there is any other info you need.

londoncalling commented 7 years ago

@yongshin thanks, I'll figure out a place to include this in the troubleshooting docs and link to it from other relevant topics

rn commented 7 years ago

@shazChaudhry it looks like you had VirtualBox installed and it didn't install cleanly. There are still some VirtualBox network adapters lingering on the system. I'm closing this issue, for now. Please re-open if, after un-installing VirtualBox the issue persists. Thanks

ladvishal1985 commented 7 years ago

I am facing the same issue. I downloaded Docker(stable windows) from https://docs.docker.com/docker-for-windows/install/. Post installation Hypervisor is enabled which leads to Windows restart. Then the wifi never starts. I tried uninstalling the Docker and disabled the Hyper-V which leads to Windows restart and again the wifi works normally. I tried this twice. I have Windows 10 Enterprise. Again post installation I am unable to start docker I get an error message that asks me to enable Virtual Technolgy from BIOS(I am not sure if this is expected behavior)

Thanks

londoncalling commented 7 years ago

@ladvishal1985 Disabling Hyper-V would cause problems, as it must be enabled.

Can you read through these topics and make sure you are following the protocols?

[What to know before you install](https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enabled

Hyper-V (in Troubleshooting) (includes a link to how to enable Hyper-V manually if this is necessary

Virtualization must be enabled (in Troubleshooting)

Also, make sure you do not have Virtual Box installed or enabled.

@rneugeba @friism can you help? This issue seems to be re-surfacing.

friism commented 7 years ago

The networking clean-up scripts from Microsoft are another good resource: https://github.com/Microsoft/Virtualization-Documentation/tree/master/windows-server-container-tools/CleanupContainerHostNetworking

kenchilada commented 7 years ago

I had the same problem. I had a "External Virtual Switch" that functioned, and my docker host got an IP from DHCP on the LAN. When WIFI is enabled, it all breaks. Seems a problem with bridging? I read elsewhere that I needed to remove external switch and create a NAT virtual switch with "New-NetNat". This actually worked fine until the next time I rebooted.

Hyper-V feels so fragile, I feel like VirtualBox was a better option. We were just wanting to find a stable environment for developers to work in.

kenchilada commented 7 years ago

Followup to previous... if I reboot it starts working again.

In case it helps anyone, I followed this guide to setup the NAT switch... http://www.thomasmaurer.ch/2016/05/set-up-a-hyper-v-virtual-switch-using-a-nat-network/

Then I stood up a dhcp server on that network to assign ipv4 addresses.

gkorndorffer commented 7 years ago

I'm experiencing the same issues, Windows 10, no Virtualbox drivers... Virtualization is enabled, hyper-v is enabled...but when I install Docker, all network adapters get disabled

evra commented 7 years ago

I solved this issue by enabling "Shared Usage" of the WiFi adapter (Docker restart is required).

dkouzhel commented 6 years ago

Try to disable "LAN / VLAN Switch" in BIOS. The laptop automatically switch off WLAN with other online connection (ethernet or vlan or vpn). Also this feature may be exist in WLAN "Driver Properties".

sukumarsk commented 6 years ago

I faced the same issue and tried all the above suggestions.

Finally , I disabled the DocketNAT adapter (Control Panel\Network and Internet\Network Connections) Connected back WiFI and at command prompt, issued below commands ipconfig /release ipconfig /renew

Enabled DockerNAT.

Now I am able to connect WiFi and also DockerNAT,

sukumarsk commented 6 years ago

Further to my previous comment, I researched little more and found solution at

https://superuser.com/questions/1100336/issue-with-wifi-adapter-with-docker-windows-native-hyper-v

I have chosen option #2 and it resolved my issue.

Hope this helps.

benmccallum commented 6 years ago

Had this on my Dell XPS13 9360. Upgrade from Windows Home to Pro, never had any other virtualization software on this laptop. Installed Docker for Windows, was prompted that they'd enable Hyper-V and accepted. After reboot no wi-fi connection.

Played around with a few of the suggestions above but couldn't get bridges to work. Also enabled sharing but nothing. Ran the network troubleshooter and no problems found. In the end for some reason clicked the Network PC icon in the system tray and up came the list of wi-fi networks in range. Clicked the one I usually use and it connected...

Thought that was just a fluke but I've restarted Docker, still works, restarted the laptop, still works, updated Docker, still works. Yet to run anything in there, but seems promising so far.

TL;DR; I guess it seems like it had forgot about my Wi-Fi network creds because I was going over a new adapter I guess.

olivierlevy commented 5 years ago

Disable the vEthernet (default Switch) Open Hyper-V Manager, select your computer on the left, you should have the possibilities to create the virtual network switch, but if you already have DockerNAT change from Internal to External network and select your wifi adapter

jerrychong25 commented 5 years ago

Disable the vEthernet (default Switch) Open Hyper-V Manager, select your computer on the left, you should have the possibilities to create the virtual network switch, but if you already have DockerNAT change from Internal to External network and select your wifi adapter

Hi @olivierlevy,

After follows your settings, I could connect to my WIFI.

However, after reboot, I need to configure same steps every time I reboot my laptop.

Is there any ways to permanently fixes this issue?

Thanks.

olivierlevy commented 5 years ago

Hi @jerrychong25 , unfortunately, yes, you shall add a shortcut in you desktop to quickly go to your adapter ; or create or find a software that does the changes for you. My company made this kind of software that solved the issue, but I cannot share this :(

jerrychong25 commented 5 years ago

Hi @jerrychong25 , unfortunately, yes, you shall add a shortcut in you desktop to quickly go to your adapter ; or create or find a software that does the changes for you. My company made this kind of software that solved the issue, but I cannot share this :(

Hi @olivierlevy, it is pretty annoying to turn off everytime after reboot.

Hope anyone that can share this software.

docker-robott commented 4 years ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked