Software:Windows Subsystem for Linux

From HandWiki
Short description: Compatibility layer for running Linux binary executables natively on Windows
Windows Subsystem for Linux
Windows Subsystem for Linux logo.png
Ubuntu on Windows 10 - bash.png
Bash running on Windows 10
Other namesWSL
Developer(s)Microsoft
Initial releaseAugust 2, 2016; 7 years ago (2016-08-02)
Stable release
WSL 2 2.0.14 / December 1, 2023; 7 months ago (2023-12-01)[1]
Preview release
WSL 2 2.1.1 / January 22, 2024; 5 months ago (2024-01-22)[2]
Repositorygithub.com/microsoft/WSL2-Linux-Kernel
Operating systemWindows 10, Windows 10 LTSB/LTSC, Windows Server 2016, Windows Server 2019, Windows 11, Windows Server 2022
PredecessorWindows Services for UNIX
TypeCompatibility layer, Virtualization
LicenseSubsystem: Proprietary commercial software;
Linux kernel: GNU GPLv2 (only) with some code under compatible GPL variants or under permissive licenses like BSD, MIT
Websitelearn.microsoft.com/windows/wsl/about

Windows Subsystem for Linux (WSL) is a feature of Windows that allows developers to run a Linux environment without the need for a separate virtual machine or dual booting. There are two versions of WSL: WSL 1 and WSL 2. WSL 1 was first released on August 2, 2016, and acts as a compatibility layer for running Linux binary executables (in ELF format) by implementing Linux system calls on the Windows kernel.[3] It is available on Windows 10, Windows 10 LTSB/LTSC, Windows 11,[4] Windows Server 2016, Windows Server 2019 and Windows Server 2022.

In May 2019, WSL 2 was announced,[5] introducing important changes such as a real Linux kernel,[6] through a subset of Hyper-V features. WSL 2 differs from WSL 1 in that WSL 2 runs inside a managed virtual machine that implements the full Linux kernel. As a result, WSL 2 is compatible with more Linux binaries than WSL 1, as not all syscalls were implemented in WSL 1. Since June 2019, WSL 2 is available to Windows 10 customers through the Windows Insider program, including the Home edition.[7] WSL is not available to all Windows 10 users by default. It can be installed either by joining the Windows Insider program or manually via Microsoft Store or Winget.[8]

History

Microsoft's first foray into achieving Unix-like compatibility on Windows began with the Microsoft POSIX Subsystem, superseded by Windows Services for UNIX via MKS/Interix, which was eventually deprecated with the release of Windows 8.1. The technology behind Windows Subsystem for Linux originated in the unreleased Project Astoria, which enabled some Android applications to run on Windows 10 Mobile.[9] It was first made available in Windows 10 Insider Preview build 14316.[10]

Whereas Microsoft's previous projects and the third-party Cygwin had focused on creating their own unique Unix-like environments based on the POSIX standard, WSL aims for native Linux compatibility. Instead of wrapping non-native functionality into Win32 system calls as Cygwin did, WSL's initial design (WSL 1) leveraged the NT kernel executive to serve Linux programs as special, isolated minimal processes (known as "pico processes") attached to kernel mode "pico providers" as dedicated system call and exception handlers distinct from that of a vanilla NT process, opting to reutilize existing NT implementations wherever possible.[11]

WSL beta was introduced in Windows 10 version 1607 (Anniversary Update) on August 2, 2016. Only Ubuntu (with Bash as the default shell) was supported. WSL beta was also called "Bash on Ubuntu on Windows" or "Bash on Windows". WSL was no longer beta in Windows 10 version 1709 (Fall Creators Update), released on October 17, 2017. Multiple Linux distributions could be installed and were available for install in the Windows Store.[12]

In 2017 Richard Stallman expressed fears that integrating Linux functionality into Windows will only hinder the development of free software, calling efforts like WSL "a step backward in the campaign for freedom."[13]

Though WSL (via this initial design) was much faster and arguably much more popular than the previous UNIX-on-Windows projects, Windows kernel engineers found difficulty in trying to increase WSL's performance and syscall compatibility by trying to reshape the existing NT kernel to recognize and operate correctly on Linux's API. At a Microsoft Ignite conference in 2018, Microsoft engineers gave a high-level overview of a new "lightweight" Hyper-V VM technology for containerization where a virtualized kernel could make direct use of NT primitives on the host.[14] In 2019, Microsoft announced a completely redesigned WSL architecture (WSL 2) using this lightweight VM technology hosting actual (customized) Linux kernel images, claiming full syscall compatibility.[6] Microsoft announced WSL 2 on May 6, 2019,[5] and it was shipped with Windows 10 version 2004.[15] It was also backported to Windows 10 version 1903 and 1909.[16]

GPU support for WSL 2 to run GPU-accelerated machine learning was introduced in Windows build 20150.[17] GUI support for WSL 2 to run Linux applications with graphical user interfaces (GUIs) was introduced in Windows build 21364.[18] Both of them are shipped in Windows 11.

In April 2021, Microsoft released a Windows 10 test build that also includes the ability to run Linux graphical user interface (GUI) apps using WSL 2 and CBL-Mariner.[19][18] The Windows Subsystem for Linux GUI (WSLg) was officially released at the Microsoft Build 2021 conference. It is included in Windows 10 Insider build 21364 or later.[20]

Microsoft introduced a Windows Store version of WSL on October 11, 2021, for Windows 11.[21] It reached version 1.0.0 on November 16, 2022 with added support for Windows 10.

Notable releases

WSL as a Windows component
Release / Feature Preview build Public build
WSL (Beta) (Bash on Ubuntu on Windows) Windows 10 build 14316 Windows 10 version 1607 (Anniversary Update)
WSL (no longer Beta) Windows 10 build 16251 Windows 10 version 1709 (Fall Creators Update)
WSL 2 (lightweight VM) Windows 10 build 18917 Windows 10 version 2004 (also backported to 1903 and 1909)
WSL 2 GPU support Windows 10 build 20150 Windows 11 (also Windows 10 21H2)
WSL 2 GUI support (WSLg) (last version) Windows 10 build 21364 Windows 11
WSL as a Windows Store app
Version Comment
0.47.1 First version
0.67.6 systemd support
1.0.0 Generally available; Windows 10 support

Features

Bash running on Windows 10

WSL is available in Windows Server 2019 and in versions of Windows 10 from version 1607, though only in 64-bit versions.

Microsoft envisages WSL as "primarily a tool for developers – especially web developers and those who work on or with open source projects".[22] In September 2018, Microsoft said that "WSL requires fewer resources (CPU, memory, and storage) than a full virtual machine" (which prior to WSL was the most direct way to run Linux software in a Windows environment), while also allowing users to use Windows apps and Linux tools on the same set of files.[22]

The first release of WSL provides a Linux-compatible kernel interface developed by Microsoft, containing no Linux kernel code, which can then run the user space of a Linux distribution on top of it, such as Ubuntu,[23][24][25][26] openSUSE,[27] SUSE Linux Enterprise Server,[28][29][12] Debian[30] and Kali Linux.[31] Such a user space might contain a GNU Bash shell and command language, with native GNU command-line tools (sed, awk, etc.), programming-language interpreters (Ruby, Python, etc.), and even graphical applications (using an X11 server at the host side).[22]

The architecture was redesigned in WSL 2,[5] with a Linux kernel running in a lightweight virtual machine environment.

wsl.exe

The wsl.exe command is used to manage distributions in the Windows Subsystem for Linux on the command-line. It can list available distributions, set a default distribution, and uninstall distributions.[32] The command can also be used to run Linux binaries from the Windows Command Prompt or Windows PowerShell.[33] wsl.exe replaces lxrun.exe which is deprecated as of Windows 10 1803 and later.[34]

WSLg

Windows Subsystem for Linux GUI (WSLg) is built with the purpose of enabling support for running Linux GUI applications (X11 and Wayland) on Windows in a fully integrated desktop experience.[35] WSLg was officially released at the Microsoft Build 2021 conference and is included in Windows 10 Insider build 21364 or later.[20] However, with the introduction of Windows 11, WSLg is finally shipping with a production build of Windows, bringing support for both graphics and audio in WSL apps.[36] FreeRDP is used to encode all communications going from the RDP Server (in Weston) to the RDP Client (mstsc on Windows) according to the RDP protocol specifications.[37]

Prerequisites for running WSLg include:

  • Windows 11 or Windows 10 Insider Preview builds 21362-21390.[35][38]
  • A system with virtual GPU (vGPU) enabled for WSL is recommended, as it will allow you to benefit from hardware accelerated OpenGL rendering.[35]

Design

WSL 1

thumb|Firefox for Linux running on WSL

LXSS Manager Service is the service in charge of interacting with the subsystem (through the drivers lxss.sys and lxcore.sys), and the way that Bash.exe (not to be confused with the Shells provided by the Linux distributions) launches the Linux processes, as well as handling the Linux system calls and the binary locks during their execution.[39] All Linux processes invoked by a particular user go into a "Linux Instance" (usually, the first invoked process is init). Once all the applications are closed, the instance is closed.

WSL 1's design featured no hardware emulation / virtualization (unlike other projects such as coLinux) and makes direct use of the host file system (through VolFS and DrvFS)[40] and some parts of the hardware, such as the network, which guarantees interoperability. Web servers for example, can be accessed through the same interfaces and IP addresses configured on the host, and shares the same restrictions on the use of ports that require administrative permissions, or ports already occupied by other applications.[41] There are certain locations (such as system folders) and configurations whose access/modification is restricted, even when running as root, with sudo from the shell. An instance with elevated privileges must be launched in order to get "sudo" to give real root privileges, and allow such access.[22]

WSL 1 is not capable of running all Linux software, such as 32-bit binaries,[42][43] or those that require specific Linux kernel services not implemented in WSL. Due to a lack of any "real" Linux kernel in WSL 1, kernel modules, such as device drivers, cannot be run. WSL 2, however, makes use of live virtualized Linux kernel instances. It is possible to run some graphical (GUI) applications (such as Mozilla Firefox) by installing an X11 server within the Windows (host) environment (such as VcXsrv or Xming),[44] although not without caveats, such as the lack of audio support (though this can be remedied by installing PulseAudio in Windows in a similar manner to X11) or hardware acceleration (resulting in poor graphics performance). Support for OpenCL and CUDA is also not being implemented currently, although planned for future releases.[45][46] Microsoft stated WSL was designed for the development of applications, and not for desktop computers or production servers, recommending the use of virtual machines (Hyper-V), Kubernetes, and Azure for those purposes.[22]

In benchmarks WSL 1's performance is often near native Linux Ubuntu, Debian, Intel Clear Linux or other Linux distributions. I/O is in some tests a bottleneck for WSL.[47][48][49] The redesigned WSL 2 backend is claimed by Microsoft to offer twenty-fold increases in speed on certain operations compared to that of WSL 1.[6] In June 2020, a benchmark with 173 tests with an AMD Threadripper 3970x shows good performance with WSL 2 (20H2) with 87% of the performance of native Ubuntu 20.04.0 LTS. This is an improvement over WSL 1, which has only 70% of the performance of native Ubuntu in this comparison. WSL 2 improves I/O performance, providing a near-native level.[50] A comparison of 69 tests with Intel i9 10900K in May 2020 shows nearly the same relative performance.[51] In December 2020, a benchmark with 43 tests with an AMD Ryzen 5900X shows good performance with WSL 2 (20H2) with 93% of the performance of native 20.04.1 LTS. This is an improvement over WSL 1, which has only 73% in this comparison.[52]

WSL 2

thumb|Synaptic package manager running on WSL

Version 2 introduces changes in the architecture. Microsoft has opted for virtualization through a highly optimized subset of Hyper-V features, in order to run the kernel and distributions (based upon the kernel), promising performance equivalent to WSL 1. For backward compatibility, developers don't need to change anything in their published distributions. WSL 2 settings can be tweaked by the WSL global configuration, contained in an INI file named .wslconfig in the User Profile folder.[53][54]

The distribution installation resides inside an ext4-formatted filesystem inside a virtual disk, and the host file system is transparently accessible through the 9P protocol,[55] similarly to other virtual machine technologies like QEMU.[56] For the users, Microsoft promised up to 20 times the read/write performance of WSL 1.[5] From Windows an IFS network redirector is provided for Linux guest file access using the UNC path prefix of \\wsl$.

WSL 2 requires Windows 11,[57] or Windows 10 version 1903 or higher, with Build 18362 or higher, for x64 systems, and Version 2004 or higher, with Build 19041 or higher, for ARM64 systems.[8]

WSL 2 on Windows 11 retains 95% of the performance of native Ubuntu 20.04 LTS.[58]

Unlike WSL 2, WSL 1 does not support IPv6 connections.[59][60] IPv6 support in WSL 2 requires Windows 11 or newer.[61]

See also

References

  1. "Release 2.0.14 · microsoft/WSL" (in en). https://github.com/microsoft/WSL/releases/tag/2.0.14. 
  2. "Release 2.1.1 · microsoft/WSL" (in en). https://github.com/microsoft/WSL/releases/tag/2.1.1. 
  3. Leeks, Stuart (2020). Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques: Maximise Productivity of Your Windows 10 Development Machine with Custom Workflows and Configurations. Birmingham: Packt Publishing. pp. 18–19. ISBN 978-1-80056-352-0. OCLC 1202451000. https://www.worldcat.org/oclc/1202451000. 
  4. June 2021, Darren Allan 23 (23 June 2021). "Windows 11 could seamlessly run graphical Linux apps" (in en). https://www.techradar.com/news/windows-11-could-seamlessly-run-graphical-linux-apps. 
  5. 5.0 5.1 5.2 5.3 Craig Loewen (2019-05-06). "Announcing WSL 2". https://devblogs.microsoft.com/commandline/announcing-wsl-2/. 
  6. 6.0 6.1 6.2 mscraigloewen. "About WSL 2". https://docs.microsoft.com/en-us/windows/wsl/wsl2-about. 
  7. "WSL 2 Post BUILD FAQ". 2019-05-14. https://devblogs.microsoft.com/commandline/wsl-2-post-build-faq/. 
  8. 8.0 8.1 pokhrel, bishal (2023-12-27). "Install WSL on Windows 10 or 11" (in en-us). https://droidcrafts.com/how-to-enable-wsl-and-install-linux-on-windows/. 
  9. Bright, Peter (6 April 2016). "Why Microsoft needed to make Windows run Linux software". Condé Nast. https://arstechnica.com/information-technology/2016/04/why-microsoft-needed-to-make-windows-run-linux-software/. 
  10. Aul, Gabe (6 April 2016). "Announcing Windows 10 Insider Preview Build 14316". Microsoft. https://blogs.windows.com/windowsexperience/2016/04/06/announcing-windows-10-insider-preview-build-14316/. 
  11. "Windows Subsystem for Linux Overview" (in en-US). Windows Subsystem for Linux. https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subsystem-for-linux-overview/. 
  12. 12.0 12.1 "What's new in WSL in Windows 10 Fall Creators Update - Windows Command Line". 11 October 2017. https://devblogs.microsoft.com/commandline/whats-new-in-wsl-in-windows-10-fall-creators-update/. 
  13. Heath, Nick (2017-09-20). "Will Microsoft love Linux to death? Shuttleworth and Stallman on whether Windows 10 is free software's friend" (in en-US). TechRepublic. https://www.techrepublic.com/article/will-microsoft-love-linux-to-death-shuttleworth-and-stallman-on-whether-windows-10-is-free-softwares/. 
  14. Microsoft Ignite (2018-10-02), OS internals: Technical deep-dive into operating system innovations - BRK3365, https://www.youtube.com/watch?v=tG8R5SQGPck&t=24m50s, retrieved 2019-05-07 
  15. "WSL 2 will be generally available in Windows 10, version 2004 - Windows Command Line". 13 March 2020. https://devblogs.microsoft.com/commandline/wsl2-will-be-generally-available-in-windows-10-version-2004/. 
  16. "WSL 2 Support is coming to Windows 10 Versions 1903 and 1909 - Windows Command Line". 20 August 2020. https://devblogs.microsoft.com/commandline/wsl-2-support-is-coming-to-windows-10-versions-1903-and-1909/. 
  17. "GPU accelerated ML training inside the Windows Subsystem for Linux - Windows Developer Blog". 17 June 2020. https://blogs.windows.com/windowsdeveloper/2020/06/17/gpu-accelerated-ml-training-inside-the-windows-subsystem-for-linux/. 
  18. 18.0 18.1 "The Initial Preview of GUI app support is now available for the Windows Subsystem for Linux - Windows Command Line". 21 April 2021. https://devblogs.microsoft.com/commandline/the-initial-preview-of-gui-app-support-is-now-available-for-the-windows-subsystem-for-linux-2/. 
  19. Foley, Mary Jo (2021-04-21). "New Windows 10 test build adds first preview of Linux GUI apps on WSL" (in en-US). https://www.zdnet.com/article/new-windows-10-test-build-adds-first-preview-of-linux-gui-apps-on-wsl/. 
  20. 20.0 20.1 Abrams, Lawrence (2021-05-29). "Hands on with WSLg: Running Linux GUI apps in Windows 10". https://www.bleepingcomputer.com/news/microsoft/hands-on-with-wslg-running-linux-gui-apps-in-windows-10/. 
  21. "A preview of WSL in the Microsoft Store is now available! - Windows Command Line". 11 October 2021. https://devblogs.microsoft.com/commandline/a-preview-of-wsl-in-the-microsoft-store-is-now-available/. 
  22. 22.0 22.1 22.2 22.3 22.4 "Frequently Asked Questions for WSL". Microsoft. https://msdn.microsoft.com/en-us/commandline/wsl/faq. 
  23. Harsh, Mike (30 March 2016). "Run Bash on Ubuntu on Windows". Microsoft. https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/. 
  24. Finley, Klint (30 March 2016). "Why Microsoft Making Linux Apps Run on Windows Isn't Crazy". Condé Nast. https://www.wired.com/2016/03/microsoft-making-linux-apps-run-windows-isnt-crazy/. 
  25. Kirkland, Dustin (30 March 2016). "Ubuntu on Windows – The Ubuntu Userspace for Windows Developers". Canonical. http://insights.ubuntu.com/2016/03/30/ubuntu-on-windows-the-ubuntu-userspace-for-windows-developers/. 
  26. Hammons, Jack (9 April 2016). "Bash on Ubuntu on Windows". Microsoft. https://msdn.microsoft.com/en-us/commandline/wsl/about. 
  27. Get openSUSE Leap 42 - Microsoft Store
  28. Get SUSE Linux Enterprise Server 12 - Microsoft Store
  29. Yegulalp, Serdar (12 May 2017). "Windows Subsystem for Linux welcomes Suse and Fedora options". https://www.infoworld.com/article/3196284/linux/windows-subsystem-for-linux-welcomes-suse-and-fedora-options.html. 
  30. "Debian GNU/Linux for WSL now available in the Windows Store" (in en-US). Windows Command Line Tools For Developers. https://blogs.msdn.microsoft.com/commandline/2018/03/06/debian-gnulinux-for-wsl-now-available-in-the-windows-store/. 
  31. "Kali Linux in the Windows App Store" (in en-US). https://www.kali.org/news/kali-linux-in-the-windows-app-store/. 
  32. Manage and configure Windows Subsystem for Linux
  33. Windows Subsystem for Linux interoperability with Windows
  34. Command Reference for Windows Subsystem for Linux
  35. 35.0 35.1 35.2 Welcome to WSLg, Microsoft, 2021-11-07, https://github.com/microsoft/wslg, retrieved 2021-11-07 
  36. Salter, Jim (2021-10-07). "The best part of Windows 11 is a revamped Windows Subsystem for Linux" (in en-us). https://arstechnica.com/gadgets/2021/10/the-best-part-of-windows-11-is-a-revamped-windows-subsystem-for-linux/. 
  37. "Installing WSLg" (in en-us). 2022-04-27. https://github.com/microsoft/wslg. 
  38. "Clarify Windows 10 vs 11 and build numbers (#485) · microsoft/wslg@5ddd8d2" (in en). https://github.com/microsoft/wslg/commit/5ddd8d21538e584bdf43d79f9644c67ac95b6fa7. 
  39. Jack Hammons (22 April 2016). "Windows Subsystem for Linux Overview". https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subsystem-for-linux-overview. 
  40. Jack Hammons (15 June 2016). "WSL File System Support". https://blogs.msdn.microsoft.com/wsl/2016/06/15/wsl-file-system-support. 
  41. Jack Hammons (8 November 2016). "WSL Networking". https://blogs.msdn.microsoft.com/wsl/2016/11/08/225/. 
  42. "Please enable WSL to run 32 bit ELF binaries". https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13377507-please-add-32-bit-elf-support-to-the-kernel. 
  43. "Support for 32-bit i386 ELF binaries". https://github.com/Microsoft/WSL/issues/390. 
  44. "Windows 10's Bash shell can run graphical Linux applications with this trick". http://www.pcworld.com/article/3055403/windows/windows-10s-bash-shell-can-run-graphical-linux-applications-with-this-trick.html. 
  45. "GPU not accesssible for running tensorflow and installing CUDA · Issue #1788 · Microsoft/WSL". https://github.com/Microsoft/WSL/issues/1788. 
  46. "OpenCL & CUDA GPU support". 15 September 2016. https://wpdev.uservoice.com/forums/266908-command-prompt-console-windows-subsystem-for-l/suggestions/16108045-opencl-cuda-gpu-support. 
  47. "Windows Subsystem for Linux". https://www.phoronix.com/scan.php?page=search&q=Windows+Subsystem+for+Linux. 
  48. Larabel, Michael (12 October 2018). "A Look At The Windows 10 October 2018 Update Performance With WSL". https://www.phoronix.com/scan.php?page=article&item=windows10-okt-wsl&num=1. 
  49. Larabel, Michael (5 November 2018). "The WSL Improvements In The Windows 10 October 2018 Update". https://www.phoronix.com/scan.php?page=news_item&px=WSL-Improvements-Win10-Oct-2018. 
  50. Larabel, Michael (24 June 2020). "Ubuntu 20.04 vs. Windows 10 WSL/WSL2 Performance In 170+ Benchmarks". https://www.phoronix.com/scan.php?page=article&item=wsl-wsl2-tr3970x&num=1. 
  51. Larabel, Michael (17 June 2020). "Windows 10 May 2020 Performance For WSL vs. WSL2". https://www.phoronix.com/scan.php?page=article&item=windows10-may2020-wsl2&num=1. 
  52. Larabel, Michael (16 December 2020). "Windows Subsystem For Linux / WSL2 Performance With The AMD Ryzen 9 5900X". https://www.phoronix.com/scan.php?page=article&item=wsl2-ryzen9-5900x&num=1. 
  53. Loewen, Craig (26 July 2019). "What's new for WSL in Insiders Preview Build 18945". https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-insiders-preview-build-18945/. "In this new update we’ve added the ability to start using global config options for WSL. These options are targeted towards power users who want to further customize their WSL experience." 
  54. Hillis, Ben (25 July 2019). "MicrosoftDocs/WSL | Build 18947". https://github.com/MicrosoftDocs/WSL/releases/tag/18945. 
  55. "A Deep Dive Into How WSL Allows Windows to Access Linux Files" (in en-US). 2019-05-30. https://devblogs.microsoft.com/commandline/a-deep-dive-into-how-wsl-allows-windows-to-access-linux-files/. 
  56. Jujjuri, Venkateswararao; Van Hensbergen, Eric; Liguori, Anthony; Pulavarty, Badari (July 13–16, 2010). "VirtFS—A virtualization aware File System pass-through". Linux Symposium. https://www.kernel.org/doc/ols/2010/ols2010-pages-109-120.pdf. 
  57. "Comparing WSL 1 and WSL 2". 2022-10-04. https://learn.microsoft.com/en-us/windows/wsl/compare-versions. 
  58. Larabel, Michael (29 September 2021). "Windows 11 WSL2 Performance is Quite Competitive Against Ubuntu 20.04 LTS / Ubuntu 21.10". https://www.phoronix.com/review/windows11-wsl2-good. 
  59. craigloewen-msft (2023-12-15). "Comparing WSL Versions" (in en-us). https://learn.microsoft.com/en-us/windows/wsl/compare-versions. 
  60. craigloewen-msft (2023-07-31). "Accessing network applications with WSL" (in en-us). https://learn.microsoft.com/en-us/windows/wsl/networking#ipv6-access. 
  61. "wsl: Hyper-V firewall is not supported wsl: Mirrored networking mode is not supported, falling back to NAT networking · Issue #10495 · microsoft/WSL" (in en). https://github.com/microsoft/WSL/issues/10495#issuecomment-1855059548. 

Further reading

  • Pro Windows Subsystem for Linux (WSL): Powerful Tools and Practices for Cross-Platform Development and Collaboration. Apress. 2021. ISBN 978-1484268728. 
  • Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques: Maximise productivity of your Windows 10 development machine with custom workflows and configurations. Packt Publishing. 2020. ISBN 978-1800562448. 
  • Learn Windows Subsystem for Linux: A Practical Guide for Developers and IT Professionals. Apress. 2020. ISBN 978-1484260371. 

External links