This article needs to be updated. Please help update this article to reflect recent events or newly available information.(June 2021)
This article's lead sectionmay be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all important aspects of the article.(February 2022)
Windows Subsystem for Linux (WSL) is a feature of Microsoft 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 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.[3]
In May 2019, WSL 2 was announced,[6] introducing important changes such as a real Linux kernel,[7] 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 system calls 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.[8]
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 Win32system 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.[7] Microsoft announced WSL 2 on May 6, 2019,[6] 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 Microsoft 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
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 architecture was redesigned in WSL 2,[6] with a Linux kernel running in a lightweight virtual machine environment.
wsl.exe
The wsl.execommand 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 Remote Desktop Protocol (RDP) Server (in Weston) to the RDP Client (msrdc on Windows[37]) according to the RDP protocol specifications.[38]
Prerequisites for running WSLg include:
Windows 11 or Windows 10 Insider Preview builds 21362-21390.[35][39]
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
LXSS Manager Service is the service in charge of interacting with the subsystem (through the driverslxss.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.[40] 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)[41] 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.[42] 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,[43][44] 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),[45] 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.[46][47] 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.[48][49][50] 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.[7] 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.[51]
A comparison of 69 tests with Intel i9 10900K in May 2020 shows nearly the same relative performance.[52] 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.[53]
WSL 2
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 do not 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.[54][55]
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,[56] similarly to other virtual machine technologies like QEMU.[57] For the users, Microsoft promised up to 20 times the read/write performance of WSL 1.[6] From Windows an IFSnetwork redirector is provided for Linux guest file access using the UNC path prefix of \\wsl$.
WSL 2 requires Windows 11,[58] 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.[3]
WSL 2 on Windows 11 retains 95% of the performance of native Ubuntu 20.04 LTS.[59]
WSL 1 does not support IPv6 connections, whereas WSL 2 does.[60][61] IPv6 support in WSL 2 requires Windows 11 or newer.[62]
^"OpenCL & CUDA GPU support". Windows Developer feedback (Microsoft/UserVoice). 15 September 2016. Archived from the original on 7 July 2018. Retrieved 10 September 2018.
^Loewen, Craig (26 July 2019). "What's new for WSL in Insiders Preview Build 18945". Microsoft devblog. Archived from the original on 26 July 2019. Retrieved 26 July 2019. 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.
Barnes, Hayden (2021). Pro Windows Subsystem for Linux (WSL): Powerful Tools and Practices for Cross-Platform Development and Collaboration. Apress. ISBN978-1484268728.
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. Packt Publishing. ISBN978-1800562448.
Singh, Prateek (2020). Learn Windows Subsystem for Linux: A Practical Guide for Developers and IT Professionals. Apress. ISBN978-1484260371.
يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (يوليو 2020) الدوري البلغاري الممتاز 1963-64 تفاصيل الموسم الدوري البلغاري الممتاز النسخة 40 البلد بلغاريا المنظم…
Śrāmaṇera di Thailand Bagian dari seri tentangAgama Buddha Sejarah dan PenyebaranGaris waktu • Sidang agung • Asia Tenggara • Asia Timur • Tibet • Asia Tengah • Indonesia • Dunia Barat AliranTheravāda • Mahāyāna • Vajrāyāna • Sthaviravāda • Mahāsāṃghika Konsep UtamaTiga Permata • Ketuhanan • Lima Hukum Alam • Puasa • Saṃsāra • Tiga Corak Umum • Lima Agregat …
Pour la chanson, voir Love City Groove (chanson). Cet article est une ébauche concernant le Concours Eurovision de la chanson. Vous pouvez partager vos connaissances en l’améliorant (comment ?) ; pour plus d’indications, visitez le projet Eurovision. Love City Groove Données clés Pays d'origine Royaume-Uni Genre musical Pop, R'n'B Années actives 1994 - 1996 Labels Sony MusicPlanet 3 Composition du groupe Anciens membres Paul HardySteven RuddenTatsiana MaisJay WilliamsYinka Cha…
Bandeirantes do Saboó Fundação 1 de maio de 1996 (27 anos) Cores Vermelho Preto Branco Símbolo Bandeirante Bairro Saboó Presidente Geraldo Paixão Presidente de honra José Claudio Delgado Desfile de 2020 Enredo A origem da dança - Uma viagem no tempo GRCES Acadêmicos Bandeirantes do Saboó é uma escola de samba de Santos, fundada em 1° de maio de 1996 por um grupo de sambistas oriundos do Bloco UTI, que participava do tradicional desfile do Banho da Dorotéia, o nome da agremi…
Shin’ichirō Ikebe Shin’ichirō Ikebe (jap. 池辺 晋一郎, Ikebe Shin’ichirō; * 15. September 1943 in Mito) ist ein japanischer Komponist. Inhaltsverzeichnis 1 Leben 2 Werke 2.1 Orchesterwerke 2.2 Opern, Kantaten, Musicals 2.3 Filmmusiken 3 Quellen Leben Ikebe studierte Komposition bei Tomojiro Ikenouchi, Akio Yashiro und Akira Miyoshi und schloss 1971 ein Studium an der Kunsthochschule Tokio mit dem Mastergrad ab. 1966 gewann er den Kompositionspreis beim 35. japanischen Musikwettbewe…
Margaret Cho (2008) Margaret Moran Cho (* 5. Dezember 1968 in San Francisco) ist eine US-amerikanische Schauspielerin und Stand-Up-Comedian koreanischer Abstammung. Inhaltsverzeichnis 1 Allgemeines 2 Biographie 2.1 Um 1994 herum 2.2 2003 2.3 2004 2.4 2005 3 Sonstiges 4 Bibliographie 5 Filmografie (Auswahl) 6 Diskographie 7 Touren 8 Weblinks 9 Einzelnachweise Allgemeines Ein Großteil ihrer Comedy hat sexuell expliziten Inhalt. Zu ihren Lieblingsthemen gehören ihre Vorliebe für Schwule und ihre…
2010 American filmRunawayPromotional posterDirected byKanye WestScreenplay byHype WilliamsStory byKanye WestProduced byJonathan LiaStarringKanye WestSelita EbanksMusic byKanye WestRelease date October 5, 2010 (2010-10-05) Running time35 minutesCountryUnited StatesLanguageEnglish Runaway is a 2010 American musical short film directed by Kanye West.[1] It serves as the music video for a compilation of songs from West's album, My Beautiful Dark Twisted Fantasy, released that …
Digital radio services are broadcast from sites such as Three Rock Mountain (pictured) Digital Radio in the Republic of Ireland is broadcast on a number of digital terrestrial, cable and internet platforms. Until the 31 March 2021, official broadcasts of the digital audio broadcasting standard were also available in the state by Raidió Teilifís Éireann (RTÉ) of their full banquet of radio services.[1] DAB broadcasts since April 2021 are now restricted to unlicensed, low powered multi…
Former Tsim Sha Tsui East Ferry Pier Tsim Sha Tsui East Ferry Pier (Chinese: 尖沙咀東碼頭) was a ferry pier in Salisbury Road, Tsim Sha Tsui East, Kowloon. The pier was firstly located outside Kowloon Shangri-La Hotel (Chinese: 九龍香格里拉酒店) but moved to outside Grand Stanford InterContinental Hong Kong (Chinese: 海景嘉福酒店) after 2000. It was closed and demolished in 2008.[1][2] Ferry service 1986-1999 Tsim Sha Tsui East - Blake Pier / City …
Royal powers Royal warrant from Queen Elizabeth II on display at Savile Row tailor Gieves & Hawkes Royal warrants of appointment have been issued since the 15th century to those who supply goods or services to a royal court or certain royal personages.[1] The warrant enables the supplier to advertise the fact that they supply to the royal family, thereby lending prestige to the brand and/or supplier. In the United Kingdom, grants are currently made by the two most senior members of t…
IntisariKover Majalah Intisari Januari 2012Editor in ChiefMahandis YoanataFrekuensibulananPenerbitPT Gramedia MajalahTerbitan pertamaAgustus 1963PerusahaanPT Intisari MediatamaNegaraIndonesiaBahasaBahasa IndonesiaSitus webhttps://www.intisari.grid.id Intisari adalah majalah bulanan Indonesia yang terbit sejak 1963. Majalah ini didirikan oleh PK Ojong dan Jakob Oetama dengan melibatkan J. Adi Subrata dan Irawati dalam pengelolaannya.[1] Tujuan dibuatnya majalah ini adalah untuk membuka wa…
Lebanese scientist Huda Yahya Zoghbi[2]BornHuda El-Hibri1954 (age 68–69)[3]Beirut, LebanonAlma materBaylor College of Medicine Meharry Medical College American University of BeirutKnown forResearch in Rett syndrome and spinocerebellar ataxia type 1SpouseWilliam Zoghbi[4]AwardsTexas Women Hall of Fame (2008) Gruber Prize in Neuroscience (2011) Pearl Meister Greengard Prize (2013) Dickson Prize (2013) Shaw Prize in Life Science and Medicine (2016) Canad…
Municipal building in London, England Marylebone Town HallMarylebone Town HallLocationMarylebone Road, MaryleboneCoordinates51°31′17″N 0°09′36″W / 51.5213°N 0.1600°W / 51.5213; -0.1600Built1920 (1920)ArchitectSir Edwin CooperArchitectural style(s)Edwardian Graeco-Roman classicist style Listed Building – Grade IIDesignated16 January 1981Reference no.1222688 Shown in Westminster Marylebone Town Hall, also known as the Westminster Council House, is a …
Pembagian biaya total: biaya tetap ditambah biaya variabel. Dalam ekonomi, biaya tetap adalah pengeluaran bisnis yang tidak bergantung pada tingkat barang atau jasa yang dihasilkan oleh bisnis tersebut[1] Pengeluaran ini berkaitan dengan waktu, seperti gaji atau beban sewa yang dibayar setiap bulan, dan sering disebut sebagai pengeluaran tambahan. Ini berbeda dengan biaya variabel yang berkaitan dengan volume (dan dibayar per barang/jasa yang diproduksi). Dalam akuntansi manajemen, biaya…
У этого термина существуют и другие значения, см. Парламентские выборы в Великобритании. Парламентские выборы в Великобритании февраля 1974 года — демократические выборы, прошедшие 28 февраля 1974 года. На выборах консерваторы победили по числу собранных голосов (11 872 180 проти…
American literary critic, biographer and historian Portrait of Van Wyck Brooks by John Butler Yeats, 1909 Van Wyck Brooks (February 16, 1886 in Plainfield, New Jersey – May 2, 1963 in Bridgewater, Connecticut) was an American literary critic, biographer, and historian. Biography Members of the Independent Voters Committee of the Arts and Sciences for Roosevelt visit FDR at the White House (October 1944). From left: Van Wyck Brooks, Hannah Dorner, Jo Davidson, Jan Kiepura, Joseph Cotten, Do…
2013 studio album by Killswitch EngageDisarm the DescentStudio album by Killswitch EngageReleasedApril 2, 2013 (2013-04-02)RecordedSeptember–December 2012StudioWicked Good Studios and Zing Studios, Westfield, MassachusettsGenreMetalcoreLength40:40LabelRoadrunnerProducerAdam DutkiewiczKillswitch Engage chronology Killswitch Engage(2009) Disarm the Descent(2013) Incarnate(2016) Singles from Disarm the Descent In Due TimeReleased: February 5, 2013 AlwaysReleased: July 26, 2…
Стандартный европейский пассажирский вагон На границе Швеции и Финляндии, слева направо:первый и третий рельсы: колея 1524 мм (Финляндия);второй и четвёртый рельсы: колея 1435 мм (Швеция). Европейская колея (в применяющих странах называется «Стандартная колея» или «Стефенсоно…
1969 novel by Harry Harrison Captive Universe First edition coverAuthorHarry HarrisonCover artistPaul Lehr[1]CountryUnited StatesLanguageEnglishGenreScience fictionPublisherG.P. Putnam's SonsPublication date1969Media typePrint (hardback & paperback)Pages185 Captive Universe is a 1969 science fiction novel by American author Harry Harrison. Plot Chimal is a young Aztec tribesman living in an isolated valley which was sealed off from the rest of the world in ages past by a ma…