none
[HNS failed with error : Element not found] when creating network w/ interface name specified RRS feed

  • Question

  • I'm creating a transparent network device with:

    docker network create -d transparent --gateway 192.168.1.1 --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

    The Docker daemon is returning: Error response from daemon: HNS failed with error : Element not found.

    • Docker server: 17.03.1-ee-3
    • Windows Server 2016 Standard w/ Hyper-V role installed
    • IPv6 is up and running on all interfaces
    • Interface in question is named "Virtual Machine Access" and is used by Hyper-V machines on the same machine. Not currently set up with management operating system access, though I tried with/without this set.

    HNS traces:

    Request received

    HNSRequestHandler: method=POST,path=/networks/,request={"Name":"external","Type":"transparent","NetworkAdapterName":"Virtual Machine Access","Subnets":[{"AddressPrefix":"192.168.1.0/24","GatewayAddress":"192.168.1.1"}],"DNSServerList":"192.168.1.1"}

    Problems arise

    ActivityError: wilActivity=Dynamic: callContext=\HNSRequestHandler,currentContextId=3,currentContextMessage=,currentContextName=HNSRequestHandler,failureCount=6,failureId=6,failureType=0,fileName=vm\dv\net\hns\service\hnscore.cpp,function=,hresult=2147943568,lineNumber=1781,message=,module=hostnetsvc.dll,originatingContextId=3,originatingContextMessage=,originatingContextName=HNSRequestHandler,threadId=5844 ActivityError: wilActivity=Dynamic: callContext=\HNSRequestHandler,currentContextId=3,currentContextMessage=,currentContextName=HNSRequestHandler,failureCount=7,failureId=7,failureType=0,fileName=vm\dv\net\hns\service\hnscore.cpp,function=,hresult=2147943568,lineNumber=1786,message=vm\dv\net\hns\service\hnscore.cpp(1781)\hostnetsvc.dll!00007FFFF4186A61: (caller: 00007FFFF41946F3) Exception(6) tid(16d4) 80070490 Element not found. CallContext:[\HNSRequestHandler] ,module=hostnetsvc.dll,originatingContextId=3,originatingContextMessage=,originatingContextName=HNSRequestHandler,threadId=5844 Enter function: Function=HNSNetworkSupport::GetNetworkType,Line=1036 Enter function: Function=HNSNetworkSupport::GetNetworkType,Line=1049 Exit function: Function=HNSNetworkSupport::GetNetworkType,Line=1056,success=0 HNSNetworkCreated: networkId=9f35c713-40ef-49ad-9bdd-b3a56cb785c6,networkType=1,resultCode=-2147023728 HNS-Network-Create :- Network id = '9f35c713-40ef-49ad-9bdd-b3a56cb785c6'. Network type = 'TRANSPARENT'. Result code = '0x80070490'.



    Sunday, June 4, 2017 5:27 AM