Closed heartacker closed 1 week ago
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
我也遇到了同样的问题 请问怎么操作可以解决?
[Uploading WslLogs-2024-07-18_12-48-52.zip…]()
我知道如何解决了 预览版的WSL有问题 去下载正式版的2.2.4.0就可以解决问题了
我知道如何解决了 预览版的WSL有问题 去下载正式版的2.2.4.0就可以解决问题了
就是github 的链接吗
我知道如何解决了 预览版的WSL有问题 去下载正式版的2.2.4.0就可以解决问题了
就是github 的链接吗
是的就是 正式版的下载之后重新安装一下就可以了
我知道如何解决了 预览版的WSL有问题 去下载正式版的2.2.4.0就可以解决问题了
数据会被覆盖么?
2.3.11.0 同样的问题,正用着直接crash了然后启动不了了
我知道如何解决了 预览版的WSL有问题 去下载正式版的2.2.4.0就可以解决问题了
我目前也是2.3.11.0,怎么降级到2.2.4.0?
WslLogs-2024-07-19_13-37-06.zip here is the log!
I'm having the same issue starting up the kernel built from the WSL2 kernel source with tag linux-msft-wsl-6.6.36.3
. I only changed the config so that everything was =y
instead of =m
as recommended in the README for building. My bzImage is in c:\Users\naveen\bzImage-linux-msft-wsl-6.6.36.3
and I have the following .wslconfig
:
[wsl2]
kernel=C:\\Users\\naveen\\bzImage-linux-msft-wsl-6.6.36.3
networkingMode=mirrored
WSL2 info:
wsl --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2 (ignore this, this is the kernel I had to revert to because of the error)
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.3880
here is wsl debug console log
[ 0.000000] Linux version 6.6.36.3-microsoft-standard-WSL2 (root@39abeb63c66c) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP PREEMPT_DYNAMIC Sat Jun 29 07:01:04 UTC 2024
[ 0.000000] Command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=12 hv_utils.timesync_implicit=1 cgroup_no_v1=all earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 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-0x00000002fe3fffff] usable
[ 0.000000] earlycon: uart8250 at I/O port 0x3f8 (options '115200')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] APIC: Static calls initialized
[ 0.000000] DMI not present or invalid.
[ 0.000000] Hypervisor detected: Microsoft Hyper-V
[ 0.000000] Hyper-V: privilege flags low 0xae7f, high 0x3b8030, hints 0x9a4e24, misc 0xe4bed7b6
[ 0.000000] Hyper-V: Host Build 10.0.26100.1150-1-0
[ 0.000000] Hyper-V: Nested features: 0x3e0101
[ 0.000000] Hyper-V: LAPIC Timer Frequency: 0xc3500
[ 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.000000] clocksource: hyperv_clocksource_msr: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000000] tsc: Detected 2995.201 MHz processor
[ 0.000056] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.001845] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.003541] last_pfn = 0x2fe400 max_arch_pfn = 0x400000000
[ 0.005078] MTRR map: 5 entries (4 fixed + 1 variable; max 20), built from 8 variable MTRRs
[ 0.007946] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.009987] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[ 0.011714] Using GB pages for direct mapping
[ 0.013145] RAMDISK: [mem 0x04be3000-0x04e09fff]
[ 0.014402] ACPI: Early table checksum verification disabled
[ 0.015979] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[ 0.017544] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.019774] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.022071] ACPI: DSDT 0x00000000001011B8 01E191 (v02 MSFTVM DSDT01 00000001 MSFT 05000000)
[ 0.024356] ACPI: FACS 0x0000000000101114 000040
[ 0.025744] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.028902] ACPI: SRAT 0x000000000011F349 000370 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.030928] ACPI: APIC 0x000000000011F6B9 0000A8 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.032959] ACPI: Reserving FACP table memory at [mem 0x101000-0x101113]
[ 0.034739] ACPI: Reserving DSDT table memory at [mem 0x1011b8-0x11f348]
[ 0.036836] ACPI: Reserving FACS table memory at [mem 0x101114-0x101153]
[ 0.038745] ACPI: Reserving OEM0 table memory at [mem 0x101154-0x1011b7]
[ 0.040599] ACPI: Reserving SRAT table memory at [mem 0x11f349-0x11f6b8]
[ 0.042538] ACPI: Reserving APIC table memory at [mem 0x11f6b9-0x11f760]
[ 0.044226] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[ 0.045364] SRAT: PXM 0 -> APIC 0x01 -> Node 0
[ 0.046592] SRAT: PXM 0 -> APIC 0x02 -> Node 0
[ 0.047697] SRAT: PXM 0 -> APIC 0x03 -> Node 0
[ 0.048830] SRAT: PXM 0 -> APIC 0x04 -> Node 0
[ 0.050045] SRAT: PXM 0 -> APIC 0x05 -> Node 0
[ 0.051125] SRAT: PXM 0 -> APIC 0x06 -> Node 0
[ 0.052199] SRAT: PXM 0 -> APIC 0x07 -> Node 0
[ 0.053267] SRAT: PXM 0 -> APIC 0x08 -> Node 0
[ 0.054346] SRAT: PXM 0 -> APIC 0x09 -> Node 0
[ 0.055424] SRAT: PXM 0 -> APIC 0x0a -> Node 0
[ 0.056934] SRAT: PXM 0 -> APIC 0x0b -> Node 0
[ 0.058473] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0xf7ffffff] hotplug
[ 0.060663] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x2fe3fffff] hotplug
[ 0.062800] ACPI: SRAT: Node 0 PXM 0 [mem 0x2fe400000-0x9ffdfffff] hotplug
[ 0.064549] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000-0xffffffffff] hotplug
[ 0.066212] ACPI: SRAT: Node 0 PXM 0 [mem 0x10000000000-0x1ffffffffff] hotplug
[ 0.068044] ACPI: SRAT: Node 0 PXM 0 [mem 0x20000000000-0x3ffffffffff] hotplug
[ 0.069831] ACPI: SRAT: Node 0 PXM 0 [mem 0x40000000000-0x7ffffffffff] hotplug
[ 0.071543] ACPI: SRAT: Node 0 PXM 0 [mem 0x80000000000-0xfffffffffff] hotplug
[ 0.073373] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000000-0x1fffffffffff] hotplug
[ 0.075144] ACPI: SRAT: Node 0 PXM 0 [mem 0x200000000000-0x3fffffffffff] hotplug
[ 0.077046] ACPI: SRAT: Node 0 PXM 0 [mem 0x400000000000-0x7fffffffffff] hotplug
[ 0.078836] ACPI: SRAT: Node 0 PXM 0 [mem 0x800000000000-0xffffffffffff] hotplug
[ 0.080582] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000000-0x1ffffffffffff] hotplug
[ 0.082357] ACPI: SRAT: Node 0 PXM 0 [mem 0x2000000000000-0x3ffffffffffff] hotplug
[ 0.084125] ACPI: SRAT: Node 0 PXM 0 [mem 0x4000000000000-0x7ffffffffffff] hotplug
[ 0.085896] ACPI: SRAT: Node 0 PXM 0 [mem 0x8000000000000-0xfffffffffffff] hotplug
[ 0.087874] NUMA: Node 0 [mem 0x00000000-0xf7ffffff] + [mem 0x100000000-0x2fe3fffff] -> [mem 0x00000000-0x2fe3fffff]
[ 0.090636] NODE_DATA(0) allocated [mem 0x2fe3de000-0x2fe3fffff]
[ 0.092284] Zone ranges:
[ 0.092949] DMA32 [mem 0x0000000000001000-0x00000000ffffffff]
[ 0.094518] Normal [mem 0x0000000100000000-0x00000002fe3fffff]
[ 0.096066] Device empty
[ 0.096798] Movable zone start for each node
[ 0.097861] Early memory node ranges
[ 0.098759] node 0: [mem 0x0000000000001000-0x000000000009ffff]
[ 0.100345] node 0: [mem 0x0000000000200000-0x00000000f7ffffff]
[ 0.101930] node 0: [mem 0x0000000100000000-0x00000002fe3fffff]
[ 0.103594] Initmem setup node 0 [mem 0x0000000000001000-0x00000002fe3fffff]
[ 0.105398] On node 0, zone DMA32: 1 pages in unavailable ranges
[ 0.123140] On node 0, zone DMA32: 352 pages in unavailable ranges
[ 0.125444] On node 0, zone Normal: 7168 pages in unavailable ranges
[ 0.127120] ACPI: PM-Timer IO Port: 0x408
[ 0.129586] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[ 0.131339] IOAPIC[0]: apic_id 12, version 17, address 0xfec00000, GSI 0-23
[ 0.133266] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.135244] ACPI: Using ACPI (MADT) for SMP configuration information
[ 0.137304] TSC deadline timer available
[ 0.138388] smpboot: Allowing 12 CPUs, 0 hotplug CPUs
[ 0.140108] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.142202] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[ 0.144047] PM: hibernation: Registered nosave memory: [mem 0x000e0000-0x000e0fff]
[ 0.145830] PM: hibernation: Registered nosave memory: [mem 0x000e1000-0x000fffff]
[ 0.147642] PM: hibernation: Registered nosave memory: [mem 0x00100000-0x001fffff]
[ 0.149406] PM: hibernation: Registered nosave memory: [mem 0xf8000000-0xffffffff]
[ 0.151475] [mem 0xf8000000-0xffffffff] available for PCI devices
[ 0.153058] Booting paravirtualized kernel on Hyper-V
[ 0.154286] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.157557] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:12 nr_cpu_ids:12 nr_node_ids:1
[ 0.160998] percpu: Embedded 63 pages/cpu s221184 r8192 d28672 u262144
[ 0.162840] pcpu-alloc: s221184 r8192 d28672 u262144 alloc=1*2097152
[ 0.164586] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 [0] 08 09 10 11 -- -- -- --
[ 0.166686] Hyper-V: PV spinlocks enabled
[ 0.167624] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.169325] Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=12 hv_utils.timesync_implicit=1 cgroup_no_v1=all earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0
[ 0.173953] Unknown kernel command line parameters "WSL_ROOT_INIT=1", will be passed to user space.
[ 0.176405] random: crng init done
[ 0.181531] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[ 0.185737] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.187954] Fallback order for Node 0: 0
[ 0.187958] Built 1 zonelists, mobility grouping on. Total pages: 3056240
[ 0.190711] Policy zone: Normal
[ 0.191463] mem auto-init: stack:off, heap alloc:on, heap free:off
[ 0.192984] software IO TLB: area num 16.
[ 0.228428] Memory: 4124256K/12421756K available (20480K kernel code, 3450K rwdata, 13428K rodata, 4464K init, 6244K bss, 340792K reserved, 0K cma-reserved)
[ 0.232069] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=12, Nodes=1
[ 0.233840] ftrace: allocating 55391 entries in 217 pages
[ 0.240754] ftrace: allocated 217 pages with 5 groups
[ 0.242975] Dynamic Preempt: none
[ 0.243826] rcu: Preemptible hierarchical RCU implementation.
[ 0.245738] rcu: RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=12.
[ 0.247995] Trampoline variant of Tasks RCU enabled.
[ 0.249563] Rude variant of Tasks RCU enabled.
[ 0.250686] Tracing variant of Tasks RCU enabled.
[ 0.251833] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.253641] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=12
[ 0.257153] Using NULL legacy PIC
[ 0.258038] NR_IRQS: 524544, nr_irqs: 520, preallocated irqs: 0
[ 0.259575] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.261567] Console: colour dummy device 80x25
[ 0.262609] ACPI: Core revision 20230628
[ 0.263664] Failed to register legacy timer interrupt
[ 0.264909] APIC: Switch to symmetric I/O mode setup
[ 0.267194] x2apic enabled
[ 0.268772] APIC: Switched APIC routing to: physical x2apic
[ 0.270072] Hyper-V: enabling crash_kexec_post_notifiers
[ 0.271468] Hyper-V: Disabling IBT because of Hyper-V bug
[ 0.272767] Hyper-V: Using IPI hypercalls
[ 0.273928] APIC: send_IPI() replaced with hv_send_ipi()
[ 0.275267] APIC: send_IPI_mask() replaced with hv_send_ipi_mask()
[ 0.276711] APIC: send_IPI_mask_allbutself() replaced with hv_send_ipi_mask_allbutself()
[ 0.278593] APIC: send_IPI_allbutself() replaced with hv_send_ipi_allbutself()
[ 0.280274] APIC: send_IPI_all() replaced with hv_send_ipi_all()
[ 0.281662] APIC: send_IPI_self() replaced with hv_send_ipi_self()
[ 0.283163] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2b2c8fb17c7, max_idle_ns: 440795243548 ns
[ 0.285597] Calibrating delay loop (skipped), value calculated using timer frequency.. 5990.40 BogoMIPS (lpj=11980804)
[ 0.288132] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[ 0.289593] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.289593] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.289593] Spectre V1 : Mitigation: usercopy/swapgs barriers and user pointer sanitization
[ 0.289593] Spectre V2 : Mitigation: Enhanced / Automatic IBRS
[ 0.289593] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.289593] Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT
[ 0.289593] RETBleed: Mitigation: Enhanced IBRS
[ 0.289593] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[ 0.289593] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl
[ 0.289593] unchecked MSR access error: WRMSR to 0xda0 (tried to write 0x0000000000008800) at rIP: 0xffffffffae097568 (native_write_msr+0x8/0x30)
[ 0.289593] Call Trace:
[ 0.289593]
[ 0.289593] x86/fpu: Enabled xstate features 0x807, context size is 848 bytes, using 'compacted' format.
[ 0.289593] Freeing SMP alternatives memory: 44K
[ 0.289593] pid_max: default: 32768 minimum: 301
[ 0.289593] LSM: initializing lsm=lockdown,capability,landlock,yama,safesetid,selinux,integrity
[ 0.289593] landlock: Up and running.
[ 0.289593] Yama: becoming mindful.
[ 0.289593] SELinux: Initializing.
[ 0.289593] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.289593] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.289593] cgroup: Disabling cpuset control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling cpu control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling cpuacct control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling io control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling memory control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling devices control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling freezer control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling net_cls control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling perf_event control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling net_prio control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling hugetlb control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling pids control group subsystem in v1 mounts
[ 0.289593] cgroup: Disabling rdma control group subsystem in v1 mounts
[ 0.289593] smpboot: CPU0: 12th Gen Intel(R) Core(TM) i5-12500 (family: 0x6, model: 0x97, stepping: 0x5)
[ 0.289593] RCU Tasks: Setting shift to 4 and lim to 1 rcu_task_cb_adjust=1.
[ 0.289623] RCU Tasks Rude: Setting shift to 4 and lim to 1 rcu_task_cb_adjust=1.
[ 0.291770] RCU Tasks Trace: Setting shift to 4 and lim to 1 rcu_task_cb_adjust=1.
[ 0.293574] Performance Events: Architectural LBR, AnyThread deprecated, Alderlake Hybrid events, 32-deep LBR, full-width counters, Intel PMU driver.
[ 0.296841] core: cpu_core PMU driver:
[ 0.297595] ... version: 5
[ 0.298520] ... bit width: 48
[ 0.299462] ... generic registers: 8
[ 0.300654] ... value mask: 0000ffffffffffff
[ 0.301598] ... max period: 00007fffffffffff
[ 0.302913] ... fixed-purpose events: 4
[ 0.303909] ... event mask: 0001000f000000ff
[ 0.305301] signal: max sigframe size: 1776
[ 0.305752] rcu: Hierarchical SRCU implementation.
[ 0.306885] rcu: Max phase no-delay instances is 1000.
[ 0.308790] smp: Bringing up secondary CPUs ...
[ 0.309733] smpboot: x86: Booting SMP configuration:
[ 0.310916] .... node #0, CPUs: #2 #4 #6 #8 #10 #1 #3 #5 #7 #9 #11
[ 0.314548] smp: Brought up 1 node, 12 CPUs
[ 0.318741] smpboot: Max logical packages: 1
[ 0.319762] smpboot: Total of 12 processors activated (71884.82 BogoMIPS)
[ 0.337718] node 0 deferred pages initialised in 16ms
[ 0.339321] devtmpfs: initialized
[ 0.341637] x86/mm: Memory block size: 128MB
[ 0.343397] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.345626] futex hash table entries: 4096 (order: 6, 262144 bytes, linear)
[ 0.347685] pinctrl core: initialized pinctrl subsystem
[ 0.350883] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.353097] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[ 0.354202] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.356430] audit: initializing netlink subsys (disabled)
[ 0.357629] audit: type=2000 audit(1721610858.072:1): state=initialized audit_enabled=0 res=1
[ 0.357685] thermal_sys: Registered thermal governor 'step_wise'
[ 0.359732] thermal_sys: Registered thermal governor 'user_space'
[ 0.361313] cpuidle: using governor ladder
[ 0.362677] cpuidle: using governor menu
[ 0.363701] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.365375] dca service started, version 1.12.1
[ 0.365605] PCI: Fatal: No config space access function found
[ 0.367417] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[ 0.369669] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.371304] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.372956] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.373597] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.375347] cryptd: max_cpu_qlen set to 1000
[ 0.375347] ACPI: Added _OSI(Module Device)
[ 0.377597] ACPI: Added _OSI(Processor Device)
[ 0.378761] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.379988] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.384130] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.386013] ACPI: _OSC evaluation for CPUs failed, trying _PDC
[ 0.387662] ACPI: Interpreter enabled
[ 0.388667] ACPI: PM: (supports S0 S5)
[ 0.389601] ACPI: Using IOAPIC for interrupt routing
[ 0.391012] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.393325] PCI: Using E820 reservations for host bridge windows
[ 0.393686] ACPI: Enabled 1 GPEs in block 00 to 0F
[ 0.395564] iommu: Default domain type: Translated
[ 0.395564] iommu: DMA domain TLB invalidation policy: lazy mode
[ 0.397675] SCSI subsystem initialized
[ 0.398652] libata version 3.00 loaded.
[ 0.398652] pps_core: LinuxPPS API ver. 1 registered
[ 0.399894] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.401606] PTP clock support registered
[ 0.402639] EDAC MC: Ver: 3.0.0
[ 0.403489] hv_vmbus: Vmbus version:5.3
[ 0.405721] hv_vmbus: Unknown GUID: 6e382d18-3336-4f4b-acc4-2b7703d4df4a
[ 0.407623] hv_vmbus: Unknown GUID: dde9cbc0-5060-4436-9448-ea1254a5d177
[ 0.407827] NetLabel: Initializing
[ 0.408705] NetLabel: domain hash size = 128
[ 0.409596] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.411006] NetLabel: unlabeled traffic allowed by default
[ 0.412408] PCI: Using ACPI for IRQ routing
[ 0.413457] PCI: System does not support PCI
[ 0.413697] vgaarb: loaded
[ 0.417876] clocksource: Switched to clocksource tsc-early
[ 0.419721] VFS: Disk quotas dquot_6.6.0
[ 0.420935] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.422752] FS-Cache: Loaded
[ 0.423524] pnp: PnP ACPI init
[ 0.424395] pnp: PnP ACPI: found 3 devices
[ 0.432987] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.435612] NET: Registered PF_INET protocol family
[ 0.437641] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.441263] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.443470] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.445672] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.448442] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[ 0.450434] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.452382] UDP hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.454175] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.455933] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.457275] NET: Registered PF_XDP protocol family
[ 0.458402] PCI: CLS 0 bytes, default 64
[ 0.459348] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.459478] Trying to unpack rootfs image as initramfs...
[ 0.460864] software IO TLB: mapped [mem 0x00000000f4000000-0x00000000f8000000] (64MB)
[ 0.465738] Freeing initrd memory: 2204K
[ 0.466931] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
[ 0.469858] Initialise system trusted keyrings
[ 0.471118] Key type blacklist registered
[ 0.472301] workingset: timestamp_bits=36 max_order=22 bucket_order=0
[ 0.473997] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.475390] fuse: init (API version 7.39)
[ 0.476452] SGI XFS with ACLs, security attributes, realtime, verbose warnings, quota, no debug enabled
[ 0.479721] 9p: Installing v9fs 9p2000 file system support
[ 0.485835] Key type asymmetric registered
[ 0.486972] Asymmetric key parser 'x509' registered
[ 0.488305] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.490344] io scheduler mq-deadline registered
[ 0.491556] io scheduler kyber registered
[ 0.494909] hv_vmbus: registering driver hv_pci
[ 0.496336] hv_pci c4b741f5-5582-4c98-8f8b-2e082933c396: PCI VMBus probing: Using version 0x10004
[ 0.499011] hv_pci c4b741f5-5582-4c98-8f8b-2e082933c396: PCI host bridge to bus 5582:00
[ 0.501068] pci_bus 5582:00: root bus resource [mem 0x9ffe00000-0x9ffe02fff window]
[ 0.503141] pci_bus 5582:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.505617] pci 5582:00:00.0: [1af4:1043] type 00 class 0x010000
[ 0.507513] pci 5582:00:00.0: reg 0x10: [mem 0x9ffe00000-0x9ffe00fff 64bit]
[ 0.509613] pci 5582:00:00.0: reg 0x18: [mem 0x9ffe01000-0x9ffe01fff 64bit]
[ 0.511499] pci 5582:00:00.0: reg 0x20: [mem 0x9ffe02000-0x9ffe02fff 64bit]
[ 0.514578] pci_bus 5582:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.516132] pci 5582:00:00.0: BAR 0: assigned [mem 0x9ffe00000-0x9ffe00fff 64bit]
[ 0.518258] pci 5582:00:00.0: BAR 2: assigned [mem 0x9ffe01000-0x9ffe01fff 64bit]
[ 0.520785] pci 5582:00:00.0: BAR 4: assigned [mem 0x9ffe02000-0x9ffe02fff 64bit]
[ 0.523341] hv_pci 39c55369-98d6-43ad-8131-4e56cf6df26d: PCI VMBus probing: Using version 0x10004
[ 0.526353] hv_pci 39c55369-98d6-43ad-8131-4e56cf6df26d: PCI host bridge to bus 98d6:00
[ 0.528680] pci_bus 98d6:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.530758] pci 98d6:00:00.0: [1414:008e] type 00 class 0x030200
[ 0.534263] pci_bus 98d6:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.536950] ioatdma: Intel(R) QuickData Technology Driver 5.00
[ 0.538750] virtio-pci 5582:00:00.0: enabling device (0000 -> 0002)
[ 0.542305] Serial: 8250/16550 driver, 8 ports, IRQ sharing enabled
[ 0.544242] 00:00: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.546261] 00:01: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 0.568943] Linux agpgart interface v0.103
[ 0.570722] AMD-Vi: AMD IOMMUv2 functionality not available on this system - This is not a bug.
[ 0.572875] ACPI: bus type drm_connector registered
[ 0.575095] printk: console [hvc0] enabled
[ 0.576274] printk: bootconsole [uart8250] disabled
[ 0.578040] brd: module loaded
[ 0.579575] loop: module loaded
[ 0.579801] Loading iSCSI transport class v2.0-870.
[ 0.580206] rdac: device handler registered
[ 0.580443] Microchip SmartPQI Driver (v2.1.24-046)
[ 0.580703] VMware PVSCSI driver - version 1.0.7.0-k
[ 0.580931] hv_vmbus: registering driver hv_storvsc
[ 0.581677] PPP generic driver version 2.4.2
[ 0.582053] VMware vmxnet3 virtual NIC driver - version 1.7.0.0-k-NAPI
[ 0.582130] scsi host0: storvsc_host_t
[ 0.582563] hv_vmbus: registering driver hv_netvsc
[ 0.583096] Fusion MPT base driver 3.04.20
[ 0.583329] Copyright (c) 1999-2008 LSI Corporation
[ 0.583579] Fusion MPT SPI Host driver 3.04.20
[ 0.584154] Fusion MPT SAS Host driver 3.04.20
[ 0.584599] Fusion MPT misc device (ioctl) driver 3.04.20
[ 0.585073] mptctl: Registered with Fusion MPT base driver
[ 0.585579] mptctl: /dev/mptctl @ (major,minor=10,220)
[ 0.586063] i8042: PNP: No PS/2 controller found.
[ 0.586458] hv_vmbus: registering driver hyperv_keyboard
[ 0.586735] rtc_cmos 00:02: RTC can wake from S4
[ 0.588711] rtc_cmos 00:02: registered as rtc0
[ 0.589251] rtc_cmos 00:02: setting system clock to 2024-07-22T01:14:18 UTC (1721610858)
[ 0.589752] rtc_cmos 00:02: alarms up to one month, 114 bytes nvram
[ 0.590093] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[ 0.590691] device-mapper: uevent: version 1.0.3
[ 0.591032] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[ 0.591651] intel_pstate: CPU model not supported
[ 0.591980] hv_utils: Registering HyperV Utility Driver
[ 0.592208] hv_vmbus: registering driver hv_utils
[ 0.592475] hv_vmbus: registering driver hv_balloon
[ 0.592803] hv_vmbus: registering driver dxgkrnl
[ 0.592905] hv_utils: TimeSync IC version 4.0
[ 0.593914] hv_balloon: Using Dynamic Memory protocol version 2.0
[ 0.594789] Free page reporting enabled
[ 0.594981] hv_balloon: Cold memory discard hint enabled with order 9
[ 0.595296] drop_monitor: Initializing network drop monitor service
[ 0.606678] NET: Registered PF_INET6 protocol family
[ 0.607460] Segment Routing with IPv6
[ 0.607660] In-situ OAM (IOAM) with IPv6
[ 0.607904] NET: Registered PF_PACKET protocol family
[ 0.608403] 9pnet: Installing 9P2000 support
[ 0.608759] NET: Registered PF_VSOCK protocol family
[ 0.609000] hv_vmbus: registering driver hv_sock
[ 0.609992] IPI shorthand broadcast: enabled
[ 0.610249] AVX2 version of gcm_enc/dec engaged.
[ 0.611407] AES CTR mode by8 optimization enabled
[ 0.612981] sched_clock: Marking stable (588004859, 24074651)->(734103989, -122024479)
[ 0.613772] registered taskstats version 1
[ 0.614050] Loading compiled-in X.509 certificates
[ 0.620747] Loaded X.509 cert 'Build time autogenerated kernel key: 9aad2467018f8a1366d03819cb5f16ff424ec3d3'
[ 0.623413] ima: No TPM chip found, activating TPM-bypass!
[ 0.624035] ima: Allocated hash algorithm: sha256
[ 0.624955] ima: No architecture policies found
[ 0.639901] RAS: Correctable Errors collector initialized.
[ 0.640306] clk: Disabling unused clocks
[ 0.645115] Freeing unused decrypted memory: 2028K
[ 0.646156] Freeing unused kernel image (initmem) memory: 4464K
[ 0.646454] Write protecting the kernel read-only data: 34816k
[ 0.647581] Freeing unused kernel image (rodata/data gap) memory: 908K
[ 0.647913] Run /init as init process
[ 0.648044] with arguments:
[ 0.648214] /init
[ 0.648324] with environment:
[ 0.648469] HOME=/
[ 0.648571] TERM=linux
[ 0.648667] WSL_ROOT_INIT=1
[ 0.648898] ------------[ cut here ]------------
[ 0.649115] Bad FPU state detected at restore_fpregs_from_fpstate+0x4b/0xc0, reinitializing FPU registers.
[ 0.649121] WARNING: CPU: 8 PID: 1 at arch/x86/mm/extable.c:126 fixup_exception+0x33d/0x360
[ 0.649788] Modules linked in:
[ 0.649954] CPU: 8 PID: 1 Comm: init Not tainted 6.6.36.3-microsoft-standard-WSL2 #1
[ 0.650264] RIP: 0010:fixup_exception+0x33d/0x360
[ 0.650457] Code: 01 00 00 00 4c 89 ef e8 f1 97 fc ff 0f 0b 48 c7 c2 90 fb a3 b0 eb 93 48 c7 c7 10 05 9c af c6 05 ad a5 45 02 01 e8 93 81 06 00 <0f> 0b e9 3c ff ff ff 0f 0b 48 c7 c2 90 fb a3 b0 e9 d0 fd ff ff 0f
[ 0.651198] RSP: 0000:ffff984c00013d10 EFLAGS: 00010086
[ 0.651404] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 0.651738] RDX: 0000000000000002 RSI: 0000000000009ffb RDI: 00000000ffffffff
[ 0.652066] RBP: ffff984c00013d38 R08: 0000000000000000 R09: 00000000ffffdfff
[ 0.652431] R10: ffff984c00013b78 R11: ffffffffb0350fc8 R12: ffffffffafb5a7dc
[ 0.652733] R13: ffff984c00013de8 R14: 000000000000000d R15: 0000000000000000
[ 0.653023] FS: 0000000000000000(0000) GS:ffff8c0432200000(0000) knlGS:0000000000000000
[ 0.653301] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.653553] CR2: 00007fffde7ca319 CR3: 0000000101a8e003 CR4: 0000000000370ee0
[ 0.653876] Call Trace:
[ 0.653986]
https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling
我用了这个仓库编译的内核,好像最高支持版本是6.5.9,大于等于6.6.0的版本都会报Error code: Wsl/Service/CreateInstance/CreateVm/WSAENOTCONN
@chessturo could you please fix this, thanks
@chessturo could you please fix this, thanks
Hey! I'm currently investigating, but don't have an estimate for when it will be fixed. Please feel free to let me know if new information comes up (for example, if the problem persists after a WSL update, or conversely if a WSL update fixes it)
@chessturo could you please fix this, thanks
Hey! I'm currently investigating, but don't have an estimate for when it will be fixed. Please feel free to let me know if new information comes up (for example, if the problem persists after a WSL update, or conversely if a WSL update fixes it)
2.3.12 The issue still exists in version 2.3.12.
@chessturo could you please fix this, thanks
Hey! I'm currently investigating, but don't have an estimate for when it will be fixed. Please feel free to let me know if new information comes up (for example, if the problem persists after a WSL update, or conversely if a WSL update fixes it)
2.3.12 The issue still exists in version 2.3.12.
The issue also exists in version 2.3.13.
Asking here since this seems to be the most active thread on this issue. I'm still having trouble reproducing the bug on my end, but my suspicion is that this is related to something particular to certain CPU models. I am hopeful that adding the following config will help (please see here for details):
[wsl2]
kernelCommandLine=noxsave
I would really appreciate it if those affected could try this and report back on if it works or not (preferably along with dmesg and/or WSL logs). I'm continuing to work on reproducing this on my end, so hopefully I shouldn't have to ask too much more of y'all. Thanks for the reports, and thanks in advance to anyone who's willing to help test out this fix!
noxsave
It works! And the problem appeared on my Intel CPU and not on the AMD CPU, as you said.
@chessturo thank, it works
Asking here since this seems to be the most active thread on this issue. I'm still having trouble reproducing the bug on my end, but my suspicion is that this is related to something particular to certain CPU models. I am hopeful that adding the following config will help (please see here for details):
[wsl2] kernelCommandLine=noxsave
I would really appreciate it if those affected could try this and report back on if it works or not (preferably along with dmesg and/or WSL logs). I'm continuing to work on reproducing this on my end, so hopefully I shouldn't have to ask too much more of y'all. Thanks for the reports, and thanks in advance to anyone who's willing to help test out this fix!
it works! dmesg.log
here is dmesg log and my cpu is i5-12500
I did the same as @nnathan and the kernelCommandLine=noxsave
did not fix for me.
PS C:\Users\mfjordchris> wsl --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22621.3880
PS C:\Users\mfjordchris> wsl
A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
Error code: Wsl/Service/CreateInstance/CreateVm/WSAENOTCONN
# Settings apply across all Linux distros running on WSL 2
# https://learn.microsoft.com/en-us/windows/wsl/wsl-config#wslconfig
[wsl2]
memory=56GB
processors=18
kernel="C:\\Users\\mfjordchris\\Documents\\WSL\\6.6.y_all_modules"
kernelCommandLine = noxsave
localhostforwarding=true
autoProxy=true
firewall=false
vmIdleTimeout=600000 #ms 600 s = 10 min
[experimental]
autoMemoryReclaim=dropcache
@chessturo thank, it works
I did the same as @nnathan and the
kernelCommandLine=noxsave
did not fix for me.PS C:\Users\mfjordchris> wsl --version WSL version: 2.2.4.0 Kernel version: 5.15.153.1-2 WSLg version: 1.0.61 MSRDC version: 1.2.5326 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26091.1-240325-1447.ge-release Windows version: 10.0.22621.3880 PS C:\Users\mfjordchris> wsl A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied. Error code: Wsl/Service/CreateInstance/CreateVm/WSAENOTCONN
# Settings apply across all Linux distros running on WSL 2 # https://learn.microsoft.com/en-us/windows/wsl/wsl-config#wslconfig [wsl2] memory=56GB processors=18 kernel="C:\\Users\\mfjordchris\\Documents\\WSL\\6.6.y_all_modules" kernelCommandLine = noxsave localhostforwarding=true autoProxy=true firewall=false vmIdleTimeout=600000 #ms 600 s = 10 min [experimental] autoMemoryReclaim=dropcache
@mortenfc looking at your logs, it looks like your problem has a different root cause. I would suggest opening a new issue (and you can remove the noxsave
command line param)
Alright, unfortunately I haven't been able to get access to a machine that's affected with the bug, but I am hopeful that I have figured out the root issue. If anyone is interested in testing a root-cause fix, please do the following on a working WSL install (e.g., via the noxsave
fix or by rolling back to a working version):
sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev cpio
git clone git@github.com:chessturo/WSL2-Linux-Kernel.git
(or git clone https://github.com/chessturo/WSL2-Linux-Kernel.git
if you prefer HTTPS) and cd WSL2-Linux-Kernel
git checkout fpu-fix
make -j`nproc` KCONFIG_CONFIG=Microsoft/config-wsl
and just accept the defaults on the questions it asks. Note that this may take several minutes. You can remove the -j`nproc`
if you don't want it using all your CPU cores, though this will take longer.vmlinux
file somewhere into Windows e.g., cp vmlinux /mnt/c/Users/YourUser
.wslconfig
to include
[wsl2]
kernel=C:\\Users\\YourUser\\vmlinux # Point this to the copied vmlinux, note the double backslashes!
# please MAKE SURE to remove the kernelCommandLine=noxsave
kernel=
line from your .wslconfig
(or put it back to whatever it was before). This kernel doesn't have many modules built in (to avoid adding extra variables), but this could break certain apps if you try to use them with this testing kernel. You'll also need to put back the kernelCommandLine=noxsave
.PLEASE NOTE:
Changing the kernel
config option in .wslconfig
is essentially as dangerous as running any other code. In general, you should be very careful about doing this. I am a Microsoft employee (as you can see from the Member
along the banner of my messages on this thread, and the Microsoft badge on my profile), and you can inspect all the changes I've made: after step 3 simply run git diff linux-msft-wsl-6.6.y
.
Thanks again for the bug reports and testing out the original noxsave
temporary fix! I will be sure to keep this thread updated.
@chessturo i'm having issues checkouting in PS... will try into wsl
PS D:\Develop> git clone git@github.com:chessturo/WSL2-Linux-Kernel.git
Cloning into 'WSL2-Linux-Kernel'...
remote: Enumerating objects: 9780696, done.
remote: Total 9780696 (delta 0), reused 0 (delta 0), pack-reused 9780696
Receiving objects: 100% (9780696/9780696), 2.06 GiB | 8.19 MiB/s, done.
Resolving deltas: 100% (8257787/8257787), done.
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
PS D:\Develop>
PS D:\Develop> cd .\WSL2-Linux-Kernel\
PS D:\Develop\WSL2-Linux-Kernel> git checkout fpu-fix
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c'
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h'
error: invalid path 'include/soc/arc/aux.h'
btw, the kernelCommandLine=noxsave
worked on my end
dmesg.log
tried into Pengwin WSL with make installed
...
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_transition.o
LD [M] drivers/gpu/drm/amd/amdgpu/amdgpu.o
AR drivers/gpu/built-in.a
AR drivers/built-in.a
make[1]: *** [/home/fafa/WSL2-Linux-Kernel/Makefile:1921: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2
got error 2, sorry :(
@genuinefafa Ah sorry, yeah this all needs to be done on WSL. I've updated my instructions to include the details.
I'm not sure what exactly is causing that issue --- likely something further up than where your logs are cut off. If you re-run the make command immediately after getting that error, it should produce much less output and include some more details on what build step failed. I'd also double check you have all the dependencies via sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev cpio
(I've also added this to the original instructions).
Thanks for your help testing this out, I really appreciate it!
@chessturo The custom kernel is works!
here is the log.
I encountered two yes-or-no questions when I started compiling. I simply pressed Enter without knowing if it would affect the final result, but I thought it was important to let you know.
@chessturo The custom kernel is works! here is the log. dmesg.log
I encountered two yes-or-no questions when I started compiling. I simply pressed Enter without knowing if it would affect the final result, but I thought it was important to let you know.
Thank you for testing this, and I'm glad to hear it works! And don't worry, that's expected, though I appreciate you letting me know --- I've updated the directions to clarify as well.
@chessturo i can confirm that it works now
there were some packages needed that were not there before (i did follow readme from the repo)
fun to see that I'm running my own WSL versión 😀
@chessturo i can confirm that it works now
there were some packages needed that were not there before (i did follow readme from the repo)
fun to see that I'm running my own WSL versión 😀
@genuinefafa Glad to hear everything is working! And yes, being able to change WSL kernels without too much trouble is a very handy feature to have :)
I'm hoping to have a patch based on this sent upstream and included in WSL here soon. I will update this thread once that's all sorted and everyone who's affected will be able to take the noxsave
out of their kernel command line.
anyone can explain this ? use the config networkingMode=mirrored, wsl works。change to nat mode, has the same problem 。
PS C:\Users\shuis> cat .\.wslconfig
[wsl2]
[experimental]
dnsTunneling=true
networkingMode=mirrored
autoProxy=true
PS C:\Users\shuis> wsl
cuipeng@civcui:/mnt/c/Users/shuis$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
cuipeng@civcui:/mnt/c/Users/shuis$ exit
logout
PS C:\Users\shuis> wsl --shutdown
//remove config networkingMode=mirrored
PS C:\Users\shuis> cat .\.wslconfig
[wsl2]
[experimental]
dnsTunneling=true
autoProxy=true
PS C:\Users\shuis> wsl
无法配置 networkingMode Nat)(网络。若要禁用网络,请在C:\Users\shuis\.wslconfig中设置“wsl2.networkingMode=None”
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/ERROR_UNHANDLED_EXCEPTION
PS C:\Users\shuis>
PS C:\Users\shuis> wsl --version
WSL 版本: 2.2.4.0
内核版本: 5.15.153.1-2
WSLg 版本: 1.0.61
MSRDC 版本: 1.2.5326
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.26091.1-240325-1447.ge-release
Windows 版本: 10.0.22631.3880
@cuivip This looks like a different problem from what this thread is discussing. I would suggest opening a new issue
Thank you @heartacker. This issue was caused by the new kernel that we shipped we 2.3.11. We have reverted to the 5.5 kernel in 2.3.13 which should resolve the issue.
(In particular, anyone who added the noxsave
command line parameter as a workaround should remove it after updating, as it can cause reduced performance)
I hate to pop in on this issue, but using 2.3.21 I ran into the same 0x80072749 issue as well.
CPU: Xeon Platinum 8592+
kernelCommandLine=noxsave resolved the issue for me. XSave does work in other contexts (Specifically, VMware Workstation running OpenVMS 9.2-2 and E9.2-3).
C:\Windows\System32>wsl --version WSL version: 2.3.21.0 Kernel version: 5.15.153.1-2 WSLg version: 1.0.65 MSRDC version: 1.2.5620 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.27695.1000
Tagging this on here as I found it to be marked a dupe of #11844 which is my exact issue.
Issue was also present on the stable/production 2.2.4 on the system after initial clean installation. WSL has never worked on this setup.
Attached log capture shows a failure to launch (WSAENOTCONN), unregister, then failure to re-install without noxsave in the configuration. Second run attached with noxsave showing functional install and system.
WslLogs-2024-09-17_09-34-34.zip WslLogs-2024-09-17_09-37-22.zip
Ah ok, definitely looks like the same issue. noxsave
should work as a stopgap for now, you can alternatively update to 6.6.36.6. The fix has also been pulled into stable 6.x kernels now, so if you run a recent custom kernel, everything should be fixed.
It seems that my original fix was actually not applied to 5.15 stable kernels and needed some tweaking. Unfortunately I still haven't been able to get access to a machine that's affected with the bug. If possible, I'd like to be able to test this backport. If anyone with an affected machine is interested in testing this, please do the following on a working WSL install (e.g., via the noxsave
fix):
sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev cpio
git clone git@github.com:chessturo/WSL2-Linux-Kernel.git
(or git clone https://github.com/chessturo/WSL2-Linux-Kernel.git
if you prefer HTTPS) and cd WSL2-Linux-Kernel
git checkout fpu-fix-backport
make -j`nproc` KCONFIG_CONFIG=Microsoft/config-wsl
and just accept the defaults on the questions it asks (there will be a lot, you can just hold enter). Note that once building the kernel starts, it may take several minutes. You can remove the -j`nproc`
if you don't want it using all your CPU cores, though this will take longer.vmlinux
file somewhere into Windows e.g., cp vmlinux /mnt/c/Users/YourUser
.wslconfig
to include
[wsl2]
kernel=C:\\Users\\YourUser\\vmlinux # Point this to the copied vmlinux, note the double backslashes!
# please MAKE SURE to remove the kernelCommandLine=noxsave
kernel=
line from your .wslconfig
(or put it back to whatever it was before). You'll also need to put back the kernelCommandLine=noxsave
.PLEASE NOTE:
Changing the kernel
config option in .wslconfig
is essentially as dangerous as running any other code. In general, you should be very careful about doing this. I am a Microsoft employee (as you can see from the Member
along the banner of my messages on this thread, and the Microsoft badge on my profile), and you can inspect all the changes I've made.
I really appreciate all the help from the community on getting this issue resolved 😄. If anyone gets a chance to try this kernel, please let me know whether it works/helps!
I haven't had time to revisit this yet, as I had been blocked by
https://github.com/microsoft/WSL/issues/7558
on that tree when I attempted. And then got busy.... that's how it goes I suppose. I'll be revisiting today, seeing if the fix from that issue is relevant to the tree you have provided.
Oh apologies, with the 2.3.26 release, you shouldn't need to build a custom kernel. The kernel included with that release should have the fix built in. Let me know if you have any issues with it!
Windows Version
版本 Windows 11 专业版 版本号 24H2 安装日期 2024/4/6 操作系统版本 26120.961 体验 Windows Feature Experience Pack 1000.26100.8.0
WSL Version
WSL 版本: 2.3.11.0 内核版本: 6.6.36.3-1 WSLg 版本: 1.0.63 MSRDC 版本: 1.2.5326 Direct3D 版本: 1.611.1-81528511 DXCore 版本: 10.0.26100.1-240331-1435.ge-release Windows 版本: 10.0.22631.3880
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
由于套接字没有连接并且(当使用一个 sendto 调用发送数据报套接字时)没有提供地址,发送或接收数据的请求没有被接受。 Error code: Wsl/Service/CreateInstance/CreateVm/WSAENOTCONN Press any key to continue...
Expected Behavior
WSL 版本: 2.3.11.0 内核版本: 6.6.36.3-1 WSLg 版本: 1.0.63 MSRDC 版本: 1.2.5326 Direct3D 版本: 1.611.1-81528511 DXCore 版本: 10.0.26100.1-240331-1435.ge-release Windows 版本: 10.0.22631.3880
Actual Behavior
can not work
Diagnostic Logs
No response