{"id":10142,"date":"2019-06-18T07:36:49","date_gmt":"2019-06-18T05:36:49","guid":{"rendered":"http:\/\/159.69.82.204\/win\/?p=10142"},"modified":"2024-10-05T18:26:42","modified_gmt":"2024-10-05T16:26:42","slug":"windows-10-v1903-ip-resolution-bug-in-hyper-v-switch","status":"publish","type":"post","link":"https:\/\/borncity.com\/win\/2019\/06\/18\/windows-10-v1903-ip-resolution-bug-in-hyper-v-switch\/","title":{"rendered":"Windows 10 V1903: IP resolution bug in Hyper-V switch"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"float: left; margin: 0px 10px 0px 0px; display: inline\" src=\"http:\/\/www.borncity.com\/blog\/wp-content\/uploads\/2015\/01\/win102.jpg\" width=\"58\" align=\"left\" height=\"58\">[<a href=\"https:\/\/www.borncity.com\/blog\/2019\/06\/18\/windows-10-v1903-ip-zuteilungs-bug-in-hyper-v-switch\/\" target=\"_blank\" rel=\"noopener noreferrer\">German<\/a>]In Windows 10 May 2019 Update (version 1903) and possibly also in October 2018 Update (version 1809) there is a bug in the 'Default Switch' which leads to issues with Windows Sandbox, Mobile Hotspot or with Windows Containers &#8211; they do not work. The reason for this is that the default switch probably does not get an IP address. The reason are updates from Windows 10 and from the hardware manufacturer's system updater. But there is a workaround.<\/p>\n<p><!--more--><\/p>\n<h2>First reports<\/h2>\n<p>Frank Lesniak posted this for the first time in the feedback hub for Windows Insiders. I myself became aware of the problem a few days ago via the following tweet.&nbsp; <\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"de\">\n<p lang=\"en\" dir=\"ltr\">People on <a href=\"https:\/\/twitter.com\/hashtag\/Windows10?src=hash&amp;ref_src=twsrc%5Etfw\">#Windows10<\/a> 1903 and 1809 &#8211; please try using Hyper-V, (Windows) Mobile Hotspot, Windows Sandbox, or Windows Containers? Do they work?<\/p>\n<p>I bet they don't! Or at least they don't for me. See details here &amp; please RT\/upvote if you are seeing the same: <a href=\"https:\/\/t.co\/VgwWyDKwh9\">https:\/\/t.co\/VgwWyDKwh9<\/a><\/p>\n<p>\u2014 Frank Lesniak (@FrankLesniak) <a href=\"https:\/\/twitter.com\/FrankLesniak\/status\/1134472743267778561?ref_src=twsrc%5Etfw\">31. Mai 2019<\/a><\/p><\/blockquote>\n<p><span id=\"preservecfb4369d24fe45f295001c681134be71\" class=\"wlWriterPreserve\"><SCRIPT charset=\"utf-8\" src=\"https:\/\/platform.twitter.com\/widgets.js\" async><\/SCRIPT><\/span> <\/p>\n<p>That was still a question from Frank at the end of May 2019. Later he came across an MSND forum post <a href=\"https:\/\/web.archive.org\/web\/20201030060639\/https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/188ab358-4231-4cf3-90e7-c70db06e5fc1\/hns-failed-with-error-element-not-found-when-creating-network-w-interface-name-specified?forum=windowscontainers\" target=\"_blank\" rel=\"noopener noreferrer\">HNS failed with error : Element not found] when creating network w\/ interface name specified<\/a> from Rafael Rivera, that seems to address the same issue. <\/p>\n<blockquote>\n<p>'m creating a transparent network device with:  <\/p>\n<p>docker network create -d transparent &#8211;gateway 192.168.1.1 &#8211;subnet 192.168.1.0\/24 -o com.docker.network.windowsshim.networkname=external -o com.docker.network.windowsshim.interface=\"Virtual Machine Access\" -o com.docker.network.windowsshim.dnsservers=192.168.1.1 external  <\/p>\n<p>The Docker daemon is returning: Error response from daemon: <strong>HNS failed with error : Element not found.<\/strong>  <\/p>\n<ul>\n<li>Docker server: <strong>17.03.1-ee-3<\/strong>\n<li>Windows Server 2016 Standard w\/ Hyper-V role installed\n<li>IPv6 is up and running on all interfaces\n<li>Interface in question is named \"Virtual Machine Access\" and is used by Hyper-V machines on the same machine. <strong>Not<\/strong> currently set up with management operating system access, though I tried with\/without this set.<\/li>\n<\/ul>\n<p>\u2026.<\/p>\n<\/blockquote>\n<p>But there was no response to that question. Frank Lesniak continued testing and found the cause.<\/p>\n<h2>Hyper-V guests do not receive an IP address<\/h2>\n<p>I had the above mentioned tweet on observation. Frank Lesniak then updated his tweets a few days ago with <a href=\"https:\/\/twitter.com\/FrankLesniak\/status\/1138530713630887938\" target=\"_blank\" rel=\"noopener noreferrer\">this post<\/a>. <\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"de\">\n<p lang=\"en\" dir=\"ltr\">I have figured out my issue with Hyper-V's \"Default Switch\" not functioning on <a href=\"https:\/\/twitter.com\/hashtag\/Win10?src=hash&amp;ref_src=twsrc%5Etfw\">#Win10<\/a> 1903 (remember: this also caused Mobile Hotspot to not work). Symptom: <a href=\"https:\/\/twitter.com\/hashtag\/HyperV?src=hash&amp;ref_src=twsrc%5Etfw\">#HyperV<\/a> guest <a href=\"https:\/\/twitter.com\/hashtag\/VM?src=hash&amp;ref_src=twsrc%5Etfw\">#VM<\/a> (or connected device on Mobile Hotspot) never gets an IP address from DHCP&#8230; (1\/n)<\/p>\n<p>\u2014 Frank Lesniak (@FrankLesniak) <a href=\"https:\/\/twitter.com\/FrankLesniak\/status\/1138530713630887938?ref_src=twsrc%5Etfw\">11. Juni 2019<\/a><\/p><\/blockquote>\n<p><span id=\"preserve81b795686bb0482d8bf64c182f2ea30b\" class=\"wlWriterPreserve\"><SCRIPT charset=\"utf-8\" src=\"https:\/\/platform.twitter.com\/widgets.js\" async><\/SCRIPT><\/span> <\/p>\n<p>He was able to narrow down the error. The reason for malfunctions in the Windows Container, Mobile Hotspot or Windows Sandbox area in virtual machines is a bug. The Hyper VMs are never assigned an IP address by the DHCP server. <\/p>\n<h3>Updates kill the feature<\/h3>\n<p>In further tweets he outlined this issue, which is probably related to automatic driver updates by Windows 10, further updates and the Lenovo system update program. <\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"de\">\n<p lang=\"en\" dir=\"ltr\">I can 100% reproduce this problem if I install 1903 bare-metal on any of my three systems, let Windows complete automatic driver updates, patch Windows, then run the hardware manufacturer's system update program (e.g., Lenovo Vantage). Finally, install Hyper-V&#8230; (2\/n)<\/p>\n<p>\u2014 Frank Lesniak (@FrankLesniak) <a href=\"https:\/\/twitter.com\/FrankLesniak\/status\/1138531392147611648?ref_src=twsrc%5Etfw\">11. Juni 2019<\/a><\/p><\/blockquote>\n<p><span id=\"preserve9cf47ae883f447af9677123fee08becd\" class=\"wlWriterPreserve\"><SCRIPT charset=\"utf-8\" src=\"https:\/\/platform.twitter.com\/widgets.js\" async><\/SCRIPT><\/span> <\/p>\n<p>In the tweet above, he states how he can reproduce this on several bare-metal systems. As soon as drivers are updated and updates are installed and the system updater of the device manufacturer is executed, there is the IP issue back.<\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"de\">\n<p lang=\"en\" dir=\"ltr\">&#8230; and then try firing up a VM (or use Mobile Hotspot). A DHCP address will never be handed out. You might also see errors in the Host-Network-Service log, event ID 1030, w\/ error codes 0x80070490 \/ 0x80070032 and mention of IpICSHlpStopDhcpServer \/ IpICSHlpStopDnsServer (3\/n) <a href=\"https:\/\/t.co\/8lPGA2gm56\">pic.twitter.com\/8lPGA2gm56<\/a><\/p>\n<p>\u2014 Frank Lesniak (@FrankLesniak) <a href=\"https:\/\/twitter.com\/FrankLesniak\/status\/1138532111181332481?ref_src=twsrc%5Etfw\">11. Juni 2019<\/a><\/p><\/blockquote>\n<p><span id=\"preserve5bc78493f0954d2c952e8d15478ed0a4\" class=\"wlWriterPreserve\"><SCRIPT charset=\"utf-8\" src=\"https:\/\/platform.twitter.com\/widgets.js\" async><\/SCRIPT><\/span> <\/p>\n<p>The VM no longer receives an IP address from the DHCP server and the event log of the host network adapter contains error 0x80070490 \/ 0x80070032 under event ID 1030. <\/p>\n<h3>Strange workaround<\/h3>\n<p>In another tweet Frank posted a pretty crude workaround. You should install the Windows Sandbox.<\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"de\">\n<p lang=\"en\" dir=\"ltr\">WORKAROUND: install Windows Sandbox (in addition to Hyper-V, in this case). Having Windows Sandbox installed seems to allow Windows to have what it needs to properly hand out a DHCP address.<\/p>\n<p>SO GLAD TO FINALLY HAVE A WORKAROUND FOR THIS PROBLEM! <\/p>\n<p>\u2014 Frank Lesniak (@FrankLesniak) <a href=\"https:\/\/twitter.com\/FrankLesniak\/status\/1138532532075597825?ref_src=twsrc%5Etfw\">11. Juni 2019<\/a><\/p><\/blockquote>\n<p><span id=\"preserve4a4246aaca7041e696e8f86dc3231266\" class=\"wlWriterPreserve\"><SCRIPT charset=\"utf-8\" src=\"https:\/\/platform.twitter.com\/widgets.js\" async><\/SCRIPT><\/span> <\/p>\n<p>In this case, the IP address assignment to the VM works again. I don't know if it works on a non English Windows 10 V1903. Because there is the sandbox bug (see <a href=\"https:\/\/borncity.com\/win\/2019\/05\/28\/windows-10-v1903-update-kb4497936-breaks-sandbox\/\">Windows 10 V1903: Update KB4497936 breaks Sandbox<\/a>). But maybe it'll help someone who's searching a branch why Hyper-V guests make trouble with Internet features. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[German]In Windows 10 May 2019 Update (version 1903) and possibly also in October 2018 Update (version 1809) there is a bug in the 'Default Switch' which leads to issues with Windows Sandbox, Mobile Hotspot or with Windows Containers &#8211; they &hellip; <a href=\"https:\/\/borncity.com\/win\/2019\/06\/18\/windows-10-v1903-ip-resolution-bug-in-hyper-v-switch\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463,1218,2],"tags":[355,47,1890],"class_list":["post-10142","post","type-post","status-publish","format-standard","hentry","category-issue","category-virtualization","category-windows","tag-hyper-v","tag-issue","tag-windows-10-v1903"],"_links":{"self":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/10142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/comments?post=10142"}],"version-history":[{"count":1,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/10142\/revisions"}],"predecessor-version":[{"id":35482,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/posts\/10142\/revisions\/35482"}],"wp:attachment":[{"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/media?parent=10142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/categories?post=10142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/borncity.com\/win\/wp-json\/wp\/v2\/tags?post=10142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}