Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2 systemd integration does not work (Windows 11) #9313

Closed
1 of 2 tasks
plombardi89 opened this issue Dec 12, 2022 · 4 comments
Closed
1 of 2 tasks

WSL2 systemd integration does not work (Windows 11) #9313

plombardi89 opened this issue Dec 12, 2022 · 4 comments

Comments

@plombardi89
Copy link

Version

Microsoft Windows [Version 10.0.22621.819]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.15.79.1

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

  1. Added the following to /etc/wsl.conf
[boot]
systemd=true
  1. Restarted wsl with wsl --shutdown (also performed a full system restart during debug attempts)

Expected Behavior

I expected systemd to be running as PID 1 and systemctl to be able to successfully query the state of services.

Actual Behavior

$ systemctl is-system-running
offline

$ systemctl status docker.service
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

Diagnostic Logs

dmesg:

$ dmesg
[    0.000000] Linux version 5.15.79.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Nov 23 01:01:46 UTC 2022
[    0.000000] Command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=12 swiotlb=force console=hvc0 debug pty.legacy_count=0
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[    0.000000] 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-0x00000008057fffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] DMI not present or invalid.
[    0.000000] Hypervisor detected: Microsoft Hyper-V
[    0.000000] Hyper-V: privilege flags low 0xae7f, high 0x3b8030, hints 0xc2c, misc 0xe0bed7b6
[    0.000000] Hyper-V Host Build:22621-10.0-0-0.819
[    0.000000] Hyper-V: Nested features: 0x4a0000
[    0.000000] Hyper-V: LAPIC Timer Frequency: 0x1e8480
[    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.000003] tsc: Detected 3500.046 MHz processor
[    0.000012] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000015] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000019] last_pfn = 0x805800 max_arch_pfn = 0x400000000
[    0.000053] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT
[    0.000065] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[    0.000073] Using GB pages for direct mapping
[    0.000380] RAMDISK: [mem 0x03a35000-0x03c0efff]
[    0.000384] ACPI: Early table checksum verification disabled
[    0.000392] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[    0.000396] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000402] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000407] ACPI: DSDT 0x00000000001011B8 01E191 (v02 MSFTVM DSDT01   00000001 MSFT 05000000)
[    0.000411] ACPI: FACS 0x0000000000101114 000040
[    0.000414] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000417] ACPI: SRAT 0x000000000011F349 000370 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000420] ACPI: APIC 0x000000000011F6B9 0000A8 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000423] ACPI: Reserving FACP table memory at [mem 0x101000-0x101113]
[    0.000424] ACPI: Reserving DSDT table memory at [mem 0x1011b8-0x11f348]
[    0.000426] ACPI: Reserving FACS table memory at [mem 0x101114-0x101153]
[    0.000427] ACPI: Reserving OEM0 table memory at [mem 0x101154-0x1011b7]
[    0.000428] ACPI: Reserving SRAT table memory at [mem 0x11f349-0x11f6b8]
[    0.000429] ACPI: Reserving APIC table memory at [mem 0x11f6b9-0x11f760]
[    0.000629] Zone ranges:
[    0.000631]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000633]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000635]   Normal   [mem 0x0000000100000000-0x00000008057fffff]
[    0.000637]   Device   empty
[    0.000638] Movable zone start for each node
[    0.000639] Early memory node ranges
[    0.000640]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.000642]   node   0: [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000643]   node   0: [mem 0x0000000100000000-0x00000008057fffff]
[    0.000647] Initmem setup node 0 [mem 0x0000000000001000-0x00000008057fffff]
[    0.000810] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.000837] On node 0, zone DMA: 352 pages in unavailable ranges
[    0.010209] On node 0, zone Normal: 10240 pages in unavailable ranges
[    0.010272] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[    0.010480] IOAPIC[0]: apic_id 12, version 17, address 0xfec00000, GSI 0-23
[    0.010485] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.010488] ACPI: Using ACPI (MADT) for SMP configuration information
[    0.010495] smpboot: Allowing 12 CPUs, 0 hotplug CPUs
[    0.010503] [mem 0xf8000000-0xffffffff] available for PCI devices
[    0.010504] Booting paravirtualized kernel on Hyper-V
[    0.010506] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014145] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:12 nr_node_ids:1
[    0.014931] percpu: Embedded 53 pages/cpu s177496 r8192 d31400 u262144
[    0.014938] pcpu-alloc: s177496 r8192 d31400 u262144 alloc=1*2097152
[    0.014941] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 [0] 08 09 10 11 -- -- -- --
[    0.014961] Hyper-V: PV spinlocks enabled
[    0.014964] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.014969] Built 1 zonelists, mobility grouping on.  Total pages: 8246437
[    0.014971] Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=12 swiotlb=force console=hvc0 debug pty.legacy_count=0
[    0.015059] Unknown kernel command line parameters "WSL_ROOT_INIT=1", will be passed to user space.
[    0.019674] Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes, linear)
[    0.021951] Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[    0.022003] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.045530] Memory: 4081500K/33512060K available (18452K kernel code, 2627K rwdata, 9760K rodata, 2028K init, 1876K bss, 687952K reserved, 0K cma-reserved)
[    0.045564] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=12, Nodes=1
[    0.045571] ftrace: allocating 54585 entries in 214 pages
[    0.063294] ftrace: allocated 214 pages with 5 groups
[    0.063470] rcu: Hierarchical RCU implementation.
[    0.063472] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=12.
[    0.063473]  Rude variant of Tasks RCU enabled.
[    0.063474]  Tracing variant of Tasks RCU enabled.
[    0.063474] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.063475] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=12
[    0.066437] Using NULL legacy PIC
[    0.066439] NR_IRQS: 16640, nr_irqs: 520, preallocated irqs: 0
[    0.066627] random: crng init done
[    0.066648] Console: colour dummy device 80x25
[    0.066657] ACPI: Core revision 20210730
[    0.066717] Failed to register legacy timer interrupt
[    0.066718] APIC: Switch to symmetric I/O mode setup
[    0.066720] Switched APIC routing to physical flat.
[    0.066736] Hyper-V: Using IPI hypercalls
[    0.066736] Hyper-V: Using enlightened APIC (xapic mode)
[    0.066814] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x32737cf9bc9, max_idle_ns: 440795382710 ns
[    0.066820] Calibrating delay loop (skipped), value calculated using timer frequency.. 7000.09 BogoMIPS (lpj=35000460)
[    0.066822] pid_max: default: 32768 minimum: 301
[    0.066832] LSM: Security Framework initializing
[    0.066836] landlock: Up and running.
[    0.066872] Mount-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.066907] Mountpoint-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.067083] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[    0.067101] Last level iTLB entries: 4KB 512, 2MB 512, 4MB 256
[    0.067102] Last level dTLB entries: 4KB 2048, 2MB 2048, 4MB 1024, 1GB 0
[    0.067105] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.067106] Spectre V2 : Mitigation: Retpolines
[    0.067107] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.067108] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT
[    0.067108] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.067109] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[    0.067110] Spectre V2 : User space: Mitigation: STIBP via seccomp and prctl
[    0.067111] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[    0.076817] Freeing SMP alternatives memory: 60K
[    0.076817] smpboot: CPU0: AMD Ryzen 5 5600 6-Core Processor (family: 0x19, model: 0x21, stepping: 0x2)
[    0.076817] Performance Events: Fam17h+ core perfctr, AMD PMU driver.
[    0.076817] ... version:                0
[    0.076817] ... bit width:              48
[    0.076817] ... generic registers:      6
[    0.076817] ... value mask:             0000ffffffffffff
[    0.076817] ... max period:             00007fffffffffff
[    0.076817] ... fixed-purpose events:   0
[    0.076817] ... event mask:             000000000000003f
[    0.076817] rcu: Hierarchical SRCU implementation.
[    0.076817] smp: Bringing up secondary CPUs ...
[    0.076817] x86: Booting SMP configuration:
[    0.076817] .... node  #0, CPUs:        #1  #2  #3  #4  #5  #6  #7  #8  #9 #10 #11
[    0.076817] smp: Brought up 1 node, 12 CPUs
[    0.076817] smpboot: Max logical packages: 1
[    0.076817] smpboot: Total of 12 processors activated (84001.10 BogoMIPS)
[    0.099171] node 0 deferred pages initialised in 30ms
[    0.106857] devtmpfs: initialized
[    0.106857] x86/mm: Memory block size: 128MB
[    0.107383] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.107383] futex hash table entries: 4096 (order: 6, 262144 bytes, linear)
[    0.107383] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.107383] thermal_sys: Registered thermal governor 'step_wise'
[    0.107383] cpuidle: using governor menu
[    0.107383] ACPI: bus type PCI registered
[    0.107383] PCI: Fatal: No config space access function found
[    0.108106] Kprobes globally optimized
[    0.108129] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.108129] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.108129] raid6: skip pq benchmark and using algorithm avx2x4
[    0.108129] raid6: using avx2x2 recovery algorithm
[    0.108129] ACPI: Added _OSI(Module Device)
[    0.108129] ACPI: Added _OSI(Processor Device)
[    0.108129] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.108129] ACPI: Added _OSI(Processor Aggregator Device)
[    0.108129] ACPI: Added _OSI(Linux-Dell-Video)
[    0.108129] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.108129] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.110044] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.110529] ACPI: Interpreter enabled
[    0.110531] ACPI: PM: (supports S0 S5)
[    0.110532] ACPI: Using IOAPIC for interrupt routing
[    0.110536] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.110603] ACPI: Enabled 1 GPEs in block 00 to 0F
[    0.117028] iommu: Default domain type: Translated
[    0.117030] iommu: DMA domain TLB invalidation policy: lazy mode
[    0.117073] SCSI subsystem initialized
[    0.117079] ACPI: bus type USB registered
[    0.117084] usbcore: registered new interface driver usbfs
[    0.117087] usbcore: registered new interface driver hub
[    0.117090] usbcore: registered new device driver usb
[    0.117096] pps_core: LinuxPPS API ver. 1 registered
[    0.117096] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.117098] PTP clock support registered
[    0.117116] hv_vmbus: Vmbus version:5.3
[    0.117116] PCI: Using ACPI for IRQ routing
[    0.117116] PCI: System does not support PCI
[    0.117330] clocksource: Switched to clocksource tsc-early
[    0.117618] hv_vmbus: Unknown GUID: c376c1c3-d276-48d2-90a9-c04748072c60
[    0.117668] hv_vmbus: Unknown GUID: 6e382d18-3336-4f4b-acc4-2b7703d4df4a
[    0.117680] hv_vmbus: Unknown GUID: dde9cbc0-5060-4436-9448-ea1254a5d177
[    0.125709] VFS: Disk quotas dquot_6.6.0
[    0.125722] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.125740] FS-Cache: Loaded
[    0.125763] pnp: PnP ACPI init
[    0.125849] pnp: PnP ACPI: found 1 devices
[    0.128896] NET: Registered PF_INET protocol family
[    0.129218] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.130225] tcp_listen_portaddr_hash hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.130251] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.130256] TCP established hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.130767] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.131041] TCP: Hash tables configured (established 262144 bind 65536)
[    0.131067] UDP hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.131114] UDP-Lite hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.131182] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.131505] RPC: Registered named UNIX socket transport module.
[    0.131507] RPC: Registered udp transport module.
[    0.131508] RPC: Registered tcp transport module.
[    0.131509] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.131511] PCI: CLS 0 bytes, default 64
[    0.131530] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.131531] software IO TLB: mapped [mem 0x00000000f4000000-0x00000000f8000000] (64MB)
[    0.131582] kvm: no hardware support
[    0.131746] Trying to unpack rootfs image as initramfs...
[    0.132592] Freeing initrd memory: 1896K
[    0.219059] kvm: Nested Virtualization enabled
[    0.219062] SVM: kvm: Nested Paging enabled
[    0.219064] SVM: kvm: Hyper-V enlightened NPT TLB flush enabled
[    0.219065] SVM: kvm: Hyper-V Direct TLB Flush enabled
[    0.219075] SVM: Virtual VMLOAD VMSAVE supported
[    0.278054] Initialise system trusted keyrings
[    0.278192] workingset: timestamp_bits=46 max_order=23 bucket_order=0
[    0.278867] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.279094] NFS: Registering the id_resolver key type
[    0.279099] Key type id_resolver registered
[    0.279100] Key type id_legacy registered
[    0.279102] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.279104] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.279105] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.279518] Key type cifs.idmap registered
[    0.279558] fuse: init (API version 7.34)
[    0.279638] SGI XFS with ACLs, security attributes, realtime, scrub, repair, quota, no debug enabled
[    0.279822] 9p: Installing v9fs 9p2000 file system support
[    0.279828] FS-Cache: Netfs '9p' registered for caching
[    0.279851] FS-Cache: Netfs 'ceph' registered for caching
[    0.279853] ceph: loaded (mds proto 32)
[    0.282286] NET: Registered PF_ALG protocol family
[    0.282289] xor: automatically using best checksumming function   avx
[    0.282291] Key type asymmetric registered
[    0.282292] Asymmetric key parser 'x509' registered
[    0.282313] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.282658] hv_vmbus: registering driver hv_pci
[    0.282859] hv_pci c2a3fd33-ddd3-4ad5-990e-995856d91e35: PCI VMBus probing: Using version 0x10004
[    0.283538] hv_pci c2a3fd33-ddd3-4ad5-990e-995856d91e35: PCI host bridge to bus ddd3:00
[    0.283541] pci_bus ddd3:00: root bus resource [mem 0xc00000000-0xc00002fff window]
[    0.283542] pci_bus ddd3:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.284042] pci ddd3:00:00.0: [1af4:1043] type 00 class 0x010000
[    0.284676] pci ddd3:00:00.0: reg 0x10: [mem 0xc00000000-0xc00000fff 64bit]
[    0.285093] pci ddd3:00:00.0: reg 0x18: [mem 0xc00001000-0xc00001fff 64bit]
[    0.285499] pci ddd3:00:00.0: reg 0x20: [mem 0xc00002000-0xc00002fff 64bit]
[    0.287453] pci_bus ddd3:00: busn_res: [bus 00-ff] end is updated to 00
[    0.287458] pci ddd3:00:00.0: BAR 0: assigned [mem 0xc00000000-0xc00000fff 64bit]
[    0.287750] pci ddd3:00:00.0: BAR 2: assigned [mem 0xc00001000-0xc00001fff 64bit]
[    0.288038] pci ddd3:00:00.0: BAR 4: assigned [mem 0xc00002000-0xc00002fff 64bit]
[    0.288480] hv_pci 552c7130-747d-442d-a599-dc0832efe0b1: PCI VMBus probing: Using version 0x10004
[    0.288929] hv_pci 552c7130-747d-442d-a599-dc0832efe0b1: PCI host bridge to bus 747d:00
[    0.288931] pci_bus 747d:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.289167] pci 747d:00:00.0: [1414:008e] type 00 class 0x030200
[    0.291842] pci_bus 747d:00: busn_res: [bus 00-ff] end is updated to 00
[    0.291983] hv_pci a9dbe6b7-e413-4d7b-b2f3-36b38b2f8a30: PCI VMBus probing: Using version 0x10004
[    0.292607] hv_pci a9dbe6b7-e413-4d7b-b2f3-36b38b2f8a30: PCI host bridge to bus e413:00
[    0.292609] pci_bus e413:00: root bus resource [mem 0xc00004000-0xc00006fff window]
[    0.292610] pci_bus e413:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.293182] pci e413:00:00.0: [1af4:1049] type 00 class 0x010000
[    0.293764] pci e413:00:00.0: reg 0x10: [mem 0xc00004000-0xc00004fff 64bit]
[    0.294266] pci e413:00:00.0: reg 0x18: [mem 0xc00005000-0xc00005fff 64bit]
[    0.294723] pci e413:00:00.0: reg 0x20: [mem 0xc00006000-0xc00006fff 64bit]
[    0.296952] pci_bus e413:00: busn_res: [bus 00-ff] end is updated to 00
[    0.296956] pci e413:00:00.0: BAR 0: assigned [mem 0xc00004000-0xc00004fff 64bit]
[    0.297254] pci e413:00:00.0: BAR 2: assigned [mem 0xc00005000-0xc00005fff 64bit]
[    0.297548] pci e413:00:00.0: BAR 4: assigned [mem 0xc00006000-0xc00006fff 64bit]
[    0.303032] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.326909] Non-volatile memory driver v1.3
[    0.327049] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[    0.327589] printk: console [hvc0] enabled
[    0.328875] brd: module loaded
[    0.329549] loop: module loaded
[    0.329745] hv_vmbus: registering driver hv_storvsc
[    0.330374] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    0.330591] scsi host0: storvsc_host_t
[    0.330770] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    0.331367] tun: Universal TUN/TAP device driver, 1.6
[    0.331653] PPP generic driver version 2.4.2
[    0.331909] PPP BSD Compression module registered
[    0.332106] PPP Deflate Compression module registered
[    0.332298] PPP MPPE Compression module registered
[    0.332480] NET: Registered PF_PPPOX protocol family
[    0.332679] usbcore: registered new interface driver cdc_ether
[    0.332913] usbcore: registered new interface driver cdc_ncm
[    0.333175] usbcore: registered new interface driver r8153_ecm
[    0.333443] hv_vmbus: registering driver hv_netvsc
[    0.333705] VFIO - User Level meta-driver version: 0.3
[    0.334011] usbcore: registered new interface driver cdc_acm
[    0.334288] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.334623] usbcore: registered new interface driver ch341
[    0.334832] usbserial: USB Serial support registered for ch341-uart
[    0.335093] usbcore: registered new interface driver cp210x
[    0.335315] usbserial: USB Serial support registered for cp210x
[    0.335597] usbcore: registered new interface driver ftdi_sio
[    0.335878] usbserial: USB Serial support registered for FTDI USB Serial Device
[    0.336254] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[    0.336513] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 1
[    0.336790] vhci_hcd: created sysfs vhci_hcd.0
[    0.337161] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    0.337463] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.337753] usb usb1: Product: USB/IP Virtual Host Controller
[    0.337987] usb usb1: Manufacturer: Linux 5.15.79.1-microsoft-standard-WSL2 vhci_hcd
[    0.338259] usb usb1: SerialNumber: vhci_hcd.0
[    0.338526] hub 1-0:1.0: USB hub found
[    0.338709] hub 1-0:1.0: 8 ports detected
[    0.339033] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[    0.339283] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
[    0.339614] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.339973] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    0.340285] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.340569] usb usb2: Product: USB/IP Virtual Host Controller
[    0.340800] usb usb2: Manufacturer: Linux 5.15.79.1-microsoft-standard-WSL2 vhci_hcd
[    0.341079] usb usb2: SerialNumber: vhci_hcd.0
[    0.341340] hub 2-0:1.0: USB hub found
[    0.341529] hub 2-0:1.0: 8 ports detected
[    0.341938] hv_vmbus: registering driver hyperv_keyboard
[    0.342307] rtc_cmos 00:00: RTC can wake from S4
[    0.343372] rtc_cmos 00:00: registered as rtc0
[    0.343752] rtc_cmos 00:00: setting system clock to 2022-12-12T06:33:41 UTC (1670826821)
[    0.344031] rtc_cmos 00:00: alarms up to one month, 114 bytes nvram
[    0.344395] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    0.344830] device-mapper: raid: Loading target version 1.15.1
[    0.345111] usbcore: registered new interface driver usbhid
[    0.345295] usbhid: USB HID core driver
[    0.345477] hv_utils: Registering HyperV Utility Driver
[    0.345718] hv_vmbus: registering driver hv_utils
[    0.345922] hv_vmbus: registering driver hv_balloon
[    0.346222] hv_utils: TimeSync IC version 4.0
[    0.346248] hv_vmbus: registering driver dxgkrnl
[    0.346594] hv_balloon: Using Dynamic Memory protocol version 2.0
[    0.347466] drop_monitor: Initializing network drop monitor service
[    0.347888] Mirror/redirect action on
[    0.347936] Free page reporting enabled
[    0.348097] u32 classifier
[    0.348269] hv_balloon: Cold memory discard hint enabled with order 9
[    0.348624]     Performance counters on
[    0.348758]     input device check on
[    0.348892]     Actions configured
[    0.349575] IPVS: Registered protocols (TCP, UDP)
[    0.349771] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[    0.350067] IPVS: ipvs loaded.
[    0.350208] IPVS: [rr] scheduler registered.
[    0.350393] IPVS: [wrr] scheduler registered.
[    0.350577] IPVS: [sh] scheduler registered.
[    0.350781] ipip: IPv4 and MPLS over IPv4 tunneling driver
[    0.351009] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[    0.351242] Initializing XFRM netlink socket
[    0.351450] NET: Registered PF_INET6 protocol family
[    0.351865] Segment Routing with IPv6
[    0.352031] In-situ OAM (IOAM) with IPv6
[    0.352189] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.352459] NET: Registered PF_PACKET protocol family
[    0.352655] Bridge firewalling registered
[    0.352797] 8021q: 802.1Q VLAN Support v1.8
[    0.352951] sctp: Hash tables configured (bind 512/512)
[    0.353169] 9pnet: Installing 9P2000 support
[    0.363128] Key type dns_resolver registered
[    0.363351] Key type ceph registered
[    0.363586] libceph: loaded (mon/osd proto 15/24)
[    0.363869] NET: Registered PF_VSOCK protocol family
[    0.364072] hv_vmbus: registering driver hv_sock
[    0.364286] IPI shorthand broadcast: enabled
[    0.364475] sched_clock: Marking stable (363655586, 205500)->(382910700, -19049614)
[    0.365005] registered taskstats version 1
[    0.365440] Loading compiled-in X.509 certificates
[    0.366224] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no
[    0.367127] Freeing unused kernel image (initmem) memory: 2028K
[    0.436858] Write protecting the kernel read-only data: 30720k
[    0.437527] Freeing unused kernel image (text/rodata gap) memory: 2024K
[    0.437927] Freeing unused kernel image (rodata/data gap) memory: 480K
[    0.438175] Run /init as init process
[    0.438313]   with arguments:
[    0.438451]     /init
[    0.438541]   with environment:
[    0.438680]     HOME=/
[    0.438772]     TERM=linux
[    0.438863]     WSL_ROOT_INIT=1
[    0.455779] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    0.457069] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    0.457919] sd 0:0:0:0: [sda] 743696 512-byte logical blocks: (381 MB/363 MiB)
[    0.458420] sd 0:0:0:0: [sda] Write Protect is on
[    0.458703] sd 0:0:0:0: [sda] Mode Sense: 0f 00 80 00
[    0.459104] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    0.957230] EXT4-fs (sda): mounted filesystem without journal. Opts: (null). Quota mode: none.
[    1.114078] FS-Cache: Duplicate cookie detected
[    1.114332] FS-Cache: O-cookie c=00000004 [p=00000002 fl=222 nc=0 na=1]
[    1.114646] FS-Cache: O-cookie d=00000000fcc693e0{9P.session} n=0000000019b544be
[    1.114936] FS-Cache: O-key=[10] '34323934393337343031'
[    1.115166] FS-Cache: N-cookie c=00000005 [p=00000002 fl=2 nc=0 na=1]
[    1.115409] FS-Cache: N-cookie d=00000000fcc693e0{9P.session} n=000000006bf04684
[    1.115702] FS-Cache: N-key=[10] '34323934393337343031'
[    1.116769] FS-Cache: Duplicate cookie detected
[    1.117058] FS-Cache: O-cookie c=00000004 [p=00000002 fl=222 nc=0 na=1]
[    1.117372] FS-Cache: O-cookie d=00000000fcc693e0{9P.session} n=0000000019b544be
[    1.117675] FS-Cache: O-key=[10] '34323934393337343031'
[    1.117901] FS-Cache: N-cookie c=00000006 [p=00000002 fl=2 nc=0 na=1]
[    1.118220] FS-Cache: N-cookie d=00000000fcc693e0{9P.session} n=000000002473a63c
[    1.118607] FS-Cache: N-key=[10] '34323934393337343031'
[    1.166973] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.336855] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x32737cf9bc9, max_idle_ns: 440795382710 ns
[    1.336857] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    1.338341] clocksource: Switched to clocksource tsc
[    1.876989] scsi 0:0:0:1: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.877887] sd 0:0:0:1: Attached scsi generic sg1 type 0
[    1.878342] scsi 0:0:0:2: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.878347] sd 0:0:0:1: [sdb] 16777224 512-byte logical blocks: (8.59 GB/8.00 GiB)
[    1.878972] sd 0:0:0:2: Attached scsi generic sg2 type 0
[    1.879263] sd 0:0:0:1: [sdb] 4096-byte physical blocks
[    1.879894] sd 0:0:0:1: [sdb] Write Protect is off
[    1.880207] sd 0:0:0:1: [sdb] Mode Sense: 0f 00 00 00
[    1.880660] sd 0:0:0:2: [sdc] 2147483648 512-byte logical blocks: (1.10 TB/1.00 TiB)
[    1.880665] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.881135] sd 0:0:0:2: [sdc] 4096-byte physical blocks
[    1.881643] sd 0:0:0:2: [sdc] Write Protect is off
[    1.882191] sd 0:0:0:2: [sdc] Mode Sense: 0f 00 00 00
[    1.882624] sd 0:0:0:2: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.883434] sd 0:0:0:1: [sdb] Attached SCSI disk
[    1.885048] sd 0:0:0:2: [sdc] Attached SCSI disk
[    1.902872] EXT4-fs (sdc): recovery complete
[    1.904183] EXT4-fs (sdc): mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered. Quota mode: none.
[    1.920453] Adding 8388608k swap on /dev/sdb.  Priority:-2 extents:1 across:8388608k
[    2.035926] /sbin/ldconfig.real:
[    2.035928] /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

[    2.056277] hv_pci 09b45808-e4d9-44dc-987f-f153784d516e: PCI VMBus probing: Using version 0x10004
[    2.057609] hv_pci 09b45808-e4d9-44dc-987f-f153784d516e: PCI host bridge to bus e4d9:00
[    2.059524] pci_bus e4d9:00: root bus resource [mem 0xc00008000-0xc0000afff window]
[    2.059979] pci_bus e4d9:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.062163] pci e4d9:00:00.0: [1af4:1049] type 00 class 0x010000
[    2.064583] pci e4d9:00:00.0: reg 0x10: [mem 0xc00008000-0xc00008fff 64bit]
[    2.065311] pci e4d9:00:00.0: reg 0x18: [mem 0xc00009000-0xc00009fff 64bit]
[    2.066000] pci e4d9:00:00.0: reg 0x20: [mem 0xc0000a000-0xc0000afff 64bit]
[    2.068668] pci_bus e4d9:00: busn_res: [bus 00-ff] end is updated to 00
[    2.068972] pci e4d9:00:00.0: BAR 0: assigned [mem 0xc00008000-0xc00008fff 64bit]
[    2.069613] pci e4d9:00:00.0: BAR 2: assigned [mem 0xc00009000-0xc00009fff 64bit]
[    2.070309] pci e4d9:00:00.0: BAR 4: assigned [mem 0xc0000a000-0xc0000afff 64bit]
[   49.223668] hv_balloon: Max. dynamic memory size: 32728 MB
@plombardi89
Copy link
Author

plombardi89 commented Dec 12, 2022

Ah it appears you need to run Ubuntu 22.04 to use the WSL/systemd integration... I don't recall seeing the Ubuntu version requirement mentioned in the docs or the introduction blog post for this feature: https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/ . I was able to get systemd working once I launched a 22.04 VM.

Is this feature supposed to work seamlessly in older Ubuntu releases that are still in the Microsoft Store or just 22.04+?

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 12, 2022

@plombardi89: systemd should be supported in older distros as well, as long as you're using Store WSL

If you're still seeing the issue with older distributions, please share /logs

@ghost
Copy link

ghost commented Dec 12, 2022

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!

@ghost
Copy link

ghost commented Dec 20, 2022

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

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

No branches or pull requests

2 participants