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

Can't access WSL P9 Network Linux Filesystem Share #5307

Closed
phippg opened this issue May 31, 2020 · 146 comments
Closed

Can't access WSL P9 Network Linux Filesystem Share #5307

phippg opened this issue May 31, 2020 · 146 comments

Comments

@phippg
Copy link

phippg commented May 31, 2020

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Microsoft Windows [Version 10.0.19041.264]

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)

    1. Updated Windows to Version 2004
    2. First time activation of WSL and Virtual Machine Platform
    3. Download an install WSL2 Linux Kernel update from https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
    4. wsl --set-default-version 2
    5. Install Ubuntu WSL Distro from Microsoft Store
    6. Launch Ubuntu WSL
    7. Complete user setup
    8. Try to access \\wsl$\Ubuntu\
    9. Receive error alert Attempt to access invalid address
  • What's wrong / what should be happening instead:

    1. Should be able to access files inside the Linux VHD

Additional information

The Ubuntu share shows in Explorer, but trying to access it fails.

No /etc/wsl.conf file in use.

dir \\wsl$ or dir \\wsl$\Ubuntu in PowerShell fail with Cannot find path ...

apt-get update && apt-get upgrade were ran including WSL restarts

dmesg
[    0.000000] Linux version 4.19.104-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Feb 19 06:37:35 UTC 2020
[    0.000000] Command line: initrd=\initrd.img panic=-1 pty.legacy_count=0 nr_cpus=12
[    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 0xae7f, hints 0x2c2c
[    0.000000] Hyper-V Host Build:19041-10.0-0-0.264
[    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] tsc: Detected 3200.151 MHz processor
[    0.000005] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000006] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000008] last_pfn = 0x338800 max_arch_pfn = 0x400000000
[    0.000037] MTRR default type: uncachable
[    0.000038] MTRR fixed ranges disabled:
[    0.000038]   00000-FFFFF uncachable
[    0.000039] MTRR variable ranges disabled:
[    0.000039]   0 disabled
[    0.000040]   1 disabled
[    0.000040]   2 disabled
[    0.000040]   3 disabled
[    0.000040]   4 disabled
[    0.000041]   5 disabled
[    0.000041]   6 disabled
[    0.000041]   7 disabled
[    0.000041] Disabled
[    0.000042] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[    0.000050] CPU MTRRs all blank - virtualized system.
[    0.000052] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC
[    0.000053] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[    0.000066] Using GB pages for direct mapping
[    0.000068] BRK [0x02e00000, 0x02e00fff] PGTABLE
[    0.000068] BRK [0x02e01000, 0x02e01fff] PGTABLE
[    0.000069] BRK [0x02e02000, 0x02e02fff] PGTABLE
[    0.000093] BRK [0x02e03000, 0x02e03fff] PGTABLE
[    0.000426] RAMDISK: [mem 0x02e35000-0x02e44fff]
[    0.000430] ACPI: Early table checksum verification disabled
[    0.000439] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[    0.000458] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000462] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000466] ACPI: DSDT 0x00000000001011B8 01E184 (v02 MSFTVM DSDT01   00000001 MSFT 05000000)
[    0.000468] ACPI: FACS 0x0000000000101114 000040
[    0.000470] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000472] ACPI: SRAT 0x000000000011F33C 0002D0 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000474] ACPI: APIC 0x000000000011F60C 0000A8 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000478] ACPI: Local APIC address 0xfee00000
[    0.000704] Zone ranges:
[    0.000705]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000706]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000707]   Normal   [mem 0x0000000100000000-0x00000003387fffff]
[    0.000708] Movable zone start for each node
[    0.000708] Early memory node ranges
[    0.000709]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.000709]   node   0: [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000710]   node   0: [mem 0x0000000100000000-0x00000003387fffff]
[    0.001485] Zeroed struct page in unavailable ranges: 31073 pages
[    0.001486] Initmem setup node 0 [mem 0x0000000000001000-0x00000003387fffff]
[    0.001488] On node 0 totalpages: 3344031
[    0.001489]   DMA zone: 59 pages used for memmap
[    0.001490]   DMA zone: 22 pages reserved
[    0.001490]   DMA zone: 3743 pages, LIFO batch:0
[    0.001568]   DMA32 zone: 16320 pages used for memmap
[    0.001570]   DMA32 zone: 1011712 pages, LIFO batch:63
[    0.023208]   Normal zone: 36384 pages used for memmap
[    0.023210]   Normal zone: 2328576 pages, LIFO batch:63
[    0.023950] ACPI: Local APIC address 0xfee00000
[    0.023956] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[    0.024336] IOAPIC[0]: apic_id 12, version 17, address 0xfec00000, GSI 0-23
[    0.024340] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.024341] ACPI: IRQ9 used by override.
[    0.024343] Using ACPI (MADT) for SMP configuration information
[    0.024349] smpboot: Allowing 12 CPUs, 0 hotplug CPUs
[    0.024359] [mem 0xf8000000-0xffffffff] available for PCI devices
[    0.024360] Booting paravirtualized kernel on bare hardware
[    0.024362] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.155722] random: get_random_bytes called from start_kernel+0x93/0x4bb with crng_init=0
[    0.155731] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:12 nr_node_ids:1
[    0.156516] percpu: Embedded 42 pages/cpu s133400 r8192 d30440 u262144
[    0.156520] pcpu-alloc: s133400 r8192 d30440 u262144 alloc=1*2097152
[    0.156521] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 [0] 08 09 10 11 -- -- -- --
[    0.156536] Built 1 zonelists, mobility grouping on.  Total pages: 3291246
[    0.156538] Kernel command line: initrd=\initrd.img panic=-1 pty.legacy_count=0 nr_cpus=12
[    0.159953] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
[    0.161551] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[    0.187709] Memory: 4096404K/13376124K available (14360K kernel code, 1575K rwdata, 2836K rodata, 1504K init, 2792K bss, 334492K reserved, 0K cma-reserved)
[    0.188000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=12, Nodes=1
[    0.188008] ftrace: allocating 41537 entries in 163 pages
[    0.201148] rcu: Hierarchical RCU implementation.
[    0.201150] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=12.
[    0.201151]  All grace periods are expedited (rcu_expedited).
[    0.201151] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=12
[    0.203218] Using NULL legacy PIC
[    0.203220] NR_IRQS: 16640, nr_irqs: 520, preallocated irqs: 0
[    0.203609] Console: colour dummy device 80x25
[    0.203612] console [tty0] enabled
[    0.203617] ACPI: Core revision 20180810
[    0.203721] Failed to register legacy timer interrupt
[    0.203730] APIC: Switch to symmetric I/O mode setup
[    0.203731] Switched APIC routing to physical flat.
[    0.203750] Hyper-V: Using IPI hypercalls
[    0.203750] Hyper-V: Using MSR based APIC access
[    0.203755] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.203857] Calibrating delay loop (skipped), value calculated using timer frequency.. 6400.30 BogoMIPS (lpj=32001510)
[    0.203858] pid_max: default: 32768 minimum: 301
[    0.203876] Security Framework initialized
[    0.203905] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.203927] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.204205] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 512
[    0.204206] Last level dTLB entries: 4KB 1536, 2MB 1536, 4MB 768, 1GB 0
[    0.204207] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.204208] Spectre V2 : Spectre mitigation: LFENCE not serializing, switching to generic retpoline
[    0.204209] Spectre V2 : Mitigation: Full generic retpoline
[    0.204209] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.204214] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[    0.204214] Spectre V2 : User space: Vulnerable
[    0.204215] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[    0.204454] Freeing SMP alternatives memory: 44K
[    0.205789] smpboot: CPU0: AMD Ryzen 5 1600 Six-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
[    0.205853] Performance Events: PMU not available due to virtualization, using software events only.
[    0.206011] rcu: Hierarchical SRCU implementation.
[    0.206136] random: crng done (trusting CPU's manufacturer)
[    0.206239] smp: Bringing up secondary CPUs ...
[    0.206299] x86: Booting SMP configuration:
[    0.206300] .... node  #0, CPUs:        #1  #2  #3  #4  #5  #6  #7
[    0.010264] calibrate_delay_direct() dropping min bogoMips estimate 0 = 29292640
[    1.254176]   #8  #9 #10 #11
[    1.853970] smp: Brought up 1 node, 12 CPUs
[    1.853970] smpboot: Max logical packages: 1
[    1.853970] smpboot: Total of 12 processors activated (76595.21 BogoMIPS)
[    1.923861] node 0 initialised, 2236307 pages in 70ms
[    1.925574] devtmpfs: initialized
[    1.925574] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    1.925574] futex hash table entries: 4096 (order: 6, 262144 bytes)
[    1.925574] xor: automatically using best checksumming function   avx
[    1.925574] NET: Registered protocol family 16
[    1.925574] ACPI: bus type PCI registered
[    1.925574] PCI: Fatal: No config space access function found
[    1.934355] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    1.934355] raid6: Forced to use recovery algorithm avx2x2
[    1.934355] raid6: Forced gen() algo avx2x4
[    1.934355] ACPI: Added _OSI(Module Device)
[    1.934355] ACPI: Added _OSI(Processor Device)
[    1.934355] ACPI: Added _OSI(3.0 _SCP Extensions)
[    1.934355] ACPI: Added _OSI(Processor Aggregator Device)
[    1.934355] ACPI: Added _OSI(Linux-Dell-Video)
[    1.934355] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    1.938806] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    1.939616] ACPI: Interpreter enabled
[    1.939616] ACPI: (supports S0 S5)
[    1.939616] ACPI: Using IOAPIC for interrupt routing
[    1.939616] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    1.939616] ACPI: Enabled 1 GPEs in block 00 to 0F
[    1.944030] SCSI subsystem initialized
[    1.944160] hv_vmbus: Vmbus version:5.0
[    1.944160] PCI: Using ACPI for IRQ routing
[    1.944160] PCI: System does not support PCI
[    1.944668] hv_vmbus: Unknown GUID: c376c1c3-d276-48d2-90a9-c04748072c60
[    1.944346] clocksource: Switched to clocksource hyperv_clocksource_tsc_page
[    1.959195] VFS: Disk quotas dquot_6.6.0
[    1.959207] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.959249] FS-Cache: Loaded
[    1.959281] pnp: PnP ACPI init
[    1.959329] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active)
[    1.959367] pnp: PnP ACPI: found 1 devices
[    1.965218] NET: Registered protocol family 2
[    1.965360] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes)
[    1.965376] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    1.965726] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    1.965815] TCP: Hash tables configured (established 131072 bind 65536)
[    1.965845] UDP hash table entries: 8192 (order: 6, 262144 bytes)
[    1.966067] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes)
[    1.966123] NET: Registered protocol family 1
[    1.966647] RPC: Registered named UNIX socket transport module.
[    1.966648] RPC: Registered udp transport module.
[    1.966648] RPC: Registered tcp transport module.
[    1.966649] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.966651] PCI: CLS 0 bytes, default 64
[    1.966720] Trying to unpack rootfs image as initramfs...
[    1.966891] Freeing initrd memory: 64K
[    1.966894] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    1.966895] software IO TLB: mapped [mem 0xf4000000-0xf8000000] (64MB)
[    1.968228] kvm: no hardware support
[    1.968230] has_svm: svm not available
[    1.968230] kvm: no hardware support
[    1.968676] Initialise system trusted keyrings
[    1.968819] workingset: timestamp_bits=46 max_order=22 bucket_order=0
[    1.969846] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.970279] NFS: Registering the id_resolver key type
[    1.970286] Key type id_resolver registered
[    1.970287] Key type id_legacy registered
[    1.970289] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.971448] Key type cifs.idmap registered
[    1.971549] fuse init (API version 7.27)
[    1.971749] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    1.973371] 9p: Installing v9fs 9p2000 file system support
[    1.973379] FS-Cache: Netfs '9p' registered for caching
[    1.973458] FS-Cache: Netfs 'ceph' registered for caching
[    1.973462] ceph: loaded (mds proto 32)
[    1.979031] NET: Registered protocol family 38
[    1.979034] Key type asymmetric registered
[    1.979034] Asymmetric key parser 'x509' registered
[    1.979049] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.979051] io scheduler noop registered (default)
[    1.979946] hv_vmbus: registering driver hv_pci
[    1.980269] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.980810] Non-volatile memory driver v1.3
[    1.984118] brd: module loaded
[    1.985362] loop: module loaded
[    1.985658] hv_vmbus: registering driver hv_storvsc
[    1.985706] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    1.986165] tun: Universal TUN/TAP device driver, 1.6
[    1.986268] PPP generic driver version 2.4.2
[    1.986403] PPP BSD Compression module registered
[    1.986405] PPP Deflate Compression module registered
[    1.986412] PPP MPPE Compression module registered
[    1.986413] NET: Registered protocol family 24
[    1.986419] hv_vmbus: registering driver hv_netvsc
[    1.988649] scsi host0: storvsc_host_t
[    1.998311] VFIO - User Level meta-driver version: 0.3
[    1.998515] hv_vmbus: registering driver hyperv_keyboard
[    1.998776] rtc_cmos 00:00: RTC can wake from S4
[    2.020806] rtc_cmos 00:00: registered as rtc0
[    2.020819] rtc_cmos 00:00: alarms up to one month, 114 bytes nvram
[    2.020972] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[    2.021457] hv_utils: Registering HyperV Utility Driver
[    2.021458] hv_vmbus: registering driver hv_util
[    2.021490] hv_vmbus: registering driver hv_balloon
[    2.021498] hv_utils: cannot register PTP clock: 0
[    2.021741] drop_monitor: Initializing network drop monitor service
[    2.021767] Mirror/redirect action on
[    2.021997] IPVS: Registered protocols (TCP, UDP)
[    2.022014] IPVS: Connection hash table configured (size=4096, memory=64Kbytes)
[    2.022243] hv_utils: TimeSync IC version 4.0
[    2.022467] hv_balloon: Using Dynamic Memory protocol version 2.0
[    2.023802] IPVS: ipvs loaded.
[    2.023807] IPVS: [rr] scheduler registered.
[    2.023808] IPVS: [wrr] scheduler registered.
[    2.023809] IPVS: [sh] scheduler registered.
[    2.024482] hv_balloon: cold memory discard enabled
[    2.027218] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[    2.027752] Initializing XFRM netlink socket
[    2.027827] NET: Registered protocol family 10
[    2.028334] Segment Routing with IPv6
[    2.031268] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.031608] NET: Registered protocol family 17
[    2.031626] Bridge firewalling registered
[    2.031633] 8021q: 802.1Q VLAN Support v1.8
[    2.031655] sctp: Hash tables configured (bind 256/256)
[    2.031706] 9pnet: Installing 9P2000 support
[    2.031720] Key type dns_resolver registered
[    2.031729] Key type ceph registered
[    2.032085] libceph: loaded (mon/osd proto 15/24)
[    2.032088] hv_vmbus: registering driver hv_sock
[    2.032188] NET: Registered protocol family 40
[    2.032571] registered taskstats version 1
[    2.032579] Loading compiled-in X.509 certificates
[    2.032889] Btrfs loaded, crc32c=crc32c-generic
[    2.033546] rtc_cmos 00:00: setting system clock to 2020-05-31 19:06:44 UTC (1590952004)
[    2.033565] 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
[    2.036017] Freeing unused kernel image memory: 1504K
[    2.103910] Write protecting the kernel read-only data: 20480k
[    2.104763] Freeing unused kernel image memory: 1988K
[    2.104992] Freeing unused kernel image memory: 1260K
[    2.104993] Run /init as init process
[    2.335994] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    2.336547] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.337453] sd 0:0:0:0: [sda] 536870912 512-byte logical blocks: (275 GB/256 GiB)
[    2.337454] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    2.337593] sd 0:0:0:0: [sda] Write Protect is off
[    2.337595] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
[    2.337869] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.338212] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    2.341187] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.354927] EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered
[    2.367411] scsi 0:0:0:1: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    2.367929] sd 0:0:0:1: Attached scsi generic sg1 type 0
[    2.368808] sd 0:0:0:1: [sdb] 536870912 512-byte logical blocks: (275 GB/256 GiB)
[    2.368810] sd 0:0:0:1: [sdb] 4096-byte physical blocks
[    2.368989] sd 0:0:0:1: [sdb] Write Protect is off
[    2.368991] sd 0:0:0:1: [sdb] Mode Sense: 0f 00 00 00
[    2.369248] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.372553] sd 0:0:0:1: [sdb] Attached SCSI disk
[    2.390587] EXT4-fs (sdb): recovery complete
[    2.392002] EXT4-fs (sdb): mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered
[    2.451966] FS-Cache: Duplicate cookie detected
[    2.451968] FS-Cache: O-cookie c=000000001d484063 [p=00000000d518c32c fl=222 nc=0 na=1]
[    2.451968] FS-Cache: O-cookie d=00000000447dde30 n=000000009eb4bc2e
[    2.451969] FS-Cache: O-key=[10] '34323934393337353230'
[    2.451971] FS-Cache: N-cookie c=00000000a9c51d6f [p=00000000d518c32c fl=2 nc=0 na=1]
[    2.451972] FS-Cache: N-cookie d=00000000447dde30 n=000000006fbe2524
[    2.451972] FS-Cache: N-key=[10] '34323934393337353230'
[    2.457658] Adding 4194304k swap on /swap/file.  Priority:-2 extents:2 across:4202496k
[    3.003938] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   50.890482] hv_balloon: Max. dynamic memory size: 13064 MB

From #4027 (comment):

dir C:\Windows\system32\p9np.dll
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        07.12.2019     16:42         107048 p9np.dll
reg query HKLM\SYSTEM\CurrentControlSet\Control\NetworkProvider /s
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\HwOrder
    ProviderOrder    REG_SZ    P9NP,RDPNP,LanmanWorkstation,webclient

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order
    ProviderOrder    REG_SZ    P9NP,RDPNP,LanmanWorkstation,webclient

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\ProviderOrder
    LanmanWorkstation    REG_DWORD    0x7d0
    RDPNP    REG_DWORD    0x3e8
    webclient    REG_DWORD    0xbb8
    P9NP    REG_DWORD    0x1f4
reg query HKLM\SYSTEM\CurrentControlSet\Services\p9np /s
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\p9np
    Description    REG_EXPAND_SZ    @%systemroot%\system32\p9np.dll,-101
    DisplayName    REG_EXPAND_SZ    @%systemroot%\system32\p9np.dll,-100

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\p9np\NetworkProvider
    DeviceName    REG_SZ    \Device\P9Rdr
    DisplayName    REG_EXPAND_SZ    @%systemroot%\system32\p9np.dll,-100
    Name    REG_SZ    Plan 9 Network Provider
    ProviderPath    REG_EXPAND_SZ    %SystemRoot%\System32\p9np.dll
    TriggerStartCompleteNotification    REG_BINARY    7510BCA3541EC641
    TriggerStartNotification    REG_BINARY    7508BCA3541EC641
    TriggerStartPrefix    REG_SZ    wsl$
reg query HKLM\SYSTEM\CurrentControlSet\Services\p9rdr /s
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\p9rdr
    DependOnService    REG_MULTI_SZ    RDBSS
    Description    REG_SZ    @%SystemRoot%\System32\drivers\p9rdr.sys,-101
    DisplayName    REG_SZ    @%SystemRoot%\System32\drivers\p9rdr.sys,-100
    ErrorControl    REG_DWORD    0x1
    ImagePath    REG_EXPAND_SZ    System32\drivers\p9rdr.sys
    Start    REG_DWORD    0x3
    Type    REG_DWORD    0x1
@ghost
Copy link

ghost commented Jun 1, 2020

If you run the command wsl -l -v in Powershell, do you see your distribution listed as expected?

@rescenic
Copy link

rescenic commented Jun 2, 2020

\\wsl$\Ubuntu\ won't work if the distro is not running in background. I prefer setup openssh-server in Ubuntu, so it will run in the background, and \\wsl$\Ubuntu\ will work.

@phippg
Copy link
Author

phippg commented Jun 4, 2020

If you run the command wsl -l -v in Powershell, do you see your distribution listed as expected?

Yes, the distro is installed, shows up, and is otherwise usable as expected.

\\wsl$\Ubuntu\ won't work if the distro is not running in background. I prefer setup openssh-server in Ubuntu, so it will run in the background, and \\wsl$\Ubuntu\ will work.

The distro is running, and manually navigating to \\wsl$ shows the expected Ubuntu folder when its running. If its not running that folder does not show up.

@rescenic
Copy link

rescenic commented Jun 4, 2020

The distro is running, and manually navigating to \\wsl$ shows the expected Ubuntu folder when its running. If its not running that folder does not show up.

Yeah, maybe it's to be expected like that. Similar to computer in a network, how can we access it if the computer is turned off.

@phippg
Copy link
Author

phippg commented Jun 4, 2020

The distro is running, and manually navigating to \\wsl$ shows the expected Ubuntu folder when its running. If its not running that folder does not show up.

Yeah, maybe it's to be expected like that. Similar to computer in a network, how can we access it if the computer is turned off.

It is not. Despite the Ubuntu folder showing up I get the behaviour described in the report.

The Ubuntu share shows in Explorer, but trying to access it fails.

@gloy-atromitos
Copy link

I have this exact same issue and my p9np.dll and registry keys look identical.

@onomatopellan
Copy link

But calling explorer.exe . from bash does it work?

9p access is a bit weird:

PS C:\> wsl -l -v
  NAME                 STATE           VERSION
* Ubuntu-20.04         Running         2
  Ubuntu-20.04.wsl1    Stopped         1
  Alpine               Stopped         2
PS C:\> cd \\wsl$\Alpine
PS Microsoft.PowerShell.Core\FileSystem::\\wsl$\Alpine>

I can only do cd \\wsl$\Alpine, cd \\wsl$\Ubuntu-20.04 and cd \\wsl$\Ubuntu-20.04.wsl1 otherwise it says path does not exist.
So make sure you are typing the exact name of the distro.

@rescenic
Copy link

rescenic commented Jun 13, 2020

@philg @gloy-atromitos Only \\wsl$\ path does not exist.
path

@phippg
Copy link
Author

phippg commented Jun 13, 2020

I don't know if I can be any more clear on this, access to the distros filesystem from Windows doesn't work ever.

But calling explorer.exe . from bash does it work?

It does not work if the pwd is in the distros filesystem.

@onomatopellan
Copy link

I've read there are two 9p running servers, one for admin and the other for the user.
Do you have UAC disabled?
Can you try explorer.exe . in an elevated WSL terminal (Run as administrator)?

@phippg
Copy link
Author

phippg commented Jun 13, 2020

Have previously done so, just verified it now, no change in behaviour across the board.

@onomatopellan
Copy link

I have seen more users with the same problem. They can use explorer.exe . from /mnt/c but not from /home/username.

Maybe @SvenGroot has an idea what's happening.

@rescenic
Copy link

try printenv if windows path is in the wsl path.

@phippg
Copy link
Author

phippg commented Jun 13, 2020

try printenv if windows path is in the wsl path.

Not necessary, the executable is found.

@onomatopellan
Copy link

Can you post the output of mount?

@phippg
Copy link
Author

phippg commented Jun 13, 2020

/dev/sdb on / type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered)
tmpfs on /mnt/wsl type tmpfs (rw,relatime)
tools on /init type 9p (ro,relatime,dirsync,aname=tools;fmask=022,loose,access=client,trans=fd,rfd=6,wfd=6)
none on /dev type devtmpfs (rw,nosuid,relatime,size=6520836k,nr_inodes=1630209,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,gid=5,mode=620,ptmxmode=000)
none on /run type tmpfs (rw,nosuid,noexec,noatime,mode=755)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,noatime)
none on /run/shm type tmpfs (rw,nosuid,nodev,noatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,noatime,mode=755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
C:\ on /mnt/c type 9p (rw,noatime,dirsync,aname=drvfs;path=C:\;uid=1000;gid=1000;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8)
G:\ on /mnt/g type 9p (rw,noatime,dirsync,aname=drvfs;path=G:\;uid=1000;gid=1000;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8)

@NickBower-Woodside
Copy link

NickBower-Woodside commented Jun 15, 2020

I'm seeing this problem also.

Can cd \\wsl$\Ubuntu-20.04 in Powershell but explorer or any other Windows program trying access just reports "Windows can not access \\wsl$\Ubuntu-20.04".

PS C:\Users\nick> wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu-20.04           Running         2
  docker-desktop         Stopped         2
  docker-desktop-data    Stopped         2

Interestingly launching explorer.exe . from within WSL2 works but always ends up opening my Documents folder in Windows filesystem instead. This works however.

PS c:\Users\nick> subst.exe w: \\wsl$\Ubuntu-20.04\home\nick
/dev/sdb on / type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered)
tmpfs on /mnt/wsl type tmpfs (rw,relatime)
tools on /init type 9p (ro,relatime,dirsync,aname=tools;fmask=022,loose,access=client,trans=fd,rfd=6,wfd=6)
none on /dev type devtmpfs (rw,nosuid,relatime,size=6488740k,nr_inodes=1622185,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,gid=5,mode=620,ptmxmode=000)
none on /run type tmpfs (rw,nosuid,noexec,noatime,mode=755)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,noatime)
none on /run/shm type tmpfs (rw,nosuid,nodev,noatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,noatime,mode=755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
C:\ on /mnt/c type 9p (rw,noatime,dirsync,aname=drvfs;path=C:\;uid=1000;gid=1000;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8)
D:\ on /mnt/d type 9p (rw,noatime,dirsync,aname=drvfs;path=D:\;uid=1000;gid=1000;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8)
G:\ on /mnt/g type 9p (rw,noatime,dirsync,aname=drvfs;path=G:\;uid=1000;gid=1000;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8)

@UncleFirefox
Copy link

I'm seeing this problem also.

Can cd \\wsl$\Ubuntu-20.04 in Powershell but explorer or any other Windows program trying access just reports "Windows can not access \wsl$\Ubuntu-20.04".

PS C:\Users\nick> wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu-20.04           Running         2
  docker-desktop         Stopped         2
  docker-desktop-data    Stopped         2

Interestingly launching explorer.exe . from within WSL2 works but always ends up opening my Documents folder in Windows filesystem instead. This works however.

PS c:\Users\nick> subst.exe w: \\wsl$\Ubuntu-20.04\home\nick
/dev/sdb on / type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered)
tmpfs on /mnt/wsl type tmpfs (rw,relatime)
tools on /init type 9p (ro,relatime,dirsync,aname=tools;fmask=022,loose,access=client,trans=fd,rfd=6,wfd=6)
none on /dev type devtmpfs (rw,nosuid,relatime,size=6488740k,nr_inodes=1622185,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,gid=5,mode=620,ptmxmode=000)
none on /run type tmpfs (rw,nosuid,noexec,noatime,mode=755)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,noatime)
none on /run/shm type tmpfs (rw,nosuid,nodev,noatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,noatime,mode=755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
C:\ on /mnt/c type 9p (rw,noatime,dirsync,aname=drvfs;path=C:\;uid=1000;gid=1000;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8)
D:\ on /mnt/d type 9p (rw,noatime,dirsync,aname=drvfs;path=D:\;uid=1000;gid=1000;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8)
G:\ on /mnt/g type 9p (rw,noatime,dirsync,aname=drvfs;path=G:\;uid=1000;gid=1000;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8)

I got exactly the same issue. Nobody found a better solution yet?

@startergo
Copy link

Got the same issue after upgrading Windows:
#5302 (comment)

@startergo
Copy link

Fixed now:
#5302 (comment)

@phippg
Copy link
Author

phippg commented Jul 3, 2020

I'm seeing this problem also.

Can cd \\wsl$\Ubuntu-20.04 in Powershell but explorer or any other Windows program trying access just reports "Windows can not access \wsl$\Ubuntu-20.04".

This is very clearly different than the issue I am having; this already doesn't work for me.

Got the same issue after upgrading Windows:
#5302 (comment)

This also doesn't seem to be related to my problem, as the dmesg there output includes errors, which mine does not.

@phippg
Copy link
Author

phippg commented Jul 9, 2020

Today I again un- and reinstalled WSL2 with a reboot in-between every step, the issue persists exactly as described in my original comment.

@thisismydesign
Copy link

I installed via chocolatey and have the same issue: choco install wsl2 wsl-ubuntu-1804

@thisismydesign
Copy link

My issue turned out to be that via Chocolatey WSL Ubuntu is installed to require admin rights (choco install wsl2 wsl-ubuntu-1804). This is also reflected in that the command line is only accessible when running as an admin. I tried running explorer as admin but that didn't help.

It was solved by:

  • Navigate to (C:\ProgramData\chocolatey\lib\wsl-ubuntu-1804\tools\unzipped) and change the folder permissions to full control for "users"

Afterward:

  • I can open WSL terminal without admin privileges
  • I can cd ~ && explorer.exe .
  • I can navigate to \\wsl$\Ubuntu-18.04 manually from explorer

@risingfish
Copy link

risingfish commented Jul 28, 2020

FWIW, I'm seeing the same issue as well. I installed Ubuntu 20.04 from the Windows Store. I can cd into \\wsl$\Ubuntu-20.04 but cannot reach it from explorer. I receive the Cannot access error like most other people. The troubleshooting tips earlier in this bug's conversation also produce the same result. The 9P network interface looks like it's starting normally, but Windows can't see it.

@MartinKolbAtWork
Copy link

FWIW, I'm seeing the same issue as well. I installed Ubunto 20.04 from the Windows Store. I can cd into \\wsl$\Ubuntu-20.04 but cannot reach it from explorer. I receive the Cannot access error like most other people. The troubleshooting tips earlier in this bug's conversation also produce the same result. The 9P network interface looks like it's starting normally, but Windows can't see it.

Very same issue on my computer as well.

@risingfish
Copy link

So, to add another twist to this, if I use the url \\wsl$\Ubuntu-20.04 in Google Chrome (just paste the url into the address bar and hit enter) , I can actually see the WSL file system like I would expect. It's only in Explorer, IE, or Edge where the error occurs. That tells me something is working right.

@MartyMacGyver
Copy link

MartyMacGyver commented Jul 31, 2020

So, to add another twist to this, if I use the url \\wsl$\Ubuntu-20.04 in Google Chrome (just paste the url into the address bar and hit enter) , I can actually see the WSL file system like I would expect. It's only in Explorer, IE, or Edge where the error occurs. That tells me something is working right.

That definitely doesn't work for mine (\\wsl$\Ubuntu in my case just leads to a "not found" error page in Chrome and Edge). In Explorer it's just the usual "Attempt to access invalid address".

cd \\wsl$\Ubuntu doesn't work from either Command or Powershell. (You can't even use cd with UNC paths in cmd.exe)

For reference I'm running Ubuntu 20.04 LTS (GNU/Linux 4.19.104-microsoft-standard x86_64) in Windows 10 Pro version 2004 build 19041.388

Edit: for completeness:

wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu                 Running         2
  docker-desktop-data    Stopped         2
  docker-desktop         Stopped         2

@TTSKarlsson
Copy link

I'm on build 22000.527 if that matters.

I've a clean install that I can reset on a laptop, it's always up to date with stable. Right now it's on 22000.493. I will check back on this in a few months to see if they've integrated the fixes you seem to have. Thanks for the feedback.

I'm now checking back, tried a new fresh install and update of Windows 11 on a new machine with build 22000.739 and WSL kernel version 5.10.102.1

Still same error, There's still no way to run WSL on Windows 11 and have interactivity with Windows or networking.

WSL has been abandoned for very very long time now. Almost a year, and I really wish at some point soon it will be usable for us running Windows 11 and not just Windows 10.

It's an incredibly nice tool when working with Windows specific stuff in parallel, and would add value to the Windows 11 ecosystem.

@EgorErmolaev1613
Copy link

EgorErmolaev1613 commented Jul 6, 2022

I dont know maybe it will work for u guys but It helped me to enter the file system simply by typing in the start menu "\wsl$"(with 2 \) and then pressing the execute command, if it helped, I would be glad :)

@joevidev
Copy link

image

I have had the same problem in my wsl2 environment, I fixed it by doing the following:

  • wsl --shutdown (from powershell with admin permissions
  • Disable and re-enable the wsl network adapter in the windows control panel
  • I restarted WSL from the terminal and it was solved by accessing explorer.exe. from the terminal

If it worked for you let me know :)

@cleonard-godaddy
Copy link

cleonard-godaddy commented Aug 13, 2022

I'm trying to understand exactly what problems people are still having now, in the summer of 2022. The original statement is a bit stale (for example, nobody should have to install kernel updates before testing whether things work).

I am able to access files across the WSL/Windows boundaries in both Windows 10 and WIndows 11, as well as use networking on both, so if someone can summarize the current state of the problem, I can try to think this through. Otherwise, re-stating the problem will at least help you think through it again with more knowledge than this group had back in 2022, and it will help other people like me who stumble into this thread via a misdirected Google match to understand the current nature of the problem better. I'm a little hesitant to give any advice based on a problem description from 2020, because while there's been good discussion about ongoing investigation, there has not been much restatement or modification of the problem statement itself.

So, here are some "ice breaker" ideas.

  • Does this problem present exactly the same symptoms as it did in 2020?
  • If so, what are those symptoms, and do the original repro steps from the OP still cause those symptoms to appear?
  • What, specifically, does step viii of the original repro mean?
    • In other words, how is the user in step viii supposed to try to access \\wsl$\Ubuntu?
      • from cmd.exe?
      • from powershell.exe?
      • from pwsh.exe?
      • from Windows Explorer?
  • What versions of Windows and cmd/PowerShell/pwsh cause the problems to occur?
    • Are any versions of Windows exempt from the problem?
      • If so, which one(s)?
  • Does the problem only happen if accessing a distribution root using the older \\wsl$\Ubuntu syntax?
    • Does it also appear if you try to view a path within that volume, as in \\wsl$\Ubuntu\home?
    • Does it appear if you use the newer "localhost" syntax on Windows 11, such as \\wsl.localhost\Ubuntu or \\wsl.localhost\Ubuntu\home?

Information like this and any other information that hasn't yet been captured might give us a better idea of where to look and where not to look. Any takers? :) As I said, my system is working, but if I can get to where I can repro the issue myself, I might be able to find a fix for it, or at least an explanation.

Also, for what it's worth, while this must be extremely frustrating, I don't think that Microsoft has abandoned WSL. Not at all, in fact. We use it a lot at work, and it has become a key part of developer workflow around the world. Its ability to let people develop for Windows and Linux on a single workstation is really valuable, and the integrations of WSL in products like VS Code that let you do that seamlessly have become valuable enough in the dev community that Microsoft would have a high-priority problem on their hands if this were misbehaving for a large number of devs. The problem here is to figure out why it's misbehaving so badly for this group of people. I hope we can figure that out so that you can enjoy its benefits again. I'd hate to see you have to use a full VM for Linux when you really shouldn't have to.

@TTSKarlsson
Copy link

TTSKarlsson commented Aug 13, 2022

I'm not at work now, but this is what we tried last week.

There are at a minimum one reboot between each point.

  1. Install windows 11 from iso
  2. Make a full update, many restarts
  3. Add the windows feature
  4. Run 'wsl update'
  5. Install Ubuntu with 'wsl install ubuntu' or whatever the list called it, maybe Ubuntu 22.04
  6. Run 'wsl'
  7. Start code from ~/
  8. Run 'explorer.exe .', <¬ here's one error, "you can't access this network resource"

We can access \wsl$... in explorer, but can't run windows apps from wsl that opens a wsl path. I wish I remembered the path it uses from wsl, it's not \wsl but something like \wsl.localhost instead. Edit: this \wsl.localhost is not accessible directly from explorer either, just \wsl$ is.

Also, using explorer.exe . in wsl might work first time, we've had false moments of happiness when restarting wsl service and so on, it lasts for maybe a minute.

@cleonard-godaddy
Copy link

cleonard-godaddy commented Aug 13, 2022

Thanks!

I'm not at work either. It is the weekend! We might have a cadence where you folks will post things during the week, and if (that's a big if) I have something to contribute, that might wait until the weekend.

So this is a clean Windows 11, fully patched. Then you run wsl --update, which means you are on the current WSL Linux kernel (my laptop says it is 5.10.102.1 in wsl, or 5.10.102.1-microsoft-standard-WSL2 in uname).

If you could verify the Ubuntu version, that would help. I have all 20.04 currently on my own laptop. I will install 22.04 (Ubuntu 22.04.1 LTS) and see what happens.

@TTSKarlsson
Copy link

I can confirm that it works the same with Ubuntu 20.04 and Debian, we've had this problem since windows 11 release when 22.04 wasn't released yet. I don't think the dist matters. Also, yes code is vscode, but I don't need to run it for the problem to happen. It has been how we tested, but I've tried reinstalling without installing the remote vscode before the problem occurred. In my eyes it just looks like the rights to wsl.localhost doesn't work properly and should be wsl$ instead, but I've no idea how to force wsl to use another network path.

@cleonard-godaddy
Copy link

Thanks @TTSKarlsson. Currently, I am unable to repro. this. This is what I did. First I ran through the steps in WIndows 10, and then I did the same things in Windows 11.

The first thing I did was to install Ubuntu 22.04.1 LTS from the Windows Store on both laptops, as it was not installed on either.

For Windows 10, in addition to performing the steps that are in the large code block below, I also opened locations in Windows Explorer and from pwsh.exe that had the \\WSL$ "hostname" prefix. Remember, wsl.localhost "hostname" is not available until Windows 11 - or at least it's not available in my build of Windows 10, which is 21H2 / 19044.1826).

Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
/etc/update-motd.d/50-landscape-sysinfo: 17: cannot create /var/lib/landscape/landscape-sysinfo.cache: Permission denied
7 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

This message is shown once a day. To disable it please create the
/home/cleonard/.hushlogin file.

cleonard@LTTC-74HJCK3:~$ # THIS IS ON WINDOWS 10

cleonard@LTTC-74HJCK3:~$ # we expect this to work:
cleonard@LTTC-74HJCK3:~$ ls -ald /mnt/c/Program*
drwxrwxrwx 1 cleonard cleonard 512 Aug 13 15:39  /mnt/c/ProgramData
dr-xr-xr-x 1 cleonard cleonard 512 Aug  5 08:50 '/mnt/c/Program Files'
dr-xr-xr-x 1 cleonard cleonard 512 Aug  2 11:30 '/mnt/c/Program Files (x86)'

cleonard@LTTC-74HJCK3:~$ # it appears that the following is currently working for me:
cleonard@LTTC-74HJCK3:~$ explorer.exe .
cleonard@LTTC-74HJCK3:~$ # ... and I have run it from / and other directories
cleonard@LTTC-74HJCK3:~$ # ... I'm not going to post screenshots b/c that would bloat the post,
cleonard@LTTC-74HJCK3:~$ # ...   but will be happy to post any you want to see

cleonard@LTTC-74HJCK3:~$ # let's see if some others work:
cleonard@LTTC-74HJCK3:~$ notepad.exe ./.bashrc
cleonard@LTTC-74HJCK3:~$ # that did work

cleonard@LTTC-74HJCK3:~$ # let's try something more interesting...
cleonard@LTTC-74HJCK3:~$ #   since beyond compare is a Windows program, I have to give it file
cleonard@LTTC-74HJCK3:~$ #   references it understands, so I'll use \\wsl$ references. since
cleonard@LTTC-74HJCK3:~$ #   backslash is an escape character in bash, I will have to escape
cleonard@LTTC-74HJCK3:~$ #   those by doubling them up. let's see if this works...
cleonard@LTTC-74HJCK3:~$ /mnt/c/Program\ Files/Beyond\ Compare\ 4/BCompare.exe \\\\wsl$\\Ubuntu-22.04\\home\\cleonard\\.bashrc \\\\wsl$\\Ubuntu-22.04\\home\\cleonard\\.bash_logout

cleonard@LTTC-74HJCK3:~$ # it took me three tries, but that worked. terrible typing experience, though.
cleonard@LTTC-74HJCK3:~$ # it seems like single-quoting the filenames would be easier:
cleonard@LTTC-74HJCK3:~$ /mnt/c/Program\ Files/Beyond\ Compare\ 4/BCompare.exe '\\wsl$\Ubuntu-22.04\home\cleonard\.bashrc' '\\wsl$\Ubuntu-22.04\home\cleonard\.bash_logout'
cleonard@LTTC-74HJCK3:~$ # that _was_ much easier, though still no tab completion. blech.

cleonard@LTTC-74HJCK3:~$ # this might be the easiest way to run that particular command. it comes down to personal preference, I suppose.
cleonard@LTTC-74HJCK3:~$ alias bcompare='/mnt/c/Program\ Files/Beyond\ Compare\ 4/BCompare.exe'
cleonard@LTTC-74HJCK3:~$ bcompare $(wslpath -w ~/.bashrc) $(wslpath -w ~/.bash_logout)
cleonard@LTTC-74HJCK3:~$ # that also worked, yay

On to WIndows 11, I did exactly the same steps, except that I also accessed folders from both WIndows Explorer and pwsh.exe using the wsl.localhost "hostname" prefix. The results are basically identical, but here's the code block for that.

Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
/etc/update-motd.d/50-landscape-sysinfo: 17: cannot create /var/lib/landscape/landscape-sysinfo.cache: Permission denied
7 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

This message is shown once a day. To disable it please create the
/home/chris/.hushlogin file.

cleonard@caerdydd:~$ # THIS IS ON WINDOWS 11

chris@caerdydd:~$ # we expect this to work:
chris@caerdydd:~$ ls -ald /mnt/c/Program*
drwxrwxrwx 1 chris chris 512 Aug  9 15:55  /mnt/c/ProgramData
dr-xr-xr-x 1 chris chris 512 Jul 11 16:24 '/mnt/c/Program Files'
dr-xr-xr-x 1 chris chris 512 Jul 15 21:20 '/mnt/c/Program Files (x86)'

chris@caerdydd:~$ # it appears that the following is currently working for me:
chris@caerdydd:~$ explorer.exe .
chris@caerdydd:~$ # ... and I have run it from / and other directories
chris@caerdydd:~$ # ... I'm not going to post screenshots b/c that would bloat the post,
chris@caerdydd:~$ # ...   but will be happy to post any you want to see

chris@caerdydd:~$ # let's see if some others work:
chris@caerdydd:~$ notepad.exe ./.bashrc
chris@caerdydd:~$ # that worked, but took longer to load on Windows 11 than it did on Windows 10.
chris@caerdydd:~$ # that might or might not be a repeatable result - i'm not going to check things like that now.

chris@caerdydd:~$ # on to the Beyond Compare tests!
chris@caerdydd:~$ # these all worked just like they did on Windows 10.
chris@caerdydd:~$ /mnt/c/Program\ Files/Beyond\ Compare\ 4/BCompare.exe \\\\wsl$\\Ubuntu-22.04\\home\\cleonard\\.bashrc \\\\wsl$\\Ubuntu-22.04\\home\\cleonard\\.bash_logout
chris@caerdydd:~$ /mnt/c/Program\ Files/Beyond\ Compare\ 4/BCompare.exe \\\\wsl$\\Ubuntu-22.04\\home\\chris\\.bashrc \\\\wsl$\\Ubuntu-22.04\\home\\chris\\.bash_logout
chris@caerdydd:~$ /mnt/c/Program\ Files/Beyond\ Compare\ 4/BCompare.exe '\\wsl$\Ubuntu-22.04\home\chris\.bashrc' '\\wsl$\Ubuntu-22.04\home\chris\.bash_logout'

chris@caerdydd:~$ alias bcompare='/mnt/c/Program\ Files/Beyond\ Compare\ 4/BCompare.exe'
chris@caerdydd:~$ bcompare $(wslpath -w ~/.bashrc) $(wslpath -w ~/.bash_logout)

So for the time being, I am in the "it's working so far" group. I will try to get my dotfiles and git repos ported over to 22.04.1 in the next week or so in order to use it as my daily repo and see if it will break for me.

Let me know what I may have missed, misunderstood, or left out in trying to recreate the problem. Thanks!

@TTSKarlsson
Copy link

I would say it works for you, at least if you let the wsl run for quite some time and it still worked.

I'll do the same, when I'm at my test setup, follow the same format and post results here. I personally really want this to work.

@TTSKarlsson
Copy link

Ok, I'm in position. I didn't reinstall windows this time as it's newly installed anyway. I uninstalled previous Ubuntu before doing this.

20220814_094826_793x252

20220814_095104_827x376

20220814_095315_756x639

I logged out from wsl for 1 minute here.

20220814_095505_644x112

20220814_095719_673x208

I can right now access \\wsl.localhost\Ubuntu from an open explorer window. And right now I can't run any executables from windows inside wsl, after wsl being (automatically) stopped one time. My experience is that \\wsl.localhost will keep working but \\wsl.localhost\Ubuntu will be denied access after a while, this hasn't happened yet here though.

@TTSKarlsson
Copy link

TTSKarlsson commented Aug 14, 2022

For completeness I also installed 22.04 from the store with the graphical installer.

20220814_102549_1070x566

20220814_102507_853x448

I suspect enough time has passed for \\wsl.localhost to be denied access, so I'm going back to Ubuntu 20.04

20220814_102927_1081x383

And I get the same denied message.

20220814_102914_736x295

@TTSKarlsson
Copy link

In an open explorer window, I can access wsl.localhost

20220814_103227_629x182

But not any of the wsl roots

20220814_103241_750x343

Restarting the computer doesn't help, I've had success with restarting the entire service but this happens after a few minutes again.

@TTSKarlsson
Copy link

My network setup to this machine is nothing weird, a normal router with normal dns on a 200/200 fiber connection. No proxies or vpns.

20220814_103627_560x157

There are network shares on the network, like ssh and samba, but they shouldn't change this machines settings in any way.

20220814_104028_750x375

@TTSKarlsson
Copy link

@cleonard-godaddy , Do you need more info?

@cleonard-godaddy
Copy link

cleonard-godaddy commented Aug 19, 2022

@TTSKarlsson, thanks for the nudge. I don't think I need more info. My "problem" is that I still cannot reproduce the problem on Windows 10, with either Ubuntu 20.04 LTS or 22.04 LTS. I haven't used my Windows 11 laptop this week.

Actually, I do have one question: what Windows build were you on when you sent your last set of comments?

And @Ninili, what version and build of WIndows, WSL version(s), and Linux distribution versions are you running?

You probably know this, but just in case it helps you or someone else:

  • the Windows command winver is one way to find your WIndows build
  • running wsl -l -v from Powershell will show the WSL version of each of your distribution installations
  • running cat /etc/*release* inside each distribution is a nice portable hack to get lots of distro version information

@TTSKarlsson
Copy link

TTSKarlsson commented Aug 19, 2022

Windows 11 build 22000.856

PS C:\Windows\System32> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu          Stopped         2
  Ubuntu-22.04    Stopped         2
testing@upstairs:~$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

and

tkarlsson@upstairs:~$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Important things you should know:

  1. The exact same problem has existed on every version of Windows 11. Since the public release at least.
  2. Hardware doesn't matter. It is the same problem no matter whether the computer has AMD or Intel chipsets.
  3. It doesn't matter whether the computer was upgraded from Windows 10 or installed from Windows 11 iso.
  4. \\wsl$\<dist> works, it's only \\wsl.localhost\<dist> that doesn't work (getting denied), but wsl itself uses the latter so there's no choice to use the one that works.
  5. It doesn't matter whether it is WSL version 1 or 2. I've tried both on multiple machines. Both uses \\wsl.localhost\<dist> to launch windows executables, so it won't work as long as we're denied access.
  6. We've tried this on many machines, vastly different in configuration, and the result is always the same regardless of dist installed. We've only tried the official dists though, no custom version from third party places.
  7. For us it's enough if any Debian based dist works, but I'm sure it's not about the dist at all.

@Ninili
Copy link

Ninili commented Aug 19, 2022

And @Ninili, what version and build of WIndows, WSL version(s), and Linux distribution versions are you running?

You probably know this, but just in case it helps you or someone else:

  • the Windows command winver is one way to find your WIndows build
  • running wsl -l -v from Powershell will show the WSL version of each of your distribution installations
  • running cat /etc/*release* inside each distribution is a nice portable hack to get lots of distro version information

Actually I could resolve the issue by calling "explorer.exe ." from within the wsl, from my home path like @onomatopellan suggested! I didn't even know you could just call explorer.exe from within the WSL. But this kind of "broke the barrier".
That's why I also deleted my comment. It's just strange that I had to do this after about 2-3 years of WSL2 usage. And it seems I have to do it again after every boot now. But it's a workaround I can live with.

And I'm on 21H2 (Build 19044.1889), the WSL2 distros are all kinds of versions (16.xx, 18.04, 20.04, they all run now)

@MisterTimn
Copy link

Any updates or workarounds on this issue? Experiencing the same problem with WSL 2, Ubuntu 22.04.1 and Windows 11 22h2 (Build 22621.521)

@TTSKarlsson
Copy link

PS C:\Windows\System32> wsl --version
WSL version: 0.66.2.0
Kernel version: 5.15.57.1
WSLg version: 1.0.42
MSRDC version: 1.2.3401
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.525

I tried this again with a new install, and now it works. I've revisited a couple of days to make sure it is stable and it keeps on working, which is a first since the launch of Win11 one year ago. I'll do the same on a couple other machines again now, and if it works there too I won't come back to this thread.

  • Working = No access denied to wsl.localhost and can run windows executables with wsl directories as arguments.

@Matteo-lu
Copy link

Any updates or workarounds on this issue? Experiencing the same problem with WSL 2, Ubuntu 22.04.1 and Windows 11 22h2 (Build 22621.521)

Could you solve the issue?

@MisterTimn
Copy link

Could you solve the issue?

So far no good.

@tolga-balci
Copy link

tolga-balci commented Nov 21, 2022

Unfortunately same here with wsl2.

OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.19044 N/A Build 19044

@MisterTimn
Copy link

Any updates or workarounds on this issue? Experiencing the same problem with WSL 2, Ubuntu 22.04.1 and Windows 11 22h2 (Build 22621.521)

Could you solve the issue?

I was able to resolve my issue by editing the registry entries HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order and HwOrder and making sure P9NP is at the start of those comma separated lists.

Source: #4027 (comment)

@rationalthinker1
Copy link

@MisterTimn method worked for me.

@zbuc
Copy link

zbuc commented Dec 30, 2022

I am having this issue, but my HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\{Order,HwOrder}\ProviderOrder have the P9NP:

P9NP,RDPNP,LanmanWorkstation,webclient

PS C:\Users\chris> wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu                 Running         2
  docker-desktop         Running         2
  docker-desktop-data    Running         2
# cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

@lustremedia
Copy link

You can also set the regex order directly in the windows interface so that it will persist after reboot: https://learn.microsoft.com/en-us/troubleshoot/windows-client/deployment/network-provider-settings-removed-in-place-upgrade

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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