Follow the Custom Linux/x86 Kernel Configuration for compile the Linux kernel source >= v6.3-rc4
getting this errors:
wsl -d Ubuntu
Output:
Catastrophic failure
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/E_UNEXPECTED
Catastrophic failure
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/E_UNEXPECTED
Catastrophic failure
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/E_UNEXPECTED
Press any key to continue...
Event Viewer
Source: Hyper-V-VmSwitch
- RSC offload modified for Port 377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: 377E95BE-D04D-452F-8160-1858A3ABC40F)
Previous: Disabled, Current: Enabled. Reason: Port create
- Port 377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: 377E95BE-D04D-452F-8160-1858A3ABC40F)
successfully created on switch B95D0C5E-57D4-412B-B571-18A81A16E005 (Friendly Name: WSL).
- RSC offload modified for NIC F48E5B80-A04B-4792-BFF0-E5D3AB03F86A--377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: )
Previous IPv4: Disabled, Current IPv4: Disabled, Previous IPv6: Disabled, Current IPv6: Disabled. Reason: NIC create
- The operation 'Create' succeeded on nic F48E5B80-A04B-4792-BFF0-E5D3AB03F86A--377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: ),
Instance Id {00000000-0000-0000-0000-000000000000}.
- NIC F48E5B80-A04B-4792-BFF0-E5D3AB03F86A--377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: )
successfully connected to port 377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: 377E95BE-D04D-452F-8160-1858A3ABC40F)
on switch B95D0C5E-57D4-412B-B571-18A81A16E005(Friendly Name: WSL).
- Networking driver in F48E5B80-A04B-4792-BFF0-E5D3AB03F86A is loaded and the protocol version is negotiated to the most
recent version (Virtual machine ID F48E5B80-A04B-4792-BFF0-E5D3AB03F86A).
- NIC F48E5B80-A04B-4792-BFF0-E5D3AB03F86A--377E95BE-D04D-452F-8160-1858A3ABC40F successfully disconnected from port .
RSC offload modified for NIC F48E5B80-A04B-4792-BFF0-E5D3AB03F86A--377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: )
Previous IPv4: Disabled, Current IPv4: Enabled, Previous IPv6: Disabled, Current IPv6: Enabled. Reason: RSC OID
- NIC F48E5B80-A04B-4792-BFF0-E5D3AB03F86A--377E95BE-D04D-452F-8160-1858A3ABC40F successfully disconnected from port .
- The operation 'Delete' succeeded on nic F48E5B80-A04B-4792-BFF0-E5D3AB03F86A--377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: ),
Instance Id {00000000-0000-0000-0000-000000000000}.
- Port 377E95BE-D04D-452F-8160-1858A3ABC40F (Friendly Name: 377E95BE-D04D-452F-8160-1858A3ABC40F)
successfully deleted - switch B95D0C5E-57D4-412B-B571-18A81A16E005 (Friendly Name: WSL).
...
➜ cd linux/sources/
➜ curl -LJO https://github.com/torvalds/linux/commit/0eee5ae1025699ea93d44fdb6ef2365505082103.patch
➜ git apply -R 0eee5ae1025699ea93d44fdb6ef2365505082103.patch
➜ uname -a
Linux Laptop 6.3.0-rc5-oleksis-microsoft-standard-WSL2+ #1 SMP Wed Apr 5 22:03:41 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
➜ wsl --version
Versión de WSL: 1.1.6.0
Versión de kernel: 5.15.90.1
Versión de WSLg: 1.0.50
Versión de MSRDC: 1.2.3770
Versión de Direct3D: 1.608.2-61064218
Versión DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Versión de Windows: 10.0.25330.1000