Error code: Wsl/Service/CreateInstance/CreateVm/WSAENOTCONN
Hi, I'm trying to build custom kernel and load it. I did the following:
- Downloaded the WSL source
- Performed build process with default configuration
- copied the bzImage file to C:\Users%USER%.wsl-kernels\
- Modified the .wsl-config file to point to the new kernel location
- Performed wsl --shutdown
When I try to restart WSL, I get the following error:
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
Here's the boot log:
[ 0.000000] Linux version 6.6.75.3-g311ddbe567fe (kulasekaran@ECON002239) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP PREEMPT_DYNAMIC Tue Apr 1 11:24:01 IST 2025
[ 0.000000] Command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=1 hv_utils.timesync_implicit=1 earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0 WSL_ENABLE_CRASH_DUMP=1
[ 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-0x00000001ff5fffff] 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 0xa4e24, misc 0xe0bed7b2
[ 0.000000] Hyper-V: Nested features: 0x3e0101
[ 0.000000] Hyper-V: LAPIC Timer Frequency: 0x30d40
[ 0.000000] tsc: Detected 2496.008 MHz processor
[ 0.000009] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.004292] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.008280] last_pfn = 0x1ff600 max_arch_pfn = 0x400000000
[ 0.011865] MTRR map: 5 entries (4 fixed + 1 variable; max 20), built from 8 variable MTRRs
[ 0.016015] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.021022] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[ 0.032234] Using GB pages for direct mapping
[ 0.033899] Incomplete global flushes, disabling PCID
[ 0.034118] RAMDISK: [mem 0x039ed000-0x03c3dfff]
[ 0.037596] ACPI: Early table checksum verification disabled
[ 0.040713] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[ 0.044758] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.048158] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.053521] ACPI: DSDT 0x00000000001011B8 01E191 (v02 MSFTVM DSDT01 00000001 MSFT 05000000)
[ 0.059042] ACPI: FACS 0x0000000000101114 000040
[ 0.061286] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.067048] ACPI: SRAT 0x000000000011F349 0002C0 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.073277] ACPI: APIC 0x000000000011F609 000050 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.078043] ACPI: Reserving FACP table memory at [mem 0x101000-0x101113]
[ 0.081601] ACPI: Reserving DSDT table memory at [mem 0x1011b8-0x11f348]
[ 0.084888] ACPI: Reserving FACS table memory at [mem 0x101114-0x101153]
[ 0.086984] ACPI: Reserving OEM0 table memory at [mem 0x101154-0x1011b7]
[ 0.090006] ACPI: Reserving SRAT table memory at [mem 0x11f349-0x11f608]
[ 0.095000] ACPI: Reserving APIC table memory at [mem 0x11f609-0x11f658]
[ 0.099220] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[ 0.102083] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0xf7ffffff]
[ 0.105736] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x1ff5fffff]
[ 0.108685] ACPI: SRAT: Node 0 PXM 0 [mem 0x1ff600000-0x9ffdfffff]
[ 0.113240] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000-0xffffffffff]
[ 0.117877] ACPI: SRAT: Node 0 PXM 0 [mem 0x10000000000-0x1ffffffffff]
[ 0.122582] ACPI: SRAT: Node 0 PXM 0 [mem 0x20000000000-0x3ffffffffff]
[ 0.126492] ACPI: SRAT: Node 0 PXM 0 [mem 0x40000000000-0x7ffffffffff]
[ 0.128666] ACPI: SRAT: Node 0 PXM 0 [mem 0x80000000000-0xfffffffffff]
[ 0.132825] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000000-0x1fffffffffff]
[ 0.137693] ACPI: SRAT: Node 0 PXM 0 [mem 0x200000000000-0x3fffffffffff]
[ 0.142538] ACPI: SRAT: Node 0 PXM 0 [mem 0x400000000000-0x7fffffffffff]
[ 0.147463] ACPI: SRAT: Node 0 PXM 0 [mem 0x800000000000-0xffffffffffff]
[ 0.152074] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000000-0x1ffffffffffff]
[ 0.157151] ACPI: SRAT: Node 0 PXM 0 [mem 0x2000000000000-0x3ffffffffffff]
[ 0.160331] ACPI: SRAT: Node 0 PXM 0 [mem 0x4000000000000-0x7ffffffffffff]
[ 0.165010] ACPI: SRAT: Node 0 PXM 0 [mem 0x8000000000000-0xfffffffffffff]
[ 0.168251] NUMA: Node 0 [mem 0x00000000-0xf7ffffff] + [mem 0x100000000-0x1ff5fffff] -> [mem 0x00000000-0x1ff5fffff]
[ 0.174370] NODE_DATA(0) allocated [mem 0x1ff5fb000-0x1ff5fefff]
[ 0.177954] Zone ranges:
[ 0.179186] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.183091] DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
[ 0.187300] Normal [mem 0x0000000100000000-0x00000001ff5fffff]
[ 0.189919] Movable zone start for each node
[ 0.191556] Early memory node ranges
[ 0.194381] node 0: [mem 0x0000000000001000-0x000000000009ffff]
[ 0.198676] node 0: [mem 0x0000000000200000-0x00000000f7ffffff]
[ 0.201920] node 0: [mem 0x0000000100000000-0x00000001ff5fffff]
[ 0.205840] Initmem setup node 0 [mem 0x0000000000001000-0x00000001ff5fffff]
[ 0.210782] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.210809] On node 0, zone DMA: 352 pages in unavailable ranges
[ 0.234668] On node 0, zone Normal: 2560 pages in unavailable ranges
[ 0.237971] ACPI: PM-Timer IO Port: 0x408
[ 0.242174] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[ 0.245548] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
[ 0.250152] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.253369] ACPI: Using ACPI (MADT) for SMP configuration information
[ 0.257513] TSC deadline timer available
[ 0.260271] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.263483] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.268416] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[ 0.272830] PM: hibernation: Registered nosave memory: [mem 0x000e0000-0x000e0fff]
[ 0.278182] PM: hibernation: Registered nosave memory: [mem 0x000e1000-0x000fffff]
[ 0.283700] PM: hibernation: Registered nosave memory: [mem 0x00100000-0x001fffff]
[ 0.288219] PM: hibernation: Registered nosave memory: [mem 0xf8000000-0xffffffff]
[ 0.293082] [mem 0xf8000000-0xffffffff] available for PCI devices
[ 0.297331] Booting paravirtualized kernel on Hyper-V
[ 0.301000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.312626] setup_percpu: NR_CPUS:64 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
[ 0.317236] percpu: Embedded 54 pages/cpu s183080 r8192 d29912 u2097152
[ 0.320209] pcpu-alloc: s183080 r8192 d29912 u2097152 alloc=1*2097152
[ 0.324895] pcpu-alloc: [0] 0
[ 0.327154] Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=1 hv_utils.timesync_implicit=1 earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0 WSL_ENABLE_CRASH_DUMP=1
[ 0.340384] Unknown kernel command line parameters "WSL_ROOT_INIT=1 WSL_ENABLE_CRASH_DUMP=1", will be passed to user space.
[ 0.347186] random: crng init done
[ 0.350846] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.357003] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.359075] Fallback order for Node 0: 0
[ 0.359078] Built 1 zonelists, mobility grouping on. Total pages: 2028589
[ 0.363878] Policy zone: Normal
[ 0.364963] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.369412] software IO TLB: area num 1.
[ 0.400319] Memory: 7995736K/8245884K available (18432K kernel code, 2743K rwdata, 6556K rodata, 2652K init, 1456K bss, 249888K reserved, 0K cma-reserved)
[ 0.409525] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.413373] Dynamic Preempt: voluntary
[ 0.415836] rcu: Preemptible hierarchical RCU implementation.
[ 0.419681] rcu: RCU event tracing is enabled.
[ 0.421746] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[ 0.425987] Trampoline variant of Tasks RCU enabled.
[ 0.428502] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[ 0.432684] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.440320] Using NULL legacy PIC
[ 0.442384] NR_IRQS: 4352, nr_irqs: 256, preallocated irqs: 0
[ 0.446219] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.451130] Console: colour dummy device 80x25
[ 0.454211] ACPI: Core revision 20230628
[ 0.456924] Failed to register legacy timer interrupt
[ 0.459714] APIC: Switch to symmetric I/O mode setup
[ 0.461500] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x23fa7ec29e6, max_idle_ns: 440795214074 ns
[ 0.468642] Calibrating delay loop (skipped), value calculated using timer frequency.. 4992.01 BogoMIPS (lpj=2496008)
[ 0.469636] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[ 0.469636] CET detected: Indirect Branch Tracking enabled
[ 0.469636] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.469636] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.469636] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.469636] Spectre V2 : Spectre BHI mitigation: SW BHB clearing on vm exit
[ 0.469636] Spectre V2 : Spectre BHI mitigation: SW BHB clearing on syscall
[ 0.469636] Spectre V2 : Mitigation: Enhanced / Automatic IBRS
[ 0.469636] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.469636] Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT
[ 0.469636] RETBleed: Mitigation: Enhanced IBRS
[ 0.469636] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[ 0.469636] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl
[ 0.469636] Register File Data Sampling: Vulnerable: No microcode
[ 0.469636] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.469636] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.469636] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.469636] x86/fpu: Supporting XSAVE feature 0x800: 'Control-flow User registers'
[ 0.469636] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.469636] x86/fpu: xstate_offset[11]: 832, xstate_sizes[11]: 16
[ 0.469636] x86/fpu: Enabled xstate features 0x807, context size is 848 bytes, using 'compacted' format.
[ 0.469636] Freeing SMP alternatives memory: 48K
[ 0.469636] pid_max: default: 32768 minimum: 301
[ 0.469636] LSM: initializing lsm=capability,selinux,integrity
[ 0.469636] SELinux: Initializing.
[ 0.469636] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.469636] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.469636] smpboot: CPU0: 12th Gen Intel(R) Core(TM) i5-1235U (family: 0x6, model: 0x9a, stepping: 0x4)
[ 0.469763] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[ 0.470749] Performance Events: unsupported p6 CPU model 154 no PMU driver, software events only.
[ 0.471664] signal: max sigframe size: 1776
[ 0.472688] rcu: Hierarchical SRCU implementation.
[ 0.473642] rcu: Max phase no-delay instances is 400.
[ 0.474802] smp: Bringing up secondary CPUs ...
[ 0.475661] smp: Brought up 1 node, 1 CPU
[ 0.476648] smpboot: Max logical packages: 1
[ 0.477645] smpboot: Total of 1 processors activated (4992.01 BogoMIPS)
[ 0.479019] devtmpfs: initialized
[ 0.479772] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.480656] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.481873] PM: RTC time: 06:31:37, date: 2025-04-01
[ 0.482726] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.483719] audit: initializing netlink subsys (disabled)
[ 0.484694] audit: type=2000 audit(1743489097.016:1): state=initialized audit_enabled=0 res=1
[ 0.485724] thermal_sys: Registered thermal governor 'step_wise'
[ 0.485726] thermal_sys: Registered thermal governor 'user_space'
[ 0.486661] cpuidle: using governor menu
[ 0.488738] PCI: Fatal: No config space access function found
[ 0.489761] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[ 0.491672] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.492643] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.495786] ACPI: Added _OSI(Module Device)
[ 0.497656] ACPI: Added _OSI(Processor Device)
[ 0.499686] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.501652] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.507095] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.511144] ACPI: _OSC evaluation for CPUs failed, trying _PDC
[ 0.511695] ACPI: Interpreter enabled
[ 0.512653] ACPI: PM: (supports S0 S5)
[ 0.514673] ACPI: Using IOAPIC for interrupt routing
[ 0.516717] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.517641] PCI: Using E820 reservations for host bridge windows
[ 0.521636] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 0.522984] iommu: Default domain type: Translated
[ 0.523641] iommu: DMA domain TLB invalidation policy: lazy mode
[ 0.526578] SCSI subsystem initialized
[ 0.528242] libata version 3.00 loaded.
[ 0.528673] ACPI: bus type USB registered
[ 0.530865] usbcore: registered new interface driver usbfs
[ 0.531648] usbcore: registered new interface driver hub
[ 0.534189] usbcore: registered new device driver usb
[ 0.534668] pps_core: LinuxPPS API ver. 1 registered
[ 0.535641] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 0.538368] PTP clock support registered
[ 0.540090] Advanced Linux Sound Architecture Driver Initialized.
[ 0.540744] NetLabel: Initializing
[ 0.541639] NetLabel: domain hash size = 128
[ 0.542641] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.546675] NetLabel: unlabeled traffic allowed by default
[ 0.548780] PCI: Using ACPI for IRQ routing
[ 0.549645] PCI: System does not support PCI
[ 0.553344] vgaarb: loaded
[ 0.553722] clocksource: Switched to clocksource tsc-early
[ 0.586199] VFS: Disk quotas dquot_6.6.0
[ 0.588456] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.592838] pnp: PnP ACPI init
[ 0.594834] pnp: PnP ACPI: found 3 devices
[ 0.602394] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.608051] NET: Registered PF_INET protocol family
[ 0.611055] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.616957] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.622862] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.627783] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.632646] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[ 0.637373] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.641089] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.644904] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.648846] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.652000] RPC: Registered named UNIX socket transport module.
[ 0.655174] RPC: Registered udp transport module.
[ 0.658426] RPC: Registered tcp transport module.
[ 0.661164] RPC: Registered tcp-with-tls transport module.
[ 0.664967] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.668057] PCI: CLS 0 bytes, default 64
[ 0.670085] Unpacking initramfs...
[ 0.672406] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.676527] software IO TLB: mapped [mem 0x00000000f4000000-0x00000000f8000000] (64MB)
[ 0.682372] Freeing initrd memory: 2372K
[ 0.683997] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
[ 0.689871] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x23fa7ec29e6, max_idle_ns: 440795214074 ns
[ 0.695797] clocksource: Switched to clocksource tsc
[ 0.699484] Initialise system trusted keyrings
[ 0.701818] workingset: timestamp_bits=56 max_order=21 bucket_order=0
[ 0.705496] NFS: Registering the id_resolver key type
[ 0.708766] Key type id_resolver registered
[ 0.710497] Key type id_legacy registered
[ 0.712961] 9p: Installing v9fs 9p2000 file system support
[ 0.723311] Key type asymmetric registered
[ 0.724542] Asymmetric key parser 'x509' registered
[ 0.727040] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.731989] io scheduler mq-deadline registered
[ 0.734956] io scheduler kyber registered
[ 0.737987] ACPI: AC: AC Adapter [AC1] (on-line)
[ 0.741735] ACPI: battery: Slot [BAT1] (battery present)
[ 0.744946] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.748547] 00:00: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.754409] 00:01: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 0.759634] Non-volatile memory driver v1.3
[ 0.761087] Linux agpgart interface v0.103
[ 0.763669] ACPI: bus type drm_connector registered
[ 0.767069] loop: module loaded
[ 0.769263] e100: Intel(R) PRO/100 Network Driver
[ 0.772301] e100: Copyright(c) 1999-2006 Intel Corporation
[ 0.776226] e1000: Intel(R) PRO/1000 Network Driver
[ 0.779323] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.783038] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.786515] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.790655] sky2: driver version 1.30
[ 0.793428] usbcore: registered new interface driver usblp
[ 0.795917] usbcore: registered new interface driver usb-storage
[ 0.799795] i8042: PNP: No PS/2 controller found.
[ 0.803127] rtc_cmos 00:02: RTC can wake from S4
[ 0.809313] rtc_cmos 00:02: registered as rtc0
[ 0.812747] rtc_cmos 00:02: alarms up to one month, 114 bytes nvram
[ 0.817233] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: [email protected]
[ 0.822895] intel_pstate: CPU model not supported
[ 0.826011] hid: raw HID events driver (C) Jiri Kosina
[ 0.828904] usbcore: registered new interface driver usbhid
[ 0.832803] usbhid: USB HID core driver
[ 0.835309] Initializing XFRM netlink socket
[ 0.838315] NET: Registered PF_INET6 protocol family
[ 0.841888] Segment Routing with IPv6
[ 0.843789] In-situ OAM (IOAM) with IPv6
[ 0.846600] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.850858] NET: Registered PF_PACKET protocol family
[ 0.854406] 9pnet: Installing 9P2000 support
[ 0.857398] Key type dns_resolver registered
[ 0.859470] IPI shorthand broadcast: enabled
[ 0.863444] sched_clock: Marking stable (845212217, 17561809)->(1130866344, -268092318)
[ 0.869136] registered taskstats version 1
[ 0.872027] Loading compiled-in X.509 certificates
[ 0.875648] PM: Magic number: 5:174:518
[ 0.878314] printk: console [netcon0] enabled
[ 0.881357] netconsole: network logging started
[ 0.884561] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.890048] kworker/u2:1 (39) used greatest stack depth: 14728 bytes left
[ 0.894968] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.898772] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 0.903816] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 0.908727] ALSA device list:
[ 0.910967] cfg80211: failed to load regulatory.db
[ 0.913980] No soundcards found.
[ 0.916274] Warning: unable to open an initial console.
[ 0.920286] Freeing unused kernel image (initmem) memory: 2652K
[ 0.921938] Write protecting the kernel read-only data: 26624k
[ 0.923947] Freeing unused kernel image (rodata/data gap) memory: 1636K
[ 0.935348] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 0.937302] Run /init as init process
[ 0.938372] with arguments:
[ 0.940417] /init
[ 0.942000] with environment:
[ 0.944282] HOME=/
[ 0.945936] TERM=linux
[ 0.947816] WSL_ROOT_INIT=1
[ 0.950008] WSL_ENABLE_CRASH_DUMP=1
[ 0.952981] WSL (1 - ) ERROR: InitializeLogging:1655: open(/dev/hvc2) failed 2
[ 0.954947] WSL (1 - ) ERROR: main:3846: /init was started without /dev/console
[ 15.957202] WSL (1 - ) ERROR: UtilConnectVsock:549: socket failed 97
[ 15.983892] WSL (1) ERROR: No such file or directory @C:/__w/1/s/src/shared/inc\stringshared.h:415 (ReadFile)
[ 15.995408] WSL (1) ERROR: filesystem error: in directory_iterator::directory_iterator(...): No such file or directory ["/sys/bus/scsi/devices"]
[ 15.995841] ACPI: PM: Preparing to enter system sleep state S5
[ 16.009573] reboot: Power down
The connection with the virtual machine or container was closed.
Logs are required for review from WSL team
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.
How 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 script will output the path of the log file once done.
If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here
Once completed please upload the output files to this Github issue.
Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.
/question
Diagnostic information
Found '/question', adding tag 'question'
Linux error 97 is EAFNOSUPPORT. Is the kernel compiled without AF_VSOCK perhaps?
@benhillis I built with default configuration. Can you guide me how to verify if AF_VSOCK was enabled/disabled?
Here is some additional information:
WSL version: 2.4.13.0 Kernel version: 5.15.167.4-1 WSLg version: 1.0.65 MSRDC version: 1.2.5716 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.22631.5039
I tried with both the bzImage and the vmlinuz file. Both give out the same error.
@benhillis I enabled an option called "Virtual socket protocol" in the menuconfig. Now this is the output:
[ 0.402665] Warning: unable to open an initial console.
[ 0.405307] Freeing unused kernel image (initmem) memory: 1488K
[ 0.406953] Write protecting the kernel read-only data: 24576k
[ 0.408689] Freeing unused kernel image (text/rodata gap) memory: 2032K
[ 0.410539] Freeing unused kernel image (rodata/data gap) memory: 1296K
[ 0.414741] Run /init as init process
[ 0.416121] with arguments:
[ 0.416919] /init
[ 0.417482] with environment:
[ 0.419291] HOME=/
[ 0.420979] TERM=linux
[ 0.422315] WSL_ROOT_INIT=1
[ 0.423741] WSL_ENABLE_CRASH_DUMP=1
[ 0.426740] WSL (1 - ) ERROR: InitializeLogging:1655: open(/dev/hvc2) failed 2
[ 0.429408] WSL (1 - ) ERROR: main:3846: /init was started without /dev/console
[ 1.188645] tsc: Refined TSC clocksource calibration: 2496.011 MHz
[ 1.194811] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x23fa819abfc, max_idle_ns: 440795230006 ns
[ 1.200150] clocksource: Switched to clocksource tsc
[ 15.439615] WSL (1 - ) ERROR: UtilConnectVsock:587: connect port 50000 failed 104
[ 15.447125] WSL (1) ERROR: No such file or directory @C:/__w/1/s/src/shared/inc\stringshared.h:415 (ReadFile)
[ 15.454220] WSL (1) ERROR: filesystem error: in directory_iterator::directory_iterator(...): No such file or directory ["/sys/bus/scsi/devices"]
[ 15.455536] ACPI: PM: Preparing to enter system sleep state S5
[ 15.465957] reboot: Power down
The connection with the virtual machine or container was closed.
@Kulasekaran-148 based on your output, you are not getting a hypervisor console (open(/dev/hvc2) failed) so hyper-v can't communicate with your vm.
If you want to debug don't use earlycon, WSL alreay has the option --debug-shell
@zcobol I tried to launch wsl with the command wsl --debug-shell and it's throwing the following error:
The system cannot find the file specified.
Error code: Wsl/DebugShell/ERROR_FILE_NOT_FOUND
Is earlycon something that I have to disable from the menuconfig ?
@Kulasekaran-148 from your boot messages:
Command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=1 hv_utils.timesync_implicit=1 earlycon=uart8250,io,0x3f8,115200 console=hvc0 debug pty.legacy_count=0 WSL_ENABLE_CRASH_DUMP=1
Disable earlycon while booting. Use .wslconf to set kernel arguments.
Also, try booting the system distro with wsl --system and see if it starts.
@zcobol I added the following line to .wslconfig:
kernelCommandLine = "quiet splash loglevel=3 noearlycon"
still the same issue:
[ 0.488777] with arguments:
[ 0.489692] /init
[ 0.491729] with environment:
[ 0.494383] HOME=/
[ 0.495272] TERM=linux
[ 0.496314] WSL_ROOT_INIT=1
[ 0.498515] WSL_ENABLE_CRASH_DUMP=1
[ 0.501515] WSL (1 - ) ERROR: InitializeLogging:1655: open(/dev/hvc2) failed 2
[ 0.506512] WSL (1 - ) ERROR: main:3846: /init was started without /dev/console
[ 1.255599] tsc: Refined TSC clocksource calibration: 2496.013 MHz
[ 1.265933] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x23fa83802b9, max_idle_ns: 440795289750 ns
[ 1.273186] clocksource: Switched to clocksource tsc
[ 15.511320] WSL (1 - ) ERROR: UtilConnectVsock:587: connect port 50000 failed 104
[ 15.518858] WSL (1) ERROR: No such file or directory @C:/__w/1/s/src/shared/inc\stringshared.h:415 (ReadFile)
[ 15.524575] WSL (1) ERROR: filesystem error: in directory_iterator::directory_iterator(...): No such file or directory ["/sys/bus/scsi/devices"]
[ 15.525836] ACPI: PM: Preparing to enter system sleep state S5
[ 15.536785] reboot: Power down
The connection with the virtual machine or container was closed.
@Kulasekaran-148 is your generated kernel very big? im in the same situation, while 5.15.167.4 is around 14MB, the generated 6.6.87.1 is 48MB.
I want to generate a kernel without modules (did so in the past) but need some flags for cilium but cant get 6.6.87.1 to work :/
WSL version: 2.4.13.0 Kernel version: 5.15.167.4-1 WSLg version: 1.0.65 MSRDC version: 1.2.5716 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.22631.5189
It sounds though as my problem is more related to this issue: https://github.com/microsoft/WSL/issues/11887 or maybe they are both similar/related.
just as an update, the 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 shipped with WSL version 2.5.10.0 seems to have all required flags for cilium enabled, so no custom kernel needed for me anymore.