microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.4k stars 819 forks source link

Run /init as init process WSL shutdown #5481

Closed startergo closed 4 years ago

startergo commented 4 years ago

Built Linux kernel with the attached config file. Upon starting of the WSL machine it shuts down. Windows version

OS Name:                   Microsoft Windows 10 Pro Insider Preview
OS Version:                10.0.20152 N/A Build 20152

Debug message:

[    0.000000] Linux version 4.19.121-microsoft-standard (root@HOME) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #4 SMP Wed Jun 24 17:55:07 EDT 2020
[    0.000000] Command line: initrd=\initrd.img panic=-1 nr_cpus=8 swiotlb=force  pty.legacy_count=0 console=ttyS0,115200 debug
[    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 'standard' format.
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000e0fff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000001fffff] ACPI data
[    0.000000] BIOS-e820: [mem 0x0000000000200000-0x00000000f7ffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x0000000338dfffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] DMI not present or invalid.
[    0.000000] Hypervisor detected: Microsoft Hyper-V
[    0.000000] Hyper-V: features 0x2e7f, hints 0x26c2c, misc 0x60bed7b2
[    0.000000] Hyper-V Host Build:20150-10.0-1-0.1000
[    0.000000] Hyper-V: LAPIC Timer Frequency: 0x1e8480
[    0.000000] tsc: Marking TSC unstable due to running on Hyper-V
[    0.000000] Hyper-V: Using hypercall for remote TLB flush
[    0.000000] tsc: Detected 3403.347 MHz processor
[    0.000007] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000008] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000011] last_pfn = 0x338e00 max_arch_pfn = 0x400000000
[    0.000031] MTRR default type: uncachable
[    0.000032] MTRR fixed ranges disabled:
[    0.000033]   00000-FFFFF uncachable
[    0.000034] MTRR variable ranges disabled:
[    0.000034]   0 disabled
[    0.000035]   1 disabled
[    0.000035]   2 disabled
[    0.000036]   3 disabled
[    0.000036]   4 disabled
[    0.000037]   5 disabled
[    0.000037]   6 disabled
[    0.000038]   7 disabled
[    0.000038] Disabled
[    0.000039] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[    0.000045] CPU MTRRs all blank - virtualized system.
[    0.000047] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC
[    0.000048] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[    0.000065] BRK [0x297e00000, 0x297e00fff] PGTABLE
[    0.000066] BRK [0x297e01000, 0x297e01fff] PGTABLE
[    0.000067] BRK [0x297e02000, 0x297e02fff] PGTABLE
[    0.000083] BRK [0x297e03000, 0x297e03fff] PGTABLE
[    0.000084] BRK [0x297e04000, 0x297e04fff] PGTABLE
[    0.000111] BRK [0x297e05000, 0x297e05fff] PGTABLE
[    0.000119] BRK [0x297e06000, 0x297e06fff] PGTABLE
[    0.000127] BRK [0x297e07000, 0x297e07fff] PGTABLE
[    0.000446] RAMDISK: [mem 0x030ab000-0x030bafff]
[    0.000450] ACPI: Early table checksum verification disabled
[    0.000462] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[    0.000464] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000468] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000472] ACPI: DSDT 0x00000000001011B8 01E184 (v02 MSFTVM DSDT01   00000001 MSFT 05000000)
[    0.000475] ACPI: FACS 0x0000000000101114 000040
[    0.000477] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000479] ACPI: SRAT 0x000000000011F33C 000330 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000481] ACPI: APIC 0x000000000011F66C 000088 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000485] ACPI: Local APIC address 0xfee00000
[    0.000703] Zone ranges:
[    0.000705]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000706]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000707]   Normal   [mem 0x0000000100000000-0x0000000338dfffff]
[    0.000708] Movable zone start for each node
[    0.000709] Early memory node ranges
[    0.000709]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.000710]   node   0: [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000711]   node   0: [mem 0x0000000100000000-0x0000000338dfffff]
[    0.001446] Zeroed struct page in unavailable ranges: 29537 pages
[    0.001447] Initmem setup node 0 [mem 0x0000000000001000-0x0000000338dfffff]
[    0.001449] On node 0 totalpages: 3345567
[    0.001450]   DMA zone: 59 pages used for memmap
[    0.001450]   DMA zone: 22 pages reserved
[    0.001451]   DMA zone: 3743 pages, LIFO batch:0
[    0.001508]   DMA32 zone: 16320 pages used for memmap
[    0.001509]   DMA32 zone: 1011712 pages, LIFO batch:63
[    0.021606]   Normal zone: 36408 pages used for memmap
[    0.021609]   Normal zone: 2330112 pages, LIFO batch:63
[    0.022333] ACPI: Local APIC address 0xfee00000
[    0.022339] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[    0.022678] IOAPIC[0]: apic_id 8, version 17, address 0xfec00000, GSI 0-23
[    0.022682] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.022684] ACPI: IRQ9 used by override.
[    0.022685] Using ACPI (MADT) for SMP configuration information
[    0.022691] smpboot: Allowing 8 CPUs, 0 hotplug CPUs
[    0.022699] [mem 0xf8000000-0xffffffff] available for PCI devices
[    0.022700] Booting paravirtualized kernel on bare hardware
[    0.022702] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.133321] random: get_random_bytes called from start_kernel+0x91/0x4c3 with crng_init=0
[    0.133327] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:8 nr_node_ids:1
[    0.134143] percpu: Embedded 42 pages/cpu s133912 r8192 d29928 u262144
[    0.134148] pcpu-alloc: s133912 r8192 d29928 u262144 alloc=1*2097152
[    0.134149] pcpu-alloc: [0] 0 1 2 3 4 5 6 7
[    0.134160] Built 1 zonelists, mobility grouping on.  Total pages: 3292758
[    0.134161] Kernel command line: initrd=\initrd.img panic=-1 nr_cpus=8 swiotlb=force  pty.legacy_count=0 console=ttyS0,115200 debug
[    0.139375] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
[    0.143383] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[    0.173705] Memory: 4127172K/13382268K available (14360K kernel code, 1580K rwdata, 2860K rodata, 1596K init, 2648K bss, 333876K reserved, 0K cma-reserved)
[    0.174563] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.174571] Kernel/User page tables isolation: enabled
[    0.174619] ftrace: allocating 41887 entries in 164 pages
[    0.188939] rcu: Hierarchical RCU implementation.
[    0.188942] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=8.
[    0.188943]  All grace periods are expedited (rcu_expedited).
[    0.188944] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[    0.190816] Using NULL legacy PIC
[    0.190818] NR_IRQS: 16640, nr_irqs: 488, preallocated irqs: 0
[    0.191191] Console: colour dummy device 80x25
[    0.577074] console [ttyS0] enabled
[    0.579845] ACPI: Core revision 20180810
[    0.583057] Failed to register legacy timer interrupt
[    0.586216] APIC: Switch to symmetric I/O mode setup
[    0.588819] Hyper-V: Using IPI hypercalls
[    0.591310] Hyper-V: Using MSR based APIC access
[    0.593837] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.600272] Calibrating delay loop (skipped), value calculated using timer frequency.. 6806.69 BogoMIPS (lpj=34033470)
[    0.605885] pid_max: default: 32768 minimum: 301
[    0.608871] Security Framework initialized
[    0.610262] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.610262] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.610262] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 8
[    0.610262] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32, 1GB 0
[    0.610262] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.610262] Spectre V2 : Mitigation: Full generic retpoline
[    0.610262] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.610262] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.610262] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[    0.610262] Spectre V2 : User space: Mitigation: STIBP via seccomp and prctl
[    0.610262] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[    0.610262] MDS: Vulnerable: Clear CPU buffers attempted, no microcode
[    0.610262] Freeing SMP alternatives memory: 40K
[    0.610262] smpboot: CPU0: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (family: 0x6, model: 0x3a, stepping: 0x9)
[    0.610262] Performance Events: unsupported p6 CPU model 58 no PMU driver, software events only.
[    0.610322] rcu: Hierarchical SRCU implementation.
[    0.612907] random: crng done (trusting CPU's manufacturer)
[    0.615909] smp: Bringing up secondary CPUs ...
[    0.618479] x86: Booting SMP configuration:
[    0.620267] .... node  #0, CPUs:      #1
[    0.621256] MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details.
[    0.630351]  #2 #3 #4 #5 #6 #7
[    0.631292] smp: Brought up 1 node, 8 CPUs
[    0.642537] smpboot: Max logical packages: 1
[    0.644943] smpboot: Total of 8 processors activated (54453.55 BogoMIPS)
[    0.710273] node 0 initialised, 2230305 pages in 60ms
[    0.713148] devtmpfs: initialized
[    0.720446] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.725775] futex hash table entries: 2048 (order: 5, 131072 bytes)
[    0.730512] xor: automatically using best checksumming function   avx
[    0.734402] NET: Registered protocol family 16
[    0.737657] ACPI: bus type PCI registered
[    0.740283] PCI: Fatal: No config space access function found
[    0.743658] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.750302] raid6: Forced to use recovery algorithm intx1
[    0.753201] raid6: Forced gen() algo avx2x4
[    0.753201] ACPI: Added _OSI(Module Device)
[    0.753365] ACPI: Added _OSI(Processor Device)
[    0.760265] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.760276] ACPI: Added _OSI(Processor Aggregator Device)
[    0.760276] ACPI: Added _OSI(Linux-Dell-Video)
[    0.762967] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.772648] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.780567] ACPI: Interpreter enabled
[    0.782513] ACPI: (supports S0 S5)
[    0.784770] ACPI: Using IOAPIC for interrupt routing
[    0.784770] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.786052] ACPI: Enabled 1 GPEs in block 00 to 0F
[    0.791302] SCSI subsystem initialized
[    0.800397] hv_vmbus: Vmbus version:5.0
[    0.803793] PCI: Using ACPI for IRQ routing
[    0.806612] PCI: System does not support PCI
[    0.810752] hv_vmbus: Unknown GUID: c376c1c3-d276-48d2-90a9-c04748072c60
[    0.814702] hv_vmbus: Unknown GUID: 6e382d18-3336-4f4b-acc4-2b7703d4df4a
[    0.818495] hv_vmbus: Unknown GUID: dde9cbc0-5060-4436-9448-ea1254a5d177
[    0.819611] clocksource: Switched to clocksource hyperv_clocksource_tsc_page
[    0.845804] VFS: Disk quotas dquot_6.6.0
[    0.848909] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.852941] FS-Cache: Loaded
[    0.855122] pnp: PnP ACPI init
[    0.857649] pnp 00:00: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.861652] pnp 00:01: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.865215] pnp 00:02: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.868600] pnp: PnP ACPI: found 3 devices
[    0.876210] NET: Registered protocol family 2
[    0.879461] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes)
[    0.885390] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.891383] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.895701] TCP: Hash tables configured (established 131072 bind 65536)
[    0.899874] UDP hash table entries: 8192 (order: 6, 262144 bytes)
[    0.905244] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes)
[    0.909826] NET: Registered protocol family 1
[    0.913372] RPC: Registered named UNIX socket transport module.
[    0.917752] RPC: Registered udp transport module.
[    0.921611] RPC: Registered tcp transport module.
[    0.925073] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.929610] PCI: CLS 0 bytes, default 64
[    0.932607] Trying to unpack rootfs image as initramfs...
[    0.936975] Freeing initrd memory: 64K
[    0.939730] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.943609] software IO TLB: mapped [mem 0xf4000000-0xf8000000] (64MB)
[    0.947089] KVM: vmx: using Hyper-V Enlightened VMCS
[    1.039824] Initialise system trusted keyrings
[    1.043430] workingset: timestamp_bits=46 max_order=22 bucket_order=0
[    1.049910] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.054692] NFS: Registering the id_resolver key type
[    1.057709] Key type id_resolver registered
[    1.059946] Key type id_legacy registered
[    1.062123] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.066775] Key type cifs.idmap registered
[    1.069291] fuse init (API version 7.27)
[    1.072021] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    1.077349] 9p: Installing v9fs 9p2000 file system support
[    1.080185] FS-Cache: Netfs '9p' registered for caching
[    1.083534] FS-Cache: Netfs 'ceph' registered for caching
[    1.086770] ceph: loaded (mds proto 32)
[    1.092372] NET: Registered protocol family 38
[    1.094936] Key type asymmetric registered
[    1.097089] Asymmetric key parser 'x509' registered
[    1.099759] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.104217] io scheduler noop registered (default)
[    1.107510] hv_vmbus: registering driver hv_pci
[    1.110424] hv_pci 5ec14e38-6e29-404e-9626-736bbb54a9a2: PCI VMBus probing: Using version 0x10002
[    1.116160] hv_pci 5ec14e38-6e29-404e-9626-736bbb54a9a2: PCI host bridge to bus 9626:00
[    1.121409] pci 9626:00:00.0: [1414:008e] type 00 class 0x030200
[    1.130639] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.160464] 00:00: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.191177] 00:01: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    1.197187] Non-volatile memory driver v1.3
[    1.199926] AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[    1.203574] AMD IOMMUv2 functionality not available on this system
[    1.207046] dxgk:err: dxg_drv_init  Version: 1
[    1.207054] hv_vmbus: registering driver dxgkrnl
[    1.214396] brd: module loaded
[    1.217226] loop: module loaded
[    1.219024] hv_vmbus: registering driver hv_storvsc
[    1.221907] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    1.226030] tun: Universal TUN/TAP device driver, 1.6
[    1.227631] scsi host0: storvsc_host_t
[    1.229512] PPP generic driver version 2.4.2
[    1.235391] PPP BSD Compression module registered
[    1.238990] PPP Deflate Compression module registered
[    1.242139] PPP MPPE Compression module registered
[    1.244722] NET: Registered protocol family 24
[    1.247065] hv_vmbus: registering driver hv_netvsc
[    1.260041] hv_vmbus: registering driver uio_hv_generic
[    1.262857] VFIO - User Level meta-driver version: 0.3
[    1.266201] hv_vmbus: registering driver hyperv_keyboard
[    1.269371] rtc_cmos 00:02: RTC can wake from S4
[    1.294990] rtc_cmos 00:02: registered as rtc0
[    1.297569] rtc_cmos 00:02: alarms up to one month, 114 bytes nvram
[    1.300993] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[    1.307478] NET: Registered protocol family 40
[    1.309878] hv_utils: Registering HyperV Utility Driver
[    1.314102] hv_vmbus: registering driver hv_util
[    1.317928] hv_vmbus: registering driver hv_balloon
[    1.317948] hv_utils: cannot register PTP clock: 0
[    1.322123] drop_monitor: Initializing network drop monitor service
[    1.325336] hv_balloon: Using Dynamic Memory protocol version 2.0
[    1.329155] Mirror/redirect action on
[    1.329835] hv_utils: TimeSync IC version 4.0
[    1.339729] hv_balloon: cold memory discard enabled
[    1.339843] IPVS: Registered protocols (TCP, UDP)
[    1.346710] IPVS: Connection hash table configured (size=4096, memory=64Kbytes)
[    1.352540] IPVS: ipvs loaded.
[    1.354787] IPVS: [rr] scheduler registered.
[    1.357529] IPVS: [wrr] scheduler registered.
[    1.360291] IPVS: [sh] scheduler registered.
[    1.364456] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[    1.368513] Initializing XFRM netlink socket
[    1.371916] NET: Registered protocol family 10
[    1.375958] Segment Routing with IPv6
[    1.379777] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.383029] NET: Registered protocol family 17
[    1.385521] Bridge firewalling registered
[    1.387931] 8021q: 802.1Q VLAN Support v1.8
[    1.390219] sctp: Hash tables configured (bind 256/256)
[    1.393054] 9pnet: Installing 9P2000 support
[    1.395528] Key type dns_resolver registered
[    1.397954] Key type ceph registered
[    1.400207] libceph: loaded (mon/osd proto 15/24)
[    1.403883] hv_vmbus: registering driver hv_sock
[    1.406695] hv_vmbus: unregistering driver hv_sock
[    1.409501] registered taskstats version 1
[    1.411695] Loading compiled-in X.509 certificates
[    1.415294] Btrfs loaded, crc32c=crc32c-generic
[    1.418339] rtc_cmos 00:02: setting system clock to 2020-06-24 22:08:02 UTC (1593036482)
[    1.423057] Unstable clock detected, switching default tracing clock to "global"
[    1.423057] If you want to keep using the local clock, then add:
[    1.423057]   "trace_clock=local"
[    1.423057] on the kernel command line
[    1.436515] Freeing unused kernel image memory: 1596K
[    1.490399] Write protecting the kernel read-only data: 20480k
[    1.494702] Freeing unused kernel image memory: 1984K
[    1.498994] Freeing unused kernel image memory: 1236K
[    1.503149] Run /init as init process
<3>ERROR: ConnectHvSocket:670: connect failed 19[    1.507302] kvm: exiting hardware virtualization

[    1.511908] ACPI: Preparing to enter system sleep state S5
[    1.515006] reboot: Power down
[    1.524100] acpi_power_off called
WSL has terminated, press any key to continue...

confignew.txt

startergo commented 4 years ago

Built the Kernel again with the default config-wsl:

sudo cp Microsoft/config-wsl .config
sudo make -j$((`nproc`+1)) --trace

Answered the following automatic questions:

Processor type and features
*
DMA memory allocation support (ZONE_DMA) [Y/n/?] y
Symmetric multi-processing support (SMP) [Y/n/?] y
Processor feature human-readable names (X86_FEATURE_NAMES) [Y/?] y
Support x2apic (X86_X2APIC) [Y/n/?] y
Enable MPS table (X86_MPPARSE) [N/y/?] n
Avoid speculative indirect branches in kernel (RETPOLINE) [Y/n/?] y
Intel Resource Director Technology support (INTEL_RDT) [N/y/?] n
Support for extended (non-PC) x86 platforms (X86_EXTENDED_PLATFORM) [N/y/?] n
Intel Low Power Subsystem Support (X86_INTEL_LPSS) [N/y/?] n
AMD ACPI2Platform devices support (X86_AMD_PLATFORM_DEVICE) [N/y/?] n
Intel SoC IOSF Sideband support for SoC platforms (IOSF_MBI) [N/m/y/?] n
Single-depth WCHAN output (SCHED_OMIT_FRAME_POINTER) [N/y/?] n
Processor family
  1. Opteron/Athlon64/Hammer/K8 (MK8)
  2. Intel P4 / older Netburst based Xeon (MPSC)
> 3. Core 2/newer Xeon (MCORE2)
  4. Intel Atom (MATOM)
  5. Generic-x86-64 (GENERIC_CPU)
choice[1-5?]: 3
Enable DMI scanning (DMI) [Y/n/?] y
Old AMD GART IOMMU support (GART_IOMMU) [N/y/?] n
IBM Calgary IOMMU support (CALGARY_IOMMU) [N/y/?] n
Maximum number of CPUs (NR_CPUS) [256] 256
Multi-core scheduler support (SCHED_MC) [Y/n/?] y
  CPU core priorities scheduler support (SCHED_MC_PRIO) [N/y/?] n
Reroute for broken boot IRQs (X86_REROUTE_FOR_BROKEN_BOOT_IRQS) [N/y/?] n
Machine Check / overheating reporting (X86_MCE) [N/y/?] n
Enable support for 16-bit segments (X86_16BIT) [Y/n/?] y
Enable vsyscall emulation (X86_VSYSCALL_EMULATION) [Y/n/?] y
Dell i8k legacy laptop support (I8K) [N/m/y/?] n
CPU microcode loading support (MICROCODE) [N/y/?] n
/dev/cpu/*/msr - Model-specific register support (X86_MSR) [N/m/y/?] n
/dev/cpu/*/cpuid - CPU information support (X86_CPUID) [N/m/y/?] n
Enable 5-level page tables support (X86_5LEVEL) [N/y/?] n
AMD Secure Memory Encryption (SME) support (AMD_MEM_ENCRYPT) [N/y/?] n
Numa Memory Allocation and Scheduler Support (NUMA) [N/y/?] n
Support non-standard NVDIMMs and ADR protected memory (X86_PMEM_LEGACY) [Y/n/m/?] y
Check for low memory corruption (X86_CHECK_BIOS_CORRUPTION) [N/y/?] n
Amount of low memory, in kilobytes, to reserve for the BIOS (X86_RESERVE_LOW) [64] 64
MTRR (Memory Type Range Register) support (MTRR) [Y/n/?] y
  MTRR cleanup support (MTRR_SANITIZER) [N/y/?] n
  x86 PAT support (X86_PAT) [Y/n/?] y
x86 architectural random number generator (ARCH_RANDOM) [Y/n/?] y
Supervisor Mode Access Prevention (X86_SMAP) [Y/n/?] y
Intel User Mode Instruction Prevention (X86_INTEL_UMIP) [Y/n/?] y
Intel MPX (Memory Protection Extensions) (X86_INTEL_MPX) [Y/n/?] y
Intel Memory Protection Keys (X86_INTEL_MEMORY_PROTECTION_KEYS) [Y/n/?] y
TSX enable mode
> 1. off (X86_INTEL_TSX_MODE_OFF) (NEW)
  2. on (X86_INTEL_TSX_MODE_ON) (NEW)
  3. auto (X86_INTEL_TSX_MODE_AUTO) (NEW)
choice[1-3?]: 2
built-in kernel command line (CMDLINE_BOOL) [N/y/?] n
Enable the LDT (local descriptor table) (MODIFY_LDT_SYSCALL) [Y/n/?] y
*
* Graphics support
*
VGA Arbitration (VGA_ARB) [N/y/?] n
Laptop Hybrid Graphics - GPU switching support (VGA_SWITCHEROO) [N/y/?] n
Enable DisplayPort CEC-Tunneling-over-AUX HDMI support (DRM_DP_CEC) [N/y/?] n
Microsoft virtual GPU support (DXGKRNL) [N/m/y/?] (NEW) yes

The WSL starts but without the network shares:

9pnet: Could not find request transport: virtio
[    2.196853] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/a (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=A:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    2.196855] ) failed: 22
[    2.207170] 9pnet: Could not find request transport: virtio
[    2.210124] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/b (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=B:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    2.210126] ) failed: 22
[    2.223327] 9pnet: Could not find request transport: virtio
[    2.227766] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/c (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=C:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    2.227768] ) failed: 22
[    2.241270] 9pnet: Could not find request transport: virtio
[    2.244414] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/f (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=F:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    2.244415] ) failed: 22
[    2.254537] 9pnet: Could not find request transport: virtio
[    2.257515] init: (1) ERROR: MountPlan9WithRetry:282: mount drvfs on /mnt/g (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=G:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    2.257517] ) failed: 22
[    2.267962] 9pnet: Could not find request transport: virtio
[    2.271002] 9pnet: Could not find request transport: virtio
[    2.274411] 9pnet: Could not find request transport: virtio
[    2.277372] 9pnet: Could not find request transport: virtio
[    2.280392] 9pnet: Could not find request transport: virtio
[    2.283564] 9pnet: Could not find request transport: virtio
[    2.287905] 9pnet: Could not find request transport: virtio
[    2.290887] 9pnet: Could not find request transport: virtio
[    2.294247] 9pnet: Could not find request transport: virtio

Windows no longer automatically updates the kernel in :

c:\windows\system32\lxss\tools\kernel

If the kernel is manually deleted.

0xbadfca11 commented 4 years ago

Use zcat /proc/config.gz > .config instead of Microsoft/config-wsl. Apparently Microsoft/config-wsl doesn't seem to be updated.

startergo commented 4 years ago

Use zcat /proc/config.gz > .config instead of Microsoft/config-wsl. Apparently Microsoft/config-wsl doesn't seem to be updated.

I had a config file extracted from the Microsoft original 121 distro using zcat and compiled the latest linux branch from Linus's repo:

git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/

Now everything works again with the exception of the audio. I was never able to get the audio to work. I was able to customize the kernel further using that git branch. Here it is attached. config.txt