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

upgrade WSL2 to a custom kernel,I encountered the error 'Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT' #10212

Closed
1 of 2 tasks
csy2002 opened this issue Jun 18, 2023 · 7 comments

Comments

@csy2002
Copy link

csy2002 commented Jun 18, 2023

Windows Version

Microsoft Windows [version 10.0.22621.1848]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04.1 LTS

Other Software

No response

Repro Steps

Following the steps to compile kernel:
a. wget https://github.com/microsoft/WSL2-Linux-Kernel/archive/refs/tags/linux-msft-wsl-5.15.90.1.tar.gz
b. tar -xf linux-msft-wsl-5.15.90.1.tar.gz && cd WSL2-Linux-Kernel-linux-msft-wsl-5.15.90.1
c. sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev
d. make menuconfig //only changed the value of CONFIG_LOCALVERSION and didn't make any modifications to other options
e. make -j8
f. edit file .wslconfig
[wsl2]
kernel=d:\\bzImage

Expected Behavior

upgrate to my custom kernel.

Actual Behavior

When starting the Linux subsystem, the error 'Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT' occurred.

Diagnostic Logs

[ 0.000000] Linux version 5.15.90.1-chensy (root@LAPTOP-5MVUDC8L) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP Sun Jun 18 09:39:28 CST 2023
[ 0.000000] Command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=8 bonding.max_bonds=0 dummy.numdummies=0 fb_tunnels=none swiotlb=force earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0
[ 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] signal: max sigframe size: 1776
[ 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-0x0000000204ffffff] 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] DMI not present or invalid.
[ 0.000000] tsc: Fast TSC calibration failed
[ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000000] last_pfn = 0x205000 max_arch_pfn = 0x400000000
[ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.000000] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] RAMDISK: [mem 0x035f9000-0x037dcfff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[ 0.000000] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.000000] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.000000] ACPI: DSDT 0x00000000001011B8 01E191 (v02 MSFTVM DSDT01 00000001 MSFT 05000000)
[ 0.000000] ACPI: FACS 0x0000000000101114 000040
[ 0.000000] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.000000] ACPI: SRAT 0x000000000011F349 000330 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.000000] ACPI: APIC 0x000000000011F679 000088 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.000000] ACPI: Reserving FACP table memory at [mem 0x101000-0x101113]
[ 0.000000] ACPI: Reserving DSDT table memory at [mem 0x1011b8-0x11f348]
[ 0.000000] ACPI: Reserving FACS table memory at [mem 0x101114-0x101153]
[ 0.000000] ACPI: Reserving OEM0 table memory at [mem 0x101154-0x1011b7]
[ 0.000000] ACPI: Reserving SRAT table memory at [mem 0x11f349-0x11f678]
[ 0.000000] ACPI: Reserving APIC table memory at [mem 0x11f679-0x11f700]
[ 0.000000] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[ 0.000000] SRAT: PXM 0 -> APIC 0x01 -> Node 0
[ 0.000000] SRAT: PXM 0 -> APIC 0x02 -> Node 0
[ 0.000000] SRAT: PXM 0 -> APIC 0x03 -> Node 0
[ 0.000000] SRAT: PXM 0 -> APIC 0x04 -> Node 0
[ 0.000000] SRAT: PXM 0 -> APIC 0x05 -> Node 0
[ 0.000000] SRAT: PXM 0 -> APIC 0x06 -> Node 0
[ 0.000000] SRAT: PXM 0 -> APIC 0x07 -> Node 0
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x0000000204ffffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x204ffc000-0x204ffffff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x0000000204ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009ffff]
[ 0.000000] node 0: [mem 0x0000000000200000-0x00000000f7ffffff]
[ 0.000000] node 0: [mem 0x0000000100000000-0x0000000204ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x0000000204ffffff]
[ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 352 pages in unavailable ranges
[ 0.000000] On node 0, zone Normal: 12288 pages in unavailable ranges
[ 0.000000] ACPI: PM-Timer IO Port: 0x408
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[ 0.000000] IOAPIC[0]: apic_id 8, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: Using ACPI (MADT) for SMP configuration information
[ 0.000000] smpboot: Allowing 8 CPUs, 0 hotplug CPUs
[ 0.000000] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[ 0.000000] PM: hibernation: Registered nosave memory: [mem 0x000e0000-0x000e0fff]
[ 0.000000] PM: hibernation: Registered nosave memory: [mem 0x000e1000-0x000fffff]
[ 0.000000] PM: hibernation: Registered nosave memory: [mem 0x00100000-0x001fffff]
[ 0.000000] PM: hibernation: Registered nosave memory: [mem 0xf8000000-0xffffffff]
[ 0.000000] [mem 0xf8000000-0xffffffff] available for PCI devices
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:8 nr_node_ids:1
[ 0.000000] percpu: Embedded 52 pages/cpu s174488 r8192 d30312 u262144
[ 0.000000] pcpu-alloc: s174488 r8192 d30312 u262144 alloc=1*2097152
[ 0.000000] pcpu-alloc: [0] 0 1 2 3 4 5 6 7
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2051269
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=8 bonding.max_bonds=0 dummy.numdummies=0 fb_tunnels=none swiotlb=force earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0
[ 0.000000] Unknown kernel command line parameters "WSL_ROOT_INIT=1", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 8088936K/8338044K available (16396K kernel code, 2587K rwdata, 4852K rodata, 1480K init, 1232K bss, 248848K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[ 0.000000] Using NULL legacy PIC
[ 0.000000] NR_IRQS: 4352, nr_irqs: 488, preallocated irqs: 0
[ 0.000000] random: crng init done
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] ACPI: Core revision 20210730
[ 0.000000] Failed to register legacy timer interrupt
[ 0.000000] APIC: Switch to symmetric I/O mode setup
[ 0.000000] tsc: Unable to calibrate against PIT
[ 0.000000] tsc: using PMTIMER reference calibration
[ 0.000000] tsc: Detected 2394.287 MHz processor
[ 0.000004] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2283228ea2e, max_idle_ns: 440795274717 ns
[ 0.003977] Calibrating delay loop (skipped), value calculated using timer frequency.. 4788.57 BogoMIPS (lpj=2394287)
[ 0.004974] pid_max: default: 32768 minimum: 301
[ 0.004974] LSM: Security Framework initializing
[ 0.004974] SELinux: Initializing.
[ 0.004974] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.004974] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.004974] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8
[ 0.004974] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
[ 0.004974] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.004974] Spectre V2 : Mitigation: Enhanced IBRS
[ 0.004974] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.004974] Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT
[ 0.004974] RETBleed: Mitigation: Enhanced IBRS
[ 0.004974] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[ 0.004974] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[ 0.004974] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode
[ 0.004974] SRBDS: Unknown: Dependent on hypervisor status
[ 0.004974] Freeing SMP alternatives memory: 44K
[ 0.004974] smpboot: CPU0: Intel(R) Core(TM) i5-10200H CPU @ 2.40GHz (family: 0x6, model: 0xa5, stepping: 0x2)
[ 0.005042] Performance Events: Skylake events, 32-deep LBR, full-width counters, Intel PMU driver.
[ 0.005977] ... version: 4
[ 0.006975] ... bit width: 48
[ 0.007975] ... generic registers: 4
[ 0.008976] ... value mask: 0000ffffffffffff
[ 0.009977] ... max period: 00007fffffffffff
[ 0.010976] ... fixed-purpose events: 3
[ 0.011975] ... event mask: 000000070000000f
[ 0.013073] rcu: Hierarchical SRCU implementation.
[ 0.014158] smp: Bringing up secondary CPUs ...
[ 0.015024] x86: Booting SMP configuration:
[ 0.015976] .... node #0, CPUs: #1
[ 0.018051] MMIO Stale Data CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/processor_mmio_stale_data.html for more details.
[ 0.020043] #2 #3 #4 #5 #6 #7
[ 0.029106] smp: Brought up 1 node, 8 CPUs
[ 0.030976] smpboot: Max logical packages: 1
[ 0.031975] smpboot: Total of 8 processors activated (38308.59 BogoMIPS)
[ 0.034192] devtmpfs: initialized
[ 0.035073] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.035987] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.037279] PM: RTC time: 02:03:52, date: 2023-06-18
[ 0.038110] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.039047] audit: initializing netlink subsys (disabled)
[ 0.039996] audit: type=2000 audit(1687053832.036:1): state=initialized audit_enabled=0 res=1
[ 0.040044] thermal_sys: Registered thermal governor 'step_wise'
[ 0.040976] thermal_sys: Registered thermal governor 'user_space'
[ 0.042001] cpuidle: using governor menu
[ 0.046020] ACPI: bus type PCI registered
[ 0.048187] PCI: Fatal: No config space access function found
[ 0.052006] Kprobes globally optimized
[ 0.053023] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.054017] cryptomgr_test (58) used greatest stack depth: 15528 bytes left
[ 0.056975] cryptomgr_test (62) used greatest stack depth: 15360 bytes left
[ 0.059038] ACPI: Added _OSI(Module Device)
[ 0.060089] cryptomgr_test (63) used greatest stack depth: 15168 bytes left
[ 0.061976] ACPI: Added _OSI(Processor Device)
[ 0.066977] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.068976] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.070977] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.072977] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.074977] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[ 0.080185] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.083089] ACPI: Interpreter enabled
[ 0.084983] ACPI: PM: (supports S0 S5)
[ 0.085975] ACPI: Using IOAPIC for interrupt routing
[ 0.087988] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.092090] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 0.094604] iommu: Default domain type: Translated
[ 0.096975] iommu: DMA domain TLB invalidation policy: lazy mode
[ 0.098999] vgaarb: loaded
[ 0.100018] SCSI subsystem initialized
[ 0.102002] libata version 3.00 loaded.
[ 0.104005] ACPI: bus type USB registered
[ 0.104988] usbcore: registered new interface driver usbfs
[ 0.106984] usbcore: registered new interface driver hub
[ 0.108983] usbcore: registered new device driver usb
[ 0.110990] pps_core: LinuxPPS API ver. 1 registered
[ 0.112975] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.116984] PTP clock support registered
[ 0.119009] Advanced Linux Sound Architecture Driver Initialized.
[ 0.121045] NetLabel: Initializing
[ 0.121976] NetLabel: domain hash size = 128
[ 0.123975] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.125989] NetLabel: unlabeled traffic allowed by default
[ 0.129001] PCI: Using ACPI for IRQ routing
[ 0.129976] PCI: System does not support PCI
[ 0.132251] clocksource: Switched to clocksource tsc-early
[ 0.138674] VFS: Disk quotas dquot_6.6.0
[ 0.140279] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.143144] pnp: PnP ACPI init
[ 0.144587] pnp: PnP ACPI: found 3 devices
[ 0.154361] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.158178] NET: Registered PF_INET protocol family
[ 0.160415] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.164364] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.167830] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.170966] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.174519] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[ 0.177657] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.180358] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.183126] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.186116] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.188917] RPC: Registered named UNIX socket transport module.
[ 0.191310] RPC: Registered udp transport module.
[ 0.193346] RPC: Registered tcp transport module.
[ 0.195258] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.198092] PCI: CLS 0 bytes, default 64
[ 0.199762] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.199903] Unpacking initramfs...
[ 0.202532] software IO TLB: mapped [mem 0x00000000f4000000-0x00000000f8000000] (64MB)
[ 0.207705] Freeing initrd memory: 1936K
[ 0.209736] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
[ 0.214900] Initialise system trusted keyrings
[ 0.216853] workingset: timestamp_bits=56 max_order=21 bucket_order=0
[ 0.220263] NFS: Registering the id_resolver key type
[ 0.222287] Key type id_resolver registered
[ 0.224027] Key type id_legacy registered
[ 0.232841] Key type asymmetric registered
[ 0.234473] Asymmetric key parser 'x509' registered
[ 0.236357] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.239380] io scheduler mq-deadline registered
[ 0.241108] io scheduler kyber registered
[ 0.243320] ACPI: AC: AC Adapter [AC1] (on-line)
[ 0.245472] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.245729] ACPI: battery: Slot [BAT1] (battery present)
[ 0.248359] 00:00: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.253235] 00:01: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 0.256983] Non-volatile memory driver v1.3
[ 0.258848] Linux agpgart interface v0.103
[ 0.262541] loop: module loaded
[ 0.263853] e100: Intel(R) PRO/100 Network Driver
[ 0.265685] e100: Copyright(c) 1999-2006 Intel Corporation
[ 0.267906] e1000: Intel(R) PRO/1000 Network Driver
[ 0.269803] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.272162] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.274145] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.276433] sky2: driver version 1.30
[ 0.277901] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.280406] ehci-pci: EHCI PCI platform driver
[ 0.282103] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.284494] ohci-pci: OHCI PCI platform driver
[ 0.286231] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.288842] usbcore: registered new interface driver usblp
[ 0.290966] usbcore: registered new interface driver usb-storage
[ 0.293248] i8042: PNP: No PS/2 controller found.
[ 0.295087] rtc_cmos 00:02: RTC can wake from S4
[ 0.298308] rtc_cmos 00:02: registered as rtc0
[ 0.300129] rtc_cmos 00:02: alarms up to one month, 114 bytes nvram
[ 0.302736] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: [email protected]
[ 0.306408] intel_pstate: CPU model not supported
[ 0.308351] hid: raw HID events driver (C) Jiri Kosina
[ 0.310321] usbcore: registered new interface driver usbhid
[ 0.312434] usbhid: USB HID core driver
[ 0.314068] GACT probability on
[ 0.315303] Mirror/redirect action on
[ 0.316701] Simple TC action Loaded
[ 0.318158] netem: version 1.3
[ 0.319366] u32 classifier
[ 0.320375] Performance counters on
[ 0.321866] input device check on
[ 0.323301] Actions configured
[ 0.325303] Initializing XFRM netlink socket
[ 0.326965] NET: Registered PF_INET6 protocol family
[ 0.329152] Segment Routing with IPv6
[ 0.330615] In-situ OAM (IOAM) with IPv6
[ 0.332176] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.334560] NET: Registered PF_PACKET protocol family
[ 0.336543] Key type dns_resolver registered
[ 0.338729] IPI shorthand broadcast: enabled
[ 0.340390] sched_clock: Marking stable (336407127, 3974550)->(548394418, -208012741)
[ 0.343596] registered taskstats version 1
[ 0.345181] Loading compiled-in X.509 certificates
[ 0.347620] PM: Magic number: 11:75:56
[ 0.349268] printk: console [netcon0] enabled
[ 0.351068] netconsole: network logging started
[ 0.353065] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.356590] kworker/u16:1 (101) used greatest stack depth: 14800 bytes left
[ 0.357091] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.359811] kworker/u16:1 (102) used greatest stack depth: 14288 bytes left
[ 0.362506] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 0.364389] ALSA device list:
[ 0.364392] No soundcards found.
[ 0.371432] cfg80211: failed to load regulatory.db
[ 0.373389] Warning: unable to open an initial console.
[ 0.375665] Freeing unused kernel image (initmem) memory: 1480K
[ 0.381384] Write protecting the kernel read-only data: 24576k
[ 0.384033] Freeing unused kernel image (text/rodata gap) memory: 2032K
[ 0.386809] Freeing unused kernel image (rodata/data gap) memory: 1292K
[ 0.389493] Run /init as init process
[ 0.390991] with arguments:
[ 0.392178] /init
[ 0.393055] with environment:
[ 0.394290] HOME=/
[ 0.395198] TERM=linux
[ 0.396248] WSL_ROOT_INIT=1
[ 0.397903] WSL (1) ERROR: UtilConnectVsock:546: socket failed 97
[ 0.401893] ACPI: PM: Preparing to enter system sleep state S5
[ 0.404240] reboot: Power down

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 19, 2023

/logs

@microsoft-github-policy-service
Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

@csy2002
Copy link
Author

csy2002 commented Jun 22, 2023

All the logs are in the attachment.
WslLogs-2023-06-22_18-02-46.zip

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 24, 2023

Thank you for the logs @csy2002.

Looking at the guest logs, I can see this:

687 False Microsoft.Windows.Lxss.Manager GuestLog 0 06-22-2023 03:03:01.467 " " "text: ""[ 0.391657] WSL (1) ERROR: UtilConnectVsock:546: socket failed 97 ""
vmId: {6b2852c1-c884-419e-b7b4-a6f690f3d077}" 6776 3388 5 00000000-0000-0000-0000-000000000000

The error maps to EAFNOSUPPORT.

Can you confirm that the kernel you built has CONFIG_HYPERV_VSOCKETS and CONFIG_VSOCKETS enabled ? That would explain this error

@csy2002
Copy link
Author

csy2002 commented Jun 24, 2023

There are still errors. Detailed logs are in the attachment
WslLogs-2023-06-24_11-22-47.zip

wsl debug console info:
[ 0.000000] Linux version 5.15.90.1-chensy (root@LAPTOP-5MVUDC8L) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #4 SMP Sat Jun 24 11:18:26 CST 2023
[ 0.000000] Command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=8 bonding.max_bonds=0 dummy.numdummies=0 fb_tunnels=none swiotlb=force earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0
[ 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] signal: max sigframe size: 1776
[ 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-0x0000000204ffffff] 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] DMI not present or invalid.
[ 0.000000] Hypervisor detected: Microsoft Hyper-V
[ 0.000000] Hyper-V: privilege flags low 0x2e7f, high 0x3b8030, hints 0xa4e24, misc 0xe4bed7b6
[ 0.000000] Hyper-V Host Build:22621-10.0-1-0.1848
[ 0.000000] Hyper-V: Nested features: 0x3e0101
[ 0.000000] Hyper-V: LAPIC Timer Frequency: 0x30d40
[ 0.000000] Hyper-V: Using hypercall for remote TLB flush
[ 0.000000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000001] tsc: Marking TSC unstable due to running on Hyper-V
[ 0.002200] tsc: Detected 2400.009 MHz processor
[ 0.003907] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.006582] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.008812] last_pfn = 0x205000 max_arch_pfn = 0x400000000
[ 0.011007] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.013679] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[ 0.024524] Using GB pages for direct mapping
[ 0.026625] RAMDISK: [mem 0x03647000-0x0382afff]
[ 0.028436] ACPI: Early table checksum verification disabled
[ 0.030596] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[ 0.032740] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.036089] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.039446] ACPI: DSDT 0x00000000001011B8 01E191 (v02 MSFTVM DSDT01 00000001 MSFT 05000000)
[ 0.042875] ACPI: FACS 0x0000000000101114 000040
[ 0.044679] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.047875] ACPI: SRAT 0x000000000011F349 000330 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.051035] ACPI: APIC 0x000000000011F679 000088 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.054360] ACPI: Reserving FACP table memory at [mem 0x101000-0x101113]
[ 0.056895] ACPI: Reserving DSDT table memory at [mem 0x1011b8-0x11f348]
[ 0.059706] ACPI: Reserving FACS table memory at [mem 0x101114-0x101153]
[ 0.062394] ACPI: Reserving OEM0 table memory at [mem 0x101154-0x1011b7]
[ 0.064969] ACPI: Reserving SRAT table memory at [mem 0x11f349-0x11f678]
[ 0.067685] ACPI: Reserving APIC table memory at [mem 0x11f679-0x11f700]
[ 0.070534] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[ 0.072322] SRAT: PXM 0 -> APIC 0x01 -> Node 0
[ 0.074051] SRAT: PXM 0 -> APIC 0x02 -> Node 0
[ 0.076025] SRAT: PXM 0 -> APIC 0x03 -> Node 0
[ 0.077862] SRAT: PXM 0 -> APIC 0x04 -> Node 0
[ 0.079529] SRAT: PXM 0 -> APIC 0x05 -> Node 0
[ 0.081189] SRAT: PXM 0 -> APIC 0x06 -> Node 0
[ 0.082885] SRAT: PXM 0 -> APIC 0x07 -> Node 0
[ 0.085000] No NUMA configuration found
[ 0.086674] Faking a node at [mem 0x0000000000000000-0x0000000204ffffff]
[ 0.089441] NODE_DATA(0) allocated [mem 0x204ffb000-0x204ffefff]
[ 0.092094] Zone ranges:
[ 0.093177] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.095581] DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
[ 0.097908] Normal [mem 0x0000000100000000-0x0000000204ffffff]
[ 0.100329] Movable zone start for each node
[ 0.101959] Early memory node ranges
[ 0.103334] node 0: [mem 0x0000000000001000-0x000000000009ffff]
[ 0.105735] node 0: [mem 0x0000000000200000-0x00000000f7ffffff]
[ 0.108237] node 0: [mem 0x0000000100000000-0x0000000204ffffff]
[ 0.110707] Initmem setup node 0 [mem 0x0000000000001000-0x0000000204ffffff]
[ 0.113521] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.113539] On node 0, zone DMA: 352 pages in unavailable ranges
[ 0.135005] On node 0, zone Normal: 12288 pages in unavailable ranges
[ 0.137358] ACPI: PM-Timer IO Port: 0x408
[ 0.141394] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[ 0.143879] IOAPIC[0]: apic_id 8, version 17, address 0xfec00000, GSI 0-23
[ 0.146603] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.149147] ACPI: Using ACPI (MADT) for SMP configuration information
[ 0.151627] smpboot: Allowing 8 CPUs, 0 hotplug CPUs
[ 0.153536] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.156406] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[ 0.159471] PM: hibernation: Registered nosave memory: [mem 0x000e0000-0x000e0fff]
[ 0.162533] PM: hibernation: Registered nosave memory: [mem 0x000e1000-0x000fffff]
[ 0.165540] PM: hibernation: Registered nosave memory: [mem 0x00100000-0x001fffff]
[ 0.168428] PM: hibernation: Registered nosave memory: [mem 0xf8000000-0xffffffff]
[ 0.171313] [mem 0xf8000000-0xffffffff] available for PCI devices
[ 0.173690] Booting paravirtualized kernel on Hyper-V
[ 0.175898] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.184267] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:8 nr_node_ids:1
[ 0.187385] percpu: Embedded 53 pages/cpu s179544 r8192 d29352 u262144
[ 0.189867] pcpu-alloc: s179544 r8192 d29352 u262144 alloc=1*2097152
[ 0.192487] pcpu-alloc: [0] 0 1 2 3 4 5 6 7
[ 0.194195] Built 1 zonelists, mobility grouping on. Total pages: 2051269
[ 0.196766] Policy zone: Normal
[ 0.197969] Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=8 bonding.max_bonds=0 dummy.numdummies=0 fb_tunnels=none swiotlb=force earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0
[ 0.205833] Unknown kernel command line parameters "WSL_ROOT_INIT=1", will be passed to user space.
[ 0.210622] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.214242] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.217311] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.243248] Memory: 8088900K/8338044K available (16397K kernel code, 2611K rwdata, 4956K rodata, 1668K init, 964K bss, 248884K reserved, 0K cma-reserved)
[ 0.248643] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.251377] rcu: Hierarchical RCU implementation.
[ 0.253172] rcu: RCU event tracing is enabled.
[ 0.254953] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[ 0.257820] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[ 0.260946] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[ 0.264558] Using NULL legacy PIC
[ 0.265826] NR_IRQS: 4352, nr_irqs: 488, preallocated irqs: 0
[ 0.268293] random: crng init done
[ 0.269697] Console: colour dummy device 80x25
[ 0.271432] ACPI: Core revision 20210730
[ 0.273200] Failed to register legacy timer interrupt
[ 0.275301] APIC: Switch to symmetric I/O mode setup
[ 0.278949] x2apic enabled
[ 0.281655] Switched APIC routing to physical x2apic.
[ 0.283547] Hyper-V: Using IPI hypercalls
[ 0.285106] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.01 BogoMIPS (lpj=2400009)
[ 0.286103] pid_max: default: 32768 minimum: 301
[ 0.286103] LSM: Security Framework initializing
[ 0.286103] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.286103] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.286103] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8
[ 0.286103] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
[ 0.286103] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.286103] Spectre V2 : Mitigation: Enhanced IBRS
[ 0.286103] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.286103] Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT
[ 0.286103] RETBleed: Mitigation: Enhanced IBRS
[ 0.286103] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[ 0.286103] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[ 0.286103] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode
[ 0.286103] SRBDS: Unknown: Dependent on hypervisor status
[ 0.286103] Freeing SMP alternatives memory: 44K
[ 0.286103] smpboot: CPU0: Intel(R) Core(TM) i5-10200H CPU @ 2.40GHz (family: 0x6, model: 0xa5, stepping: 0x2)
[ 0.286163] Performance Events: Skylake events, 32-deep LBR, full-width counters, Intel PMU driver.
[ 0.287109] ... version: 4
[ 0.288106] ... bit width: 48
[ 0.289105] ... generic registers: 4
[ 0.290105] ... value mask: 0000ffffffffffff
[ 0.291105] ... max period: 00007fffffffffff
[ 0.292106] ... fixed-purpose events: 3
[ 0.293105] ... event mask: 000000070000000f
[ 0.294203] rcu: Hierarchical SRCU implementation.
[ 0.295343] smp: Bringing up secondary CPUs ...
[ 0.296162] x86: Booting SMP configuration:
[ 0.297106] .... node #0, CPUs: #1
[ 0.297563] MMIO Stale Data CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/processor_mmio_stale_data.html for more details.
[ 0.299176] #2 #3 #4 #5 #6 #7
[ 0.302453] smp: Brought up 1 node, 8 CPUs
[ 0.304105] smpboot: Max logical packages: 1
[ 0.305105] smpboot: Total of 8 processors activated (38400.14 BogoMIPS)
[ 0.306913] devtmpfs: initialized
[ 0.307303] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.308113] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.309414] PM: RTC time: 03:23:28, date: 2023-06-24
[ 0.310285] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.311160] audit: initializing netlink subsys (disabled)
[ 0.312126] audit: type=2000 audit(1687577008.027:1): state=initialized audit_enabled=0 res=1
[ 0.312170] thermal_sys: Registered thermal governor 'step_wise'
[ 0.313107] thermal_sys: Registered thermal governor 'user_space'
[ 0.314136] cpuidle: using governor menu
[ 0.316134] ACPI: bus type PCI registered
[ 0.317125] PCI: Fatal: No config space access function found
[ 0.319305] Kprobes globally optimized
[ 0.320144] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.321154] cryptomgr_test (57) used greatest stack depth: 15528 bytes left
[ 0.323690] cryptomgr_test (62) used greatest stack depth: 15488 bytes left
[ 0.325198] ACPI: Added _OSI(Module Device)
[ 0.326856] cryptomgr_test (65) used greatest stack depth: 15232 bytes left
[ 0.331107] ACPI: Added _OSI(Processor Device)
[ 0.333106] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.335105] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.337107] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.338105] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.340106] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[ 0.345350] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.349189] ACPI: Interpreter enabled
[ 0.350112] ACPI: PM: (supports S0 S5)
[ 0.351106] ACPI: Using IOAPIC for interrupt routing
[ 0.352119] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.353217] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 0.355069] iommu: Default domain type: Translated
[ 0.355105] iommu: DMA domain TLB invalidation policy: lazy mode
[ 0.356140] vgaarb: loaded
[ 0.357159] SCSI subsystem initialized
[ 0.358127] libata version 3.00 loaded.
[ 0.359122] ACPI: bus type USB registered
[ 0.360117] usbcore: registered new interface driver usbfs
[ 0.361111] usbcore: registered new interface driver hub
[ 0.362112] usbcore: registered new device driver usb
[ 0.363115] pps_core: LinuxPPS API ver. 1 registered
[ 0.364105] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.365113] PTP clock support registered
[ 0.366199] hv_vmbus: Vmbus version:5.3
[ 0.367155] Advanced Linux Sound Architecture Driver Initialized.
[ 0.368152] hv_vmbus: Unknown GUID: c376c1c3-d276-48d2-90a9-c04748072c60
[ 0.369155] hv_vmbus: Unknown GUID: 6e382d18-3336-4f4b-acc4-2b7703d4df4a
[ 0.370123] hv_vmbus: Unknown GUID: dde9cbc0-5060-4436-9448-ea1254a5d177
[ 0.371195] NetLabel: Initializing
[ 0.372105] NetLabel: domain hash size = 128
[ 0.373106] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.374121] NetLabel: unlabeled traffic allowed by default
[ 0.375139] PCI: Using ACPI for IRQ routing
[ 0.376106] PCI: System does not support PCI
[ 0.377371] clocksource: Switched to clocksource hyperv_clocksource_tsc_page
[ 0.384326] VFS: Disk quotas dquot_6.6.0
[ 0.386099] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.388900] pnp: PnP ACPI init
[ 0.390245] pnp: PnP ACPI: found 3 devices
[ 0.400233] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.404000] NET: Registered PF_INET protocol family
[ 0.406228] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.409880] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.413332] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.416611] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.420041] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[ 0.423514] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.426287] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.429078] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.432224] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.434965] RPC: Registered named UNIX socket transport module.
[ 0.437487] RPC: Registered udp transport module.
[ 0.439285] RPC: Registered tcp transport module.
[ 0.441205] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.443979] PCI: CLS 0 bytes, default 64
[ 0.445640] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.445781] Unpacking initramfs...
[ 0.448692] software IO TLB: mapped [mem 0x00000000f4000000-0x00000000f8000000] (64MB)
[ 0.454043] Freeing initrd memory: 1936K
[ 0.458813] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
[ 0.463600] Initialise system trusted keyrings
[ 0.465499] workingset: timestamp_bits=56 max_order=21 bucket_order=0
[ 0.469117] NFS: Registering the id_resolver key type
[ 0.471076] Key type id_resolver registered
[ 0.472711] Key type id_legacy registered
[ 0.480097] Key type asymmetric registered
[ 0.481679] Asymmetric key parser 'x509' registered
[ 0.483736] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.486594] io scheduler mq-deadline registered
[ 0.488352] io scheduler kyber registered
[ 0.490329] ACPI: AC: AC Adapter [AC1] (on-line)
[ 0.492487] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.492727] ACPI: battery: Slot [BAT1] (battery present)
[ 0.495391] 00:00: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.500484] 00:01: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 0.503755] Non-volatile memory driver v1.3
[ 0.505413] Linux agpgart interface v0.103
[ 0.508648] loop: module loaded
[ 0.509937] e100: Intel(R) PRO/100 Network Driver
[ 0.511860] e100: Copyright(c) 1999-2006 Intel Corporation
[ 0.514030] e1000: Intel(R) PRO/1000 Network Driver
[ 0.515897] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.518198] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.520198] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.522461] sky2: driver version 1.30
[ 0.523957] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.526512] ehci-pci: EHCI PCI platform driver
[ 0.528288] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.530668] ohci-pci: OHCI PCI platform driver
[ 0.532371] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.534922] usbcore: registered new interface driver usblp
[ 0.537114] usbcore: registered new interface driver usb-storage
[ 0.539404] i8042: PNP: No PS/2 controller found.
[ 0.541217] hv_vmbus: registering driver hyperv_keyboard
[ 0.543513] rtc_cmos 00:02: RTC can wake from S4
[ 0.546801] rtc_cmos 00:02: registered as rtc0
[ 0.548587] rtc_cmos 00:02: alarms up to one month, 114 bytes nvram
[ 0.551140] fail to initialize ptp_kvm
[ 0.551236] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: [email protected]
[ 0.555865] intel_pstate: CPU model not supported
[ 0.557756] hid: raw HID events driver (C) Jiri Kosina
[ 0.559839] usbcore: registered new interface driver usbhid
[ 0.561987] usbhid: USB HID core driver
[ 0.563504] hv_utils: Registering HyperV Utility Driver
[ 0.565475] hv_vmbus: registering driver hv_utils
[ 0.567366] hv_vmbus: registering driver hv_balloon
[ 0.569365] hv_vmbus: registering driver dxgkrnl
[ 0.571161] hv_utils: TimeSync IC version 4.0
[ 0.573205] hv_balloon: Using Dynamic Memory protocol version 2.0
[ 0.574374] Initializing XFRM netlink socket
[ 0.577602] NET: Registered PF_INET6 protocol family
[ 0.579680] Free page reporting enabled
[ 0.579681] hv_balloon: Cold memory discard hint enabled with order 9
[ 0.584187] Segment Routing with IPv6
[ 0.585619] In-situ OAM (IOAM) with IPv6
[ 0.587141] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.589423] NET: Registered PF_PACKET protocol family
[ 0.591369] Key type dns_resolver registered
[ 0.593169] NET: Registered PF_VSOCK protocol family
[ 0.595069] hv_vmbus: registering driver hv_sock
[ 0.597338] IPI shorthand broadcast: enabled
[ 0.598975] sched_clock: Marking stable (582151200, 16815700)->(740212600, -141245700)
[ 0.602339] registered taskstats version 1
[ 0.603892] Loading compiled-in X.509 certificates
[ 0.606511] PM: Magic number: 11:940:361
[ 0.608198] msr msr0: hash matches
[ 0.609541] printk: console [netcon0] enabled
[ 0.611238] netconsole: network logging started
[ 0.613184] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.616398] kworker/u16:1 (106) used greatest stack depth: 14288 bytes left
[ 0.616939] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.622465] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 0.625129] ALSA device list:
[ 0.625931] cfg80211: failed to load regulatory.db
[ 0.627107] No soundcards found.
[ 0.630391] Warning: unable to open an initial console.
[ 0.632639] Freeing unused kernel image (initmem) memory: 1668K
[ 0.644190] Write protecting the kernel read-only data: 24576k
[ 0.646875] Freeing unused kernel image (text/rodata gap) memory: 2032K
[ 0.649702] Freeing unused kernel image (rodata/data gap) memory: 1188K
[ 0.652489] Run /init as init process
[ 0.653996] with arguments:
[ 0.655125] /init
[ 0.655990] with environment:
[ 0.657325] HOME=/
[ 0.658226] TERM=linux
[ 0.659246] WSL_ROOT_INIT=1
[ 15.677769] WSL (1) ERROR: No such file or directory @main.cpp:737 (operator())
?????????????

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 24, 2023

Based on the output, I'm going to guess that another config option for the kernel that WSL2 needs has be removed.

I'd recommend validating that you have all the options from this file set.

Closing since the issue is caused by a custom kernel.

@OneBlue OneBlue closed this as completed Jun 24, 2023
@mkemlogic
Copy link

It worked for me after adding CONFIG_HYPERV_VSOCKETS and CONFIG_VSOCKETS. Why aren't they added in the first place?
Shouldn't the config work out of the box?

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

No branches or pull requests

3 participants