Skip to content
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

WSL2 networking no IP-address, fresh Win10 20H2 install #6457

Closed
b9AcE opened this issue Jan 23, 2021 · 19 comments
Closed

WSL2 networking no IP-address, fresh Win10 20H2 install #6457

b9AcE opened this issue Jan 23, 2021 · 19 comments
Assignees

Comments

@b9AcE
Copy link

b9AcE commented Jan 23, 2021

Environment

Windows build number: 10.0.19042.746
Your Distribution version: Debian 10
Whether the issue is on WSL 2 and/or WSL 1: Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020

Steps to reproduce

Freshly installed Windows 10 version 20H2 with all Windows Updates applied.
Followed "Manual Installation Steps" https://docs.microsoft.com/en-us/windows/wsl/install-win10 for WSL2.
Had already installed the relevant features amongst others using the "Turn Windows features on or off" GUI, but ran the relevant commands listed in the instructions anyway.
Installed and ran Debian (since Devuan isn't in Microsoft Store) before the switch to WSL2 as default, to ensure the initial distro-configuration would not break, as has happened on previous installs. Also ran "/usr/bin/apt update && /usr/bin/apt dist-upgrade" successfully at that time (thus, there was functional networking).
Then set WSL2 as default, converted Debian to be WSL2 and rebooted an extra time to ensure everything was fully restarted as WSL2.
Upon reentering the now WSL2-mode Debian, no IP-address is assigned to the networking device.

$ /bin/ip a s eth0
4: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:15:5d:0c:68:47 brd ff:ff:ff:ff:ff:ff

Had at that point not modified any system configuration in the Debian installation.

Tried applying this #6433 (comment) suggestion, but that did not change the result, still no IP-address.

I have now had this error on at least 7 fresh reinstalls of Windows 10 version 2004 or newer and the only way to get networking functional in WSL2 seems to be to on every reboot use the "Virtual Switch Manager" in "Hyper-V Manager" to set the auto-created Virtual Switch "WSL" to "external network" pointing to the actual network interface and then on every fresh start of WSL2 manually request a DHCP-assigned address by "/sbin/dhclient -4 -1 eth0" and then request it manually again every time the lease times out.

This is obviously not... as expected, but quite inconvenient in particular since WSL2 was the one and only feature of Windows 10 version 2004 I was looking forward to, but this level of disfunctionality makes it practically unusable.
Converting a distro back to WSL1 makes networking functional again.

No third-party firewall/antivirus installed, yet.

No VPN installed, yet. Installing VPNs on previous installations of Windows 10 does not seem to have affected this issue at all.

The physical networking device is the motherboard internal only one (wired), with no additional networking devices ever connected to the computer since the fresh install, although attaching a USB-connected 802.11 card to previous installs of Windows did not seem to affect the issue, apart from having to select a different device during the Virtual Switch workaround described previously.

No third party virtual machine software installed, yet. Installing VMware and/or VirtualBox on previous installs of Windows 10 does not seem to have affected the issue then either.

Expected behavior

Functional networking in WSL2.

Actual behavior

No networking in WSL2 unless repeated workaround steps are performed.

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 25, 2021

Thanks for reporting this @b9AcE.

Can you please follow the Networking issues instructions and share the logs on this issue ?

Please also share the output of dmesg

@OneBlue OneBlue self-assigned this Jan 25, 2021
@b9AcE
Copy link
Author

b9AcE commented Jan 25, 2021

Certainly, @OneBlue!

C:\Temp\WSL\diagnostics>networking.bat
HNS objects:
{
    "ActivityId":"88F37967-3EA3-4AAE-A902-340BDE2E864B",
    "AdditionalParams":{

    },
    "CurrentEndpointCount":0,
    "Extensions":[
        {
            "Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
            "IsEnabled":false,
            "Name":"Microsoft Windows Filtering Platform"
        },
        {
            "Id":"E9B59CFA-2BE1-4B21-828F-B6FBDBDDC017",
            "IsEnabled":false,
            "Name":"Microsoft Azure VFP Switch Extension"
        },
        {
            "Id":"430BDADD-BAB0-41AB-A369-94B67FA5BE0A",
            "IsEnabled":true,
            "Name":"Microsoft NDIS Capture"
        }
    ],
    "Flags":11,
    "GatewayMac":"00-15-5D-BD-68-AA",
    "Health":{
        "AddressNotificationMissedCount":0,
        "AddressNotificationSequenceNumber":3,
        "DHCPNotificationMissedCount":0,
        "DHCPNotificationSequenceNumber":0,
        "DNSCacheNotificationMissedCount":0,
        "DNSCacheNotificationSequenceNumber":0,
        "DNSNotificationMissedCount":0,
        "DNSNotificationSequenceNumber":0,
        "InterfaceNotificationMissedCount":0,
        "InterfaceNotificationSequenceNumber":0,
        "LastErrorCode":0,
        "LastUpdateTime":132559440900147426,
        "MacAddressNotificationMissedCount":0,
        "MacAddressNotificationSequenceNumber":0,
        "NeighborNotificationMissedCount":0,
        "NeighborNotificationSequenceNumber":0,
        "RouteNotificationMissedCount":0,
        "RouteNotificationSequenceNumber":0,
        "XlatNotificationMissedCount":0,
        "XlatNotificationSequenceNumber":0
    },
    "ID":"C08CB7B8-9B3C-408E-8E30-5E16A3AEB444",
    "IPv6":false,
    "LayeredOn":"35508058-5594-4BAC-9D05-ABD78FC9B89B",
    "MacPools":[
        {
            "EndMacAddress":"00-15-5D-BD-6F-FF",
            "StartMacAddress":"00-15-5D-BD-60-00"
        }
    ],
    "MaxConcurrentEndpoints":0,
    "Name":"Default Switch",
    "NatName":"ICS13E27A14-1BC8-41EC-A7B5-1B3D0D1D75B4",
    "Policies":[

    ],
    "State":1,
    "Subnets":[
        {
            "AdditionalParams":{

            },
            "AddressPrefix":"172.21.16.0/20",
            "Flags":0,
            "GatewayAddress":"172.21.16.1",
            "Health":{
                "LastErrorCode":0,
                "LastUpdateTime":132559400802065894
            },
            "ID":"D7435632-B6CD-408F-99CB-70E2BC8CD75F",
            "IpSubnets":[
                {
                    "AdditionalParams":{

                    },
                    "Flags":3,
                    "Health":{
                        "LastErrorCode":0,
                        "LastUpdateTime":132559400802065894
                    },
                    "ID":"EE62CAC1-415E-4381-AEFA-AA77547DEDAA",
                    "IpAddressPrefix":"172.21.16.0/20",
                    "ObjectType":6,
                    "Policies":[

                    ],
                    "State":0
                }
            ],
            "ObjectType":5,
            "Policies":[

            ],
            "State":0
        }
    ],
    "SwitchGuid":"C08CB7B8-9B3C-408E-8E30-5E16A3AEB444",
    "SwitchName":"Default Switch",
    "TotalEndpoints":0,
    "Type":"ICS",
    "Version":47244640266,
    "Layer":{
        "ActivityId":"0F6A22A6-3C6B-4715-9537-651BC781BA62",
        "AdditionalParams":{

        },
        "Extensions":[
            {
                "Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
                "IsEnabled":false,
                "Name":"Microsoft Windows Filtering Platform"
            },
            {
                "Id":"E9B59CFA-2BE1-4B21-828F-B6FBDBDDC017",
                "IsEnabled":false,
                "Name":"Microsoft Azure VFP Switch Extension"
            },
            {
                "Id":"430BDADD-BAB0-41AB-A369-94B67FA5BE0A",
                "IsEnabled":true,
                "Name":"Microsoft NDIS Capture"
            }
        ],
        "Flags":0,
        "Health":{
            "LastErrorCode":0,
            "LastUpdateTime":132559400793162244
        },
        "ID":"35508058-5594-4BAC-9D05-ABD78FC9B89B",
        "IsFSE":false,
        "IsSDN":false,
        "MacPools":[
            {
                "EndMacAddress":"00-15-5D-25-DF-FF",
                "StartMacAddress":"00-15-5D-25-D0-00"
            }
        ],
        "Name":"Default Switch",
        "Policies":[

        ],
        "State":0,
        "SubType":"NAT",
        "SupportsIpv6":false,
        "Type":"Layered",
        "Version":47244640266,
        "Resources":{
            "AdditionalParams":{

            },
            "AllocationOrder":1,
            "Allocators":[
                {
                    "AdditionalParams":{

                    },
                    "AllocationOrder":0,
                    "ExternalNic":false,
                    "Flags":0,
                    "Health":{
                        "LastErrorCode":0,
                        "LastUpdateTime":132559400793162244
                    },
                    "ID":"0CFBBEE3-36B5-44C3-8297-AB804FDAEAA8",
                    "IsPolicy":false,
                    "IsolateSwitch":false,
                    "MacAddress":"Default Switch",
                    "State":3,
                    "SwitchAllocated":true,
                    "SwitchId":"C08CB7B8-9B3C-408E-8E30-5E16A3AEB444",
                    "Tag":"Virtual Switch"
                }
            ],
            "CompartmentOperationTime":0,
            "Flags":0,
            "Health":{
                "LastErrorCode":0,
                "LastUpdateTime":132559400793162244
            },
            "ID":"0F6A22A6-3C6B-4715-9537-651BC781BA62",
            "PortOperationTime":0,
            "State":1,
            "SwitchOperationTime":0,
            "VfpOperationTime":0
        }
    },
    "Resources":{
        "AdditionalParams":{

        },
        "AllocationOrder":2,
        "Allocators":[
            {
                "AdapterNetCfgInstanceId":"{13E27A14-1BC8-41EC-A7B5-1B3D0D1D75B4}",
                "AdditionalParams":{

                },
                "AllocationOrder":0,
                "CompartmendId":0,
                "Connected":true,
                "DNSFirewallRules":true,
                "DevicelessNic":false,
                "DhcpDisabled":true,
                "EndpointNicGuid":"BEBBED80-E3DF-4ADD-B59F-285F45C1BF67",
                "EndpointPortGuid":"F60EB8F7-55E4-4ADE-8D30-2F95FE1DB948",
                "Flags":0,
                "Health":{
                    "LastErrorCode":0,
                    "LastUpdateTime":132559400802065894
                },
                "ID":"3B5C43FC-1E81-42BE-A950-5CC005F4FC12",
                "InterfaceGuid":"13E27A14-1BC8-41EC-A7B5-1B3D0D1D75B4",
                "IsPolicy":false,
                "IsolationId":0,
                "MacAddress":"00-15-5D-B1-11-AA",
                "ManagementPort":true,
                "NcfHidden":false,
                "NicFriendlyName":"Default Switch",
                "NlmHidden":true,
                "PreferredPortFriendlyName":"Container NIC 3b5c43fc",
                "State":3,
                "SwitchId":"C08CB7B8-9B3C-408E-8E30-5E16A3AEB444",
                "Tag":"Host Vnic",
                "WaitForIpv6Interface":false,
                "nonPersistentPort":false
            },
            {
                "AdditionalParams":{

                },
                "AllocationOrder":1,
                "Dhcp":true,
                "Dns":true,
                "ExternalInterfaceConstraint":0,
                "Flags":0,
                "Health":{
                    "DHCPState":2,
                    "DNSState":2,
                    "ICSState":2,
                    "LastErrorCode":0,
                    "LastUpdateTime":132559440900587410
                },
                "ICSDHCPFlags":0,
                "ICSFlags":0,
                "ID":"22534F1F-2426-4B8D-BC5B-E819FC41002A",
                "IsPolicy":false,
                "Prefix":20,
                "PrivateInterfaceGUID":"13E27A14-1BC8-41EC-A7B5-1B3D0D1D75B4",
                "State":3,
                "SubnetIPAddress":"172.21.16.0",
                "Tag":"ICS"
            }
        ],
        "CompartmentOperationTime":0,
        "Flags":0,
        "Health":{
            "LastErrorCode":0,
            "LastUpdateTime":132559400802065894
        },
        "ID":"88F37967-3EA3-4AAE-A902-340BDE2E864B",
        "PortOperationTime":0,
        "State":1,
        "SwitchOperationTime":0,
        "VfpOperationTime":0,
        "parentId":"0F6A22A6-3C6B-4715-9537-651BC781BA62"
    }
}
{
    "ActivityId":"64FA6CA9-BBEA-45F2-98AB-645DE10870BD",
    "AdditionalParams":{

    },
    "CurrentEndpointCount":0,
    "DNSDomain":"Yggdrasil.Local",
    "DNSServerList":"10.111.111.1",
    "DNSSuffix":"",
    "Extensions":[
        {
            "Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
            "IsEnabled":false,
            "Name":"Microsoft Windows Filtering Platform"
        },
        {
            "Id":"E9B59CFA-2BE1-4B21-828F-B6FBDBDDC017",
            "IsEnabled":false,
            "Name":"Microsoft Azure VFP Switch Extension"
        },
        {
            "Id":"430BDADD-BAB0-41AB-A369-94B67FA5BE0A",
            "IsEnabled":true,
            "Name":"Microsoft NDIS Capture"
        }
    ],
    "ExternalInterfaceConstraint":"Ethernet",
    "Flags":12,
    "GatewayMac":"00-15-5D-80-BA-2D",
    "Health":{
        "AddressNotificationMissedCount":0,
        "AddressNotificationSequenceNumber":7,
        "DHCPNotificationMissedCount":0,
        "DHCPNotificationSequenceNumber":0,
        "DNSCacheNotificationMissedCount":0,
        "DNSCacheNotificationSequenceNumber":0,
        "DNSNotificationMissedCount":0,
        "DNSNotificationSequenceNumber":11,
        "InterfaceNotificationMissedCount":0,
        "InterfaceNotificationSequenceNumber":12,
        "LastErrorCode":0,
        "LastUpdateTime":132560665690231698,
        "MacAddressNotificationMissedCount":0,
        "MacAddressNotificationSequenceNumber":0,
        "NeighborNotificationMissedCount":0,
        "NeighborNotificationSequenceNumber":0,
        "RouteNotificationMissedCount":0,
        "RouteNotificationSequenceNumber":4,
        "XlatNotificationMissedCount":0,
        "XlatNotificationSequenceNumber":0
    },
    "ID":"C7E3671F-7FB8-4708-A8C8-93CF58AC72A2",
    "IPv6":false,
    "InterfaceConstraint":{
        "Connected":true,
        "InterfaceAlias":"Ethernet",
        "InterfaceDescription":"Realtek PCIe GbE Family Controller",
        "InterfaceGuid":"B966D631-3426-4BE7-91B0-F1B3BADC38F5",
        "InterfaceIndex":14,
        "InterfaceLuid":1689399632855040,
        "InterfaceMediaType":6
    },
    "LayeredOn":"35508058-5594-4BAC-9D05-ABD78FC9B89B",
    "MacPools":[
        {
            "EndMacAddress":"00-15-5D-80-BF-FF",
            "StartMacAddress":"00-15-5D-80-B0-00"
        }
    ],
    "MaxConcurrentEndpoints":0,
    "Name":"Ethernet",
    "NatName":"ICSA42E57A0-B866-4276-8EBD-5B0165E33582",
    "Policies":[
        {
            "Type":"VLAN",
            "VLAN":1
        }
    ],
    "State":1,
    "Subnets":[
        {
            "AdditionalParams":{

            },
            "AddressPrefix":"192.168.96.0/20",
            "Flags":0,
            "GatewayAddress":"192.168.96.1",
            "Health":{
                "LastErrorCode":0,
                "LastUpdateTime":132559440784828360
            },
            "ID":"C8D17D69-43C9-40DB-8262-0BD8018C6ED8",
            "IpSubnets":[
                {
                    "AdditionalParams":{

                    },
                    "Flags":3,
                    "Health":{
                        "LastErrorCode":0,
                        "LastUpdateTime":132559440784828360
                    },
                    "ID":"4389901C-7214-48A3-BFF9-58E849601024",
                    "IpAddressPrefix":"192.168.96.0/20",
                    "ObjectType":6,
                    "Policies":[

                    ],
                    "State":0
                }
            ],
            "ObjectType":5,
            "Policies":[

            ],
            "State":0
        }
    ],
    "SwitchGuid":"C08CB7B8-9B3C-408E-8E30-5E16A3AEB444",
    "SwitchName":"Default Switch",
    "TotalEndpoints":0,
    "Type":"ICS",
    "Version":47244640266,
    "Layer":{
        "ActivityId":"0F6A22A6-3C6B-4715-9537-651BC781BA62",
        "AdditionalParams":{

        },
        "Extensions":[
            {
                "Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
                "IsEnabled":false,
                "Name":"Microsoft Windows Filtering Platform"
            },
            {
                "Id":"E9B59CFA-2BE1-4B21-828F-B6FBDBDDC017",
                "IsEnabled":false,
                "Name":"Microsoft Azure VFP Switch Extension"
            },
            {
                "Id":"430BDADD-BAB0-41AB-A369-94B67FA5BE0A",
                "IsEnabled":true,
                "Name":"Microsoft NDIS Capture"
            }
        ],
        "Flags":0,
        "Health":{
            "LastErrorCode":0,
            "LastUpdateTime":132559400793162244
        },
        "ID":"35508058-5594-4BAC-9D05-ABD78FC9B89B",
        "IsFSE":false,
        "IsSDN":false,
        "MacPools":[
            {
                "EndMacAddress":"00-15-5D-25-DF-FF",
                "StartMacAddress":"00-15-5D-25-D0-00"
            }
        ],
        "Name":"Default Switch",
        "Policies":[

        ],
        "State":0,
        "SubType":"NAT",
        "SupportsIpv6":false,
        "Type":"Layered",
        "Version":47244640266,
        "Resources":{
            "AdditionalParams":{

            },
            "AllocationOrder":1,
            "Allocators":[
                {
                    "AdditionalParams":{

                    },
                    "AllocationOrder":0,
                    "ExternalNic":false,
                    "Flags":0,
                    "Health":{
                        "LastErrorCode":0,
                        "LastUpdateTime":132559400793162244
                    },
                    "ID":"0CFBBEE3-36B5-44C3-8297-AB804FDAEAA8",
                    "IsPolicy":false,
                    "IsolateSwitch":false,
                    "MacAddress":"Default Switch",
                    "State":3,
                    "SwitchAllocated":true,
                    "SwitchId":"C08CB7B8-9B3C-408E-8E30-5E16A3AEB444",
                    "Tag":"Virtual Switch"
                }
            ],
            "CompartmentOperationTime":0,
            "Flags":0,
            "Health":{
                "LastErrorCode":0,
                "LastUpdateTime":132559400793162244
            },
            "ID":"0F6A22A6-3C6B-4715-9537-651BC781BA62",
            "PortOperationTime":0,
            "State":1,
            "SwitchOperationTime":0,
            "VfpOperationTime":0
        }
    },
    "Resources":{
        "AdditionalParams":{

        },
        "AllocationOrder":2,
        "Allocators":[
            {
                "AdapterNetCfgInstanceId":"{A42E57A0-B866-4276-8EBD-5B0165E33582}",
                "AdditionalParams":{

                },
                "AllocationOrder":0,
                "CompartmendId":0,
                "Connected":true,
                "DNSFirewallRules":true,
                "DevicelessNic":false,
                "DhcpDisabled":true,
                "EndpointNicGuid":"8265A7F9-0DC4-45DD-A120-BF2EC3DA791D",
                "EndpointPortGuid":"A61DDC2A-C869-456A-A5B0-63B26224772A",
                "Flags":0,
                "Health":{
                    "LastErrorCode":0,
                    "LastUpdateTime":132559440784848358
                },
                "ID":"7F8C024C-E60F-48BE-A133-C53241630EBB",
                "InterfaceGuid":"A42E57A0-B866-4276-8EBD-5B0165E33582",
                "IsPolicy":false,
                "IsolationId":1,
                "MacAddress":"00-15-5D-8C-C3-2D",
                "ManagementPort":true,
                "NcfHidden":false,
                "NicFriendlyName":"Ethernet",
                "NlmHidden":true,
                "PreferredPortFriendlyName":"Container NIC 7f8c024c",
                "State":3,
                "SwitchId":"C08CB7B8-9B3C-408E-8E30-5E16A3AEB444",
                "Tag":"Host Vnic",
                "WaitForIpv6Interface":false,
                "nonPersistentPort":false
            },
            {
                "AdditionalParams":{

                },
                "AllocationOrder":1,
                "Dhcp":false,
                "Dns":false,
                "ExternalInterfaceConstraint":14,
                "Flags":0,
                "Health":{
                    "DHCPState":1,
                    "DNSState":1,
                    "ICSState":2,
                    "LastErrorCode":0,
                    "LastUpdateTime":132559440787048360
                },
                "ICSDHCPFlags":0,
                "ICSFlags":0,
                "ID":"F8488B04-8CAA-497E-B1E8-6FC1D63603AC",
                "IsPolicy":false,
                "Prefix":20,
                "PrivateInterfaceGUID":"A42E57A0-B866-4276-8EBD-5B0165E33582",
                "State":3,
                "SubnetIPAddress":"192.168.96.0",
                "Tag":"ICS"
            }
        ],
        "CompartmentOperationTime":0,
        "Flags":0,
        "Health":{
            "LastErrorCode":0,
            "LastUpdateTime":132559440784838354
        },
        "ID":"64FA6CA9-BBEA-45F2-98AB-645DE10870BD",
        "PortOperationTime":0,
        "State":1,
        "SwitchOperationTime":0,
        "VfpOperationTime":0,
        "parentId":"0F6A22A6-3C6B-4715-9537-651BC781BA62"
    }
}
{
    "ActivityId":"21C25322-CFE5-4400-BB93-D0CAFA87FEBA",
    "AdditionalParams":{

    },
    "CurrentEndpointCount":0,
    "DNSServerList":"172.31.128.1",
    "Extensions":[
        {
            "Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
            "IsEnabled":false,
            "Name":"Microsoft Windows Filtering Platform"
        },
        {
            "Id":"E9B59CFA-2BE1-4B21-828F-B6FBDBDDC017",
            "IsEnabled":false,
            "Name":"Microsoft Azure VFP Switch Extension"
        },
        {
            "Id":"430BDADD-BAB0-41AB-A369-94B67FA5BE0A",
            "IsEnabled":true,
            "Name":"Microsoft NDIS Capture"
        }
    ],
    "Flags":9,
    "GatewayMac":"00-15-5D-A1-06-98",
    "Health":{
        "AddressNotificationMissedCount":0,
        "AddressNotificationSequenceNumber":0,
        "DHCPNotificationMissedCount":0,
        "DHCPNotificationSequenceNumber":0,
        "DNSCacheNotificationMissedCount":0,
        "DNSCacheNotificationSequenceNumber":0,
        "DNSNotificationMissedCount":0,
        "DNSNotificationSequenceNumber":0,
        "InterfaceNotificationMissedCount":0,
        "InterfaceNotificationSequenceNumber":0,
        "LastErrorCode":0,
        "LastUpdateTime":132560841067022362,
        "MacAddressNotificationMissedCount":0,
        "MacAddressNotificationSequenceNumber":0,
        "NeighborNotificationMissedCount":0,
        "NeighborNotificationSequenceNumber":0,
        "RouteNotificationMissedCount":0,
        "RouteNotificationSequenceNumber":0,
        "XlatNotificationMissedCount":0,
        "XlatNotificationSequenceNumber":0
    },
    "ID":"B95D0C5E-57D4-412B-B571-18A81A16E005",
    "IPv6":false,
    "IsolateSwitch":true,
    "LayeredOn":"BCBE7BB3-4F97-40A8-BDBF-41BC72AF8AD5",
    "MacPools":[
        {
            "EndMacAddress":"00-15-5D-A1-0F-FF",
            "StartMacAddress":"00-15-5D-A1-00-00"
        }
    ],
    "MaxConcurrentEndpoints":1,
    "Name":"WSL",
    "NatName":"ICSBF443C75-4190-4E23-99C7-7D9E483C7CB5",
    "Policies":[

    ],
    "State":1,
    "Subnets":[
        {
            "AdditionalParams":{

            },
            "AddressPrefix":"172.31.128.0/20",
            "Flags":0,
            "GatewayAddress":"172.31.128.1",
            "Health":{
                "LastErrorCode":0,
                "LastUpdateTime":132560841067042344
            },
            "ID":"2E15A230-CB30-4AF5-ABAF-3E143E20DC2B",
            "IpSubnets":[
                {
                    "AdditionalParams":{

                    },
                    "Flags":3,
                    "Health":{
                        "LastErrorCode":0,
                        "LastUpdateTime":132560841067042344
                    },
                    "ID":"55911EEB-0809-4A83-A610-668DAB0BE7CC",
                    "IpAddressPrefix":"172.31.128.0/20",
                    "ObjectType":6,
                    "Policies":[

                    ],
                    "State":0
                }
            ],
            "ObjectType":5,
            "Policies":[

            ],
            "State":0
        }
    ],
    "TotalEndpoints":1,
    "Type":"ICS",
    "Version":47244640266,
    "Layer":{
        "ActivityId":"DC1DBFFB-12A0-45EC-BB3B-ED53FA80E726",
        "AdditionalParams":{

        },
        "Extensions":[
            {
                "Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
                "IsEnabled":false,
                "Name":"Microsoft Windows Filtering Platform"
            },
            {
                "Id":"E9B59CFA-2BE1-4B21-828F-B6FBDBDDC017",
                "IsEnabled":false,
                "Name":"Microsoft Azure VFP Switch Extension"
            },
            {
                "Id":"430BDADD-BAB0-41AB-A369-94B67FA5BE0A",
                "IsEnabled":true,
                "Name":"Microsoft NDIS Capture"
            }
        ],
        "Flags":0,
        "Health":{
            "LastErrorCode":0,
            "LastUpdateTime":132560841067047347
        },
        "ID":"BCBE7BB3-4F97-40A8-BDBF-41BC72AF8AD5",
        "IsFSE":false,
        "IsSDN":false,
        "MacPools":[
            {
                "EndMacAddress":"00-15-5D-F7-6F-FF",
                "StartMacAddress":"00-15-5D-F7-60-00"
            }
        ],
        "Name":"WSL",
        "Policies":[

        ],
        "State":0,
        "SubType":"NAT",
        "SupportsIpv6":false,
        "Type":"Layered",
        "Version":47244640266,
        "Resources":{
            "AdditionalParams":{

            },
            "AllocationOrder":1,
            "Allocators":[
                {
                    "AdditionalParams":{

                    },
                    "AllocationOrder":0,
                    "ExternalNic":false,
                    "Flags":0,
                    "Health":{
                        "LastErrorCode":0,
                        "LastUpdateTime":132560841067047347
                    },
                    "ID":"B2BE9E4E-B59D-4FE4-B812-B6093F4C9A1B",
                    "IsPolicy":false,
                    "IsolateSwitch":true,
                    "MacAddress":"WSL",
                    "State":3,
                    "SwitchAllocated":true,
                    "SwitchId":"76FCEE7F-C085-4AE6-BDC3-DE5D0B349DBF",
                    "Tag":"Virtual Switch"
                }
            ],
            "CompartmentOperationTime":0,
            "Flags":0,
            "Health":{
                "LastErrorCode":0,
                "LastUpdateTime":132560841067047347
            },
            "ID":"DC1DBFFB-12A0-45EC-BB3B-ED53FA80E726",
            "PortOperationTime":0,
            "State":1,
            "SwitchOperationTime":0,
            "VfpOperationTime":0
        }
    },
    "Resources":{
        "AdditionalParams":{

        },
        "AllocationOrder":2,
        "Allocators":[
            {
                "AdapterNetCfgInstanceId":"{BF443C75-4190-4E23-99C7-7D9E483C7CB5}",
                "AdditionalParams":{

                },
                "AllocationOrder":0,
                "CompartmendId":0,
                "Connected":true,
                "DNSFirewallRules":true,
                "DevicelessNic":false,
                "DhcpDisabled":true,
                "EndpointNicGuid":"CD6C463D-F794-4CFA-983E-4DF5FE2950A5",
                "EndpointPortGuid":"C1AA9600-1F72-4B0D-9BC7-C06AF14BA409",
                "Flags":0,
                "Health":{
                    "LastErrorCode":0,
                    "LastUpdateTime":132560841069057388
                },
                "ID":"76E67FFC-30FE-4562-AA7C-F0166C9D01C1",
                "InterfaceGuid":"BF443C75-4190-4E23-99C7-7D9E483C7CB5",
                "IsPolicy":false,
                "IsolationId":0,
                "MacAddress":"00-15-5D-AD-7F-98",
                "ManagementPort":true,
                "NcfHidden":false,
                "NicFriendlyName":"WSL",
                "NlmHidden":true,
                "PreferredPortFriendlyName":"Container NIC 76e67ffc",
                "State":3,
                "SwitchId":"76FCEE7F-C085-4AE6-BDC3-DE5D0B349DBF",
                "Tag":"Host Vnic",
                "WaitForIpv6Interface":false,
                "nonPersistentPort":false
            },
            {
                "AdditionalParams":{

                },
                "AllocationOrder":1,
                "Dhcp":false,
                "Dns":true,
                "ExternalInterfaceConstraint":0,
                "Flags":0,
                "Health":{
                    "DHCPState":1,
                    "DNSState":2,
                    "ICSState":2,
                    "LastErrorCode":0,
                    "LastUpdateTime":132560841072222351
                },
                "ICSDHCPFlags":0,
                "ICSFlags":0,
                "ID":"57021D1C-9034-4249-AC69-23268FE8AE6E",
                "IsPolicy":false,
                "Prefix":20,
                "PrivateInterfaceGUID":"BF443C75-4190-4E23-99C7-7D9E483C7CB5",
                "State":3,
                "SubnetIPAddress":"172.31.128.0",
                "Tag":"ICS"
            }
        ],
        "CompartmentOperationTime":0,
        "Flags":0,
        "Health":{
            "LastErrorCode":0,
            "LastUpdateTime":132560841069037380
        },
        "ID":"21C25322-CFE5-4400-BB93-D0CAFA87FEBA",
        "PortOperationTime":0,
        "State":1,
        "SwitchOperationTime":0,
        "VfpOperationTime":0,
        "parentId":"DC1DBFFB-12A0-45EC-BB3B-ED53FA80E726"
    }
}
{
    "ActivityId":"9D208634-C185-4195-8049-FE023C43DBC6",
    "AdditionalParams":{

    },
    "CompartmentGuid":"B1062982-2B18-4B4F-B3D5-A78DDB9CDD49",
    "CompartmentId":1,
    "Containers":[

    ],
    "Flags":0,
    "Health":{
        "LastErrorCode":0,
        "LastUpdateTime":132559400791755995
    },
    "ID":"910F7D92-BA2D-4C3F-98AE-7C0AC590D2DC",
    "IsDefault":true,
    "Policies":[

    ],
    "State":1,
    "Version":47244640266
}
Deleting HNS network
The LXSSMANAGER service is not started.

More help is available by typing NET HELPMSG 3521.

+ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
+ uname -a
Linux Anahita 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 GNU/Linux
+ ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 62:d3:cc:c3:f4:35 brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 96:fc:e6:1e:a1:ff brd ff:ff:ff:ff:ff:ff
4: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:15:5d:d4:36:76 brd ff:ff:ff:ff:ff:ff
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
+ ip route show
++ ip route show
++ awk '/default/ { print $3 }'
+ gateway=
+ '[' 0 '!=' 0 ']'
+ ping -c 4 ''
ping: socket: Operation not permitted
+ ping -c 4 1.1.1.1
ping: socket: Operation not permitted
+ traceroute 1.1.1.1
bash: line 24: traceroute: command not found
+ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.17.160.1
+ curl -m 5 -v https://microsoft.com
bash: line 30: curl: command not found
b9ace@Anahita:~$ dmesg
[    0.000000] Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020
[    0.000000] Command line: initrd=\initrd.img panic=-1 pty.legacy_count=0 nr_cpus=4
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000e0fff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000001fffff] ACPI data
[    0.000000] BIOS-e820: [mem 0x0000000000200000-0x00000000f7ffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x00000003387fffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] DMI not present or invalid.
[    0.000000] Hypervisor detected: Microsoft Hyper-V
[    0.000000] Hyper-V: features 0x2e7f, privilege high: 0x3b8030, hints 0x60c2c, misc 0x20bed7b2
[    0.000000] Hyper-V Host Build:19041-10.0-0-0.746
[    0.000000] Hyper-V: LAPIC Timer Frequency: 0x1e8480
[    0.000000] tsc: Marking TSC unstable due to running on Hyper-V
[    0.000000] Hyper-V: Using hypercall for remote TLB flush
[    0.000000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000001] tsc: Detected 3407.998 MHz processor
[    0.000012] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000013] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000015] last_pfn = 0x338800 max_arch_pfn = 0x400000000
[    0.000030] MTRR default type: uncachable
[    0.000030] MTRR fixed ranges disabled:
[    0.000031]   00000-FFFFF uncachable
[    0.000031] MTRR variable ranges disabled:
[    0.000032]   0 disabled
[    0.000032]   1 disabled
[    0.000032]   2 disabled
[    0.000032]   3 disabled
[    0.000033]   4 disabled
[    0.000033]   5 disabled
[    0.000033]   6 disabled
[    0.000033]   7 disabled
[    0.000033] Disabled
[    0.000034] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[    0.000038] CPU MTRRs all blank - virtualized system.
[    0.000040] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC
[    0.000041] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[    0.000052] Using GB pages for direct mapping
[    0.002696] RAMDISK: [mem 0x02e35000-0x02e44fff]
[    0.002701] ACPI: Early table checksum verification disabled
[    0.002719] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[    0.002722] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.002726] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.002731] ACPI: DSDT 0x00000000001011B8 01E184 (v02 MSFTVM DSDT01   00000001 MSFT 05000000)
[    0.002733] ACPI: FACS 0x0000000000101114 000040
[    0.002735] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.002737] ACPI: SRAT 0x000000000011F33C 000250 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.002740] ACPI: APIC 0x000000000011F58C 000068 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.002746] ACPI: Local APIC address 0xfee00000
[    0.003259] Zone ranges:
[    0.003260]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.003261]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.003262]   Normal   [mem 0x0000000100000000-0x00000003387fffff]
[    0.003262] Movable zone start for each node
[    0.003263] Early memory node ranges
[    0.003263]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.003264]   node   0: [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.003265]   node   0: [mem 0x0000000100000000-0x00000003387fffff]
[    0.004141] Zeroed struct page in unavailable ranges: 31073 pages
[    0.004143] Initmem setup node 0 [mem 0x0000000000001000-0x00000003387fffff]
[    0.004145] On node 0 totalpages: 3344031
[    0.004146]   DMA zone: 59 pages used for memmap
[    0.004146]   DMA zone: 22 pages reserved
[    0.004146]   DMA zone: 3743 pages, LIFO batch:0
[    0.004185]   DMA32 zone: 16320 pages used for memmap
[    0.004186]   DMA32 zone: 1011712 pages, LIFO batch:63
[    0.028419]   Normal zone: 36384 pages used for memmap
[    0.028421]   Normal zone: 2328576 pages, LIFO batch:63
[    0.029090] ACPI: Local APIC address 0xfee00000
[    0.029099] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[    0.032512] IOAPIC[0]: apic_id 4, version 17, address 0xfec00000, GSI 0-23
[    0.032519] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.032521] ACPI: IRQ9 used by override.
[    0.032523] Using ACPI (MADT) for SMP configuration information
[    0.032528] smpboot: Allowing 4 CPUs, 0 hotplug CPUs
[    0.032537] [mem 0xf8000000-0xffffffff] available for PCI devices
[    0.032538] Booting paravirtualized kernel on Hyper-V
[    0.032540] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.143931] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:4 nr_node_ids:1
[    0.144393] percpu: Embedded 50 pages/cpu s167192 r8192 d29416 u524288
[    0.144398] pcpu-alloc: s167192 r8192 d29416 u524288 alloc=1*2097152
[    0.144399] pcpu-alloc: [0] 0 1 2 3
[    0.144410] Built 1 zonelists, mobility grouping on.  Total pages: 3291246
[    0.144411] Kernel command line: initrd=\initrd.img panic=-1 pty.legacy_count=0 nr_cpus=4
[    0.147956] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[    0.149500] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.149568] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.174054] Memory: 4096436K/13376124K available (14342K kernel code, 1617K rwdata, 3124K rodata, 1552K init, 2372K bss, 333216K reserved, 0K cma-reserved)
[    0.174591] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.174597] Kernel/User page tables isolation: enabled
[    0.174607] ftrace: allocating 43998 entries in 172 pages
[    0.188046] rcu: Hierarchical RCU implementation.
[    0.188048] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.188049]  All grace periods are expedited (rcu_expedited).
[    0.188049] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.188050] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.190129] Using NULL legacy PIC
[    0.190130] NR_IRQS: 16640, nr_irqs: 456, preallocated irqs: 0
[    0.190527] random: crng done (trusting CPU's manufacturer)
[    0.190546] Console: colour dummy device 80x25
[    0.190548] printk: console [tty0] enabled
[    0.190553] ACPI: Core revision 20190816
[    0.190717] Failed to register legacy timer interrupt
[    0.190717] APIC: Switch to symmetric I/O mode setup
[    0.190743] Hyper-V: Using IPI hypercalls
[    0.190744] Hyper-V: Using enlightened APIC (xapic mode)
[    0.190813] Calibrating delay loop (skipped), value calculated using timer frequency.. 6815.99 BogoMIPS (lpj=34079980)
[    0.190815] pid_max: default: 32768 minimum: 301
[    0.190823] LSM: Security Framework initializing
[    0.190847] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.190865] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.191457] Last level iTLB entries: 4KB 128, 2MB 8, 4MB 8
[    0.191458] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
[    0.191460] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.191461] Spectre V2 : Mitigation: Full generic retpoline
[    0.191462] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.191462] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.191463] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[    0.191463] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[    0.191466] TAA: Mitigation: Clear CPU buffers
[    0.191467] SRBDS: Unknown: Dependent on hypervisor status
[    0.191467] MDS: Mitigation: Clear CPU buffers
[    0.191686] Freeing SMP alternatives memory: 44K
[    0.191753] smpboot: CPU0: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (family: 0x6, model: 0x9e, stepping: 0x9)
[    0.191813] Performance Events: unsupported p6 CPU model 158 no PMU driver, software events only.
[    0.191832] rcu: Hierarchical SRCU implementation.
[    0.191879] smp: Bringing up secondary CPUs ...
[    0.191994] x86: Booting SMP configuration:
[    0.191995] .... node  #0, CPUs:      #1 #2 #3
[    0.192435] smp: Brought up 1 node, 4 CPUs
[    0.192435] smpboot: Max logical packages: 1
[    0.192435] smpboot: Total of 4 processors activated (27263.98 BogoMIPS)
[    0.234421] node 0 initialised, 2236618 pages in 40ms
[    0.234487] devtmpfs: initialized
[    0.234487] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.234487] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.234487] xor: automatically using best checksumming function   avx
[    0.234487] NET: Registered protocol family 16
[    0.234487] ACPI: bus type PCI registered
[    0.234487] PCI: Fatal: No config space access function found
[    0.234487] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.240888] raid6: Forced to use recovery algorithm avx2x2
[    0.240888] raid6: Forced gen() algo avx2x4
[    0.240960] ACPI: Added _OSI(Module Device)
[    0.240961] ACPI: Added _OSI(Processor Device)
[    0.240961] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.240962] ACPI: Added _OSI(Processor Aggregator Device)
[    0.240962] ACPI: Added _OSI(Linux-Dell-Video)
[    0.240963] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.240963] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.244810] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.246084] ACPI: Interpreter enabled
[    0.246084] ACPI: (supports S0 S5)
[    0.246084] ACPI: Using IOAPIC for interrupt routing
[    0.246084] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.246084] ACPI: Enabled 1 GPEs in block 00 to 0F
[    0.250815] iommu: Default domain type: Translated
[    0.250815] SCSI subsystem initialized
[    0.250892] hv_vmbus: Vmbus version:5.0
[    0.250892] PCI: Using ACPI for IRQ routing
[    0.250892] PCI: System does not support PCI
[    0.251095] hv_vmbus: Unknown GUID: c376c1c3-d276-48d2-90a9-c04748072c60
[    0.251172] clocksource: Switched to clocksource hyperv_clocksource_tsc_page
[    0.320482] VFS: Disk quotas dquot_6.6.0
[    0.320490] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.320522] FS-Cache: Loaded
[    0.320557] pnp: PnP ACPI init
[    0.320611] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.320625] pnp: PnP ACPI: found 1 devices
[    0.324974] NET: Registered protocol family 2
[    0.325082] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.325096] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.325685] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.325770] TCP: Hash tables configured (established 131072 bind 65536)
[    0.325794] UDP hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.325817] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.325860] NET: Registered protocol family 1
[    0.326534] RPC: Registered named UNIX socket transport module.
[    0.326534] RPC: Registered udp transport module.
[    0.326535] RPC: Registered tcp transport module.
[    0.326535] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.326538] PCI: CLS 0 bytes, default 64
[    0.326593] Trying to unpack rootfs image as initramfs...
[    0.326820] Freeing initrd memory: 64K
[    0.326823] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.326824] software IO TLB: mapped [mem 0xf4000000-0xf8000000] (64MB)
[    0.326893] kvm: no hardware support
[    0.326894] has_svm: not amd or hygon
[    0.326895] kvm: no hardware support
[    0.328322] Initialise system trusted keyrings
[    0.328413] workingset: timestamp_bits=46 max_order=22 bucket_order=0
[    0.329189] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.329400] NFS: Registering the id_resolver key type
[    0.329404] Key type id_resolver registered
[    0.329404] Key type id_legacy registered
[    0.329406] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.330103] Key type cifs.idmap registered
[    0.330167] fuse: init (API version 7.31)
[    0.330289] SGI XFS with ACLs, security attributes, realtime, scrub, repair, no debug enabled
[    0.330780] 9p: Installing v9fs 9p2000 file system support
[    0.330787] FS-Cache: Netfs '9p' registered for caching
[    0.330844] FS-Cache: Netfs 'ceph' registered for caching
[    0.330845] ceph: loaded (mds proto 32)
[    0.333342] NET: Registered protocol family 38
[    0.333344] Key type asymmetric registered
[    0.333344] Asymmetric key parser 'x509' registered
[    0.333352] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.333604] hv_vmbus: registering driver hv_pci
[    0.333875] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.334220] Non-volatile memory driver v1.3
[    0.336143] brd: module loaded
[    0.337062] loop: module loaded
[    0.337163] hv_vmbus: registering driver hv_storvsc
[    0.337214] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    0.337544] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    0.337545] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    0.337557] tun: Universal TUN/TAP device driver, 1.6
[    0.337610] PPP generic driver version 2.4.2
[    0.337654] PPP BSD Compression module registered
[    0.337655] PPP Deflate Compression module registered
[    0.337658] PPP MPPE Compression module registered
[    0.337688] NET: Registered protocol family 24
[    0.337693] hv_vmbus: registering driver hv_netvsc
[    0.338748] scsi host0: storvsc_host_t
[    0.353811] VFIO - User Level meta-driver version: 0.3
[    0.354127] hv_vmbus: registering driver hyperv_keyboard
[    0.354311] rtc_cmos 00:00: RTC can wake from S4
[    0.355796] rtc_cmos 00:00: registered as rtc0
[    0.355802] rtc_cmos 00:00: alarms up to one month, 114 bytes nvram
[    0.355930] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[    0.356128] hv_utils: Registering HyperV Utility Driver
[    0.356128] hv_vmbus: registering driver hv_utils
[    0.356153] hv_vmbus: registering driver hv_balloon
[    0.356156] hv_utils: cannot register PTP clock: 0
[    0.356177] dxgk:err: dxg_drv_init  Version: 1
[    0.356179] hv_vmbus: registering driver dxgkrnl
[    0.356207] drop_monitor: Initializing network drop monitor service
[    0.356546] hv_utils: TimeSync IC version 4.0
[    0.356652] hv_balloon: Using Dynamic Memory protocol version 2.0
[    0.357068] hv_balloon: Cold memory discard enabled
[    0.358428] Mirror/redirect action on
[    0.358973] IPVS: Registered protocols (TCP, UDP)
[    0.358986] IPVS: Connection hash table configured (size=4096, memory=64Kbytes)
[    0.359290] IPVS: ipvs loaded.
[    0.359292] IPVS: [rr] scheduler registered.
[    0.359292] IPVS: [wrr] scheduler registered.
[    0.359293] IPVS: [sh] scheduler registered.
[    0.359819] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[    0.360053] Initializing XFRM netlink socket
[    0.360101] NET: Registered protocol family 10
[    0.360466] Segment Routing with IPv6
[    0.361178] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.361248] NET: Registered protocol family 17
[    0.361261] Bridge firewalling registered
[    0.361267] 8021q: 802.1Q VLAN Support v1.8
[    0.361282] sctp: Hash tables configured (bind 256/256)
[    0.361323] 9pnet: Installing 9P2000 support
[    0.361331] Key type dns_resolver registered
[    0.361341] Key type ceph registered
[    0.361486] libceph: loaded (mon/osd proto 15/24)
[    0.361500] hv_vmbus: registering driver hv_sock
[    0.361598] NET: Registered protocol family 40
[    0.361611] IPI shorthand broadcast: enabled
[    0.361675] registered taskstats version 1
[    0.361680] Loading compiled-in X.509 certificates
[    0.361850] Btrfs loaded, crc32c=crc32c-generic
[    0.362402] rtc_cmos 00:00: setting system clock to 2021-01-25T21:47:03 UTC (1611611223)
[    0.362415] Unstable clock detected, switching default tracing clock to "global"
               If you want to keep using the local clock, then add:
                 "trace_clock=local"
               on the kernel command line
[    0.364016] Freeing unused kernel image memory: 1552K
[    0.410942] Write protecting the kernel read-only data: 20480k
[    0.411492] Freeing unused kernel image memory: 1992K
[    0.411870] Freeing unused kernel image memory: 972K
[    0.411923] Run /init as init process
[    0.422720] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    0.423146] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    0.428632] sd 0:0:0:0: [sda] 536870912 512-byte logical blocks: (275 GB/256 GiB)
[    0.428633] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    0.430063] sd 0:0:0:0: [sda] Write Protect is off
[    0.430064] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
[    0.430220] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.741375] sd 0:0:0:0: [sda] Attached SCSI disk
[    0.823866] EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered
[    2.308966] FS-Cache: Duplicate cookie detected
[    2.308968] FS-Cache: O-cookie c=0000000048bd0e55 [p=00000000369f8596 fl=222 nc=0 na=1]
[    2.308969] FS-Cache: O-cookie d=000000005933ef8b n=00000000becd4849
[    2.308969] FS-Cache: O-key=[10] '34323934393337353037'
[    2.308971] FS-Cache: N-cookie c=00000000e5229f3c [p=00000000369f8596 fl=2 nc=0 na=1]
[    2.308971] FS-Cache: N-cookie d=000000005933ef8b n=0000000042be1207
[    2.308971] FS-Cache: N-key=[10] '34323934393337353037'

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 25, 2021

@b9AcE: This script also creates a log file, wsl.etl.
Can you share that as well ?

@b9AcE
Copy link
Author

b9AcE commented Jan 25, 2021

Of course, @OneBlue!
I ran the script again and since the file is both in binary and >4MB large, you can find it here:
http://b9ace.thoon.feralhosting.com/wsl.etl
Please inform me when you have it, so I can remove it.

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 25, 2021

Thanks @b9AcE.

I'm a bit puzzled because I don't see any WSL log entry in the file you shared.
Looking at the script, I discovered that some log providers are not correctly enabled.

I've created a PR to fix that, but until its merged, can you please run the script again from this branch ?

@b9AcE
Copy link
Author

b9AcE commented Jan 26, 2021

OK, @OneBlue, I re-ran the script from that branch instead and the resulting file is now in the same location as before:
http://b9ace.thoon.feralhosting.com/wsl.etl
Again, please let me know when it can be removed, for housekeeping.
Thanks!

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 26, 2021

Thank you @b9AcE. Downloaded the file.
Looking at it now.

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 26, 2021

@b9AcE: Looking at the logs, it appears that something is going wrong when WSL attempts to create the swap disk. An error there would kill the code path that configures networking.

Can you try to set wsl2.swap to 0 in .wslconfig, restart the lxssmanager service, and try again ?

@benhillis
Copy link
Member

If @OneBlue's suggestion fixes your issue, this /dupe #5437.

@ghost
Copy link

ghost commented Jan 26, 2021

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@ghost ghost closed this as completed Jan 26, 2021
@ghost ghost added the duplicate label Jan 26, 2021
@b9AcE
Copy link
Author

b9AcE commented Jan 26, 2021

Thanks @OneBlue!
I tested your .wslconfig solution and it worked, but as having a swap is preferable I switched to the symlink solution by running

New-Item -ItemType SymbolicLink -Path $env:USERPROFILE\AppData\Local\Temp -Value "$env:TEMP" -force

After a reboot, that workaround still works.
This suggests that the issue may affect everyone that changes their temp-directory system environment variables, which is a feature native to Windows for as long as I can remember... Windows 3.x? DOS?

If so, it's likely that enough people get affected by this issue that probably the symlink-workaround should get added to the Troubleshooting Windows Subsystem for Linux-page.

Thanks again!

@benhillis
Copy link
Member

@b9AcE - Did the $env:USERPROFILE\AppData\Local\Temp directory not exist prior to your creation of the symlink?

@b9AcE
Copy link
Author

b9AcE commented Jan 26, 2021

No @benhillis, I had deleted it as well as "$env:SystemRoot\TEMP" as part of my standard installation step of unifying the several temp-directory locations to instead only use "$env:SystemDrive" for all four temp-variables.
This is the first time I can recall that leading to any apparent problems, apart from some software that just doesn't check the environment variables' current values and use "C:\Windows\TEMP" regardless of system configuration.

@samuelguesnier
Copy link

Hi, I can create a symbolinc link with your command:

Au caractère Ligne:1 : 1

  • New-Item -ItemType SymbolicLink -Path $env:USERPROFILE\AppData\Local\ ...
  •   + CategoryInfo          : WriteError: (C:\Users\XNWW3722\AppData\Local\Temp:String) [New-Item], IOException
      + FullyQualifiedErrorId : NewItemDeleteIOError,Microsoft.PowerShell.Commands.NewItemCommand
    
    

New-Item : Impossible de créer un fichier déjà existant (which means impossible to create an existing file)

Do you have a solution please ?

@b9AcE
Copy link
Author

b9AcE commented Jan 27, 2021

Sounds to me like there already is a directory (or file) in that location with the same name as you are trying to create, @samuelguesnier.
Try checking in that location if it already exists, for example by entering "%USERPROFILE%\AppData\Local" in the "Run" dialog box (press "Windows+r" on your keyboard to open that dialog box).

@samuelguesnier
Copy link

Thanks for your answer @b9AcE !

You are right , there is already a Temp folder in %USERPROFILE%\AppData\Local .
So, your solution of creating a simlink is not possible for me ?
I have exactly the same issue as you but can't find a sollution :(

@b9AcE
Copy link
Author

b9AcE commented Jan 27, 2021

Unless you know that you have changed your system's environment variables %TEMP% and/or %TMP% it seems this solution is irrelevant to you @samuelguesnier, as far as I can tell.
If you have not done so, removing/replacing that directory will potentially cause even worse problems.

@samuelguesnier
Copy link

Oh ok, thanks

@kilsonrs
Copy link

kilsonrs commented Feb 9, 2022

@b9AcE: Looking at the logs, it appears that something is going wrong when WSL attempts to create the swap disk. An error there would kill the code path that configures networking.

Can you try to set wsl2.swap to 0 in .wslconfig, restart the lxssmanager service, and try again ?

For some reason, changing the swap.vhdx file permissions solved the problem. Looks like my user didn't have full control over the swap.vhdx file

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants