Windows Subsystem for Linux (WSL) version 2: hur kommer det att bli? (FAQ)

Under the cut is the translation of the published FAQ about the details of the upcoming WSL version 2 (author — Craig Loewen).

Windows Subsystem for Linux (WSL) version 2: hur kommer det att bli? (FAQ)

Windows Subsystem for Linux (WSL) version 2: hur kommer det att bli? (FAQ)

Topics covered:


Does WSL 2 use Hyper-V? Will WSL 2 be available on Windows 10 Home?

WSL 2 will be available in all editions of Windows where WSL 1 is currently available (including Windows 10 Home).

The second version of WSL uses a Hyper-V architecture for virtualization. This architecture will be available in an additional component, which is a subset of Hyper-V features. This additional component will be available in all OS editions. Closer to the release of WSL 2, we will provide more details about this new component.

What will happen to WSL 1? Will it be deprecated?

Currently, we do not plan to abandon WSL 1. You can run WSL 1 and WSL 2 distributions side by side on the same machine. Adding WSL 2 as a new architecture helps the WSL team expand the amazing capabilities of running a Linux environment on Windows.

Will it be possible to run WSL 2 and other third-party virtualization tools (like VMWare or Virtual Box) simultaneously?

Some third-party applications may not work when Hyper-V is used, meaning they will not function with WSL 2 enabled. Unfortunately, this includes VMWare and Virtual Box.

We are exploring ways to resolve this issue. For example, we are providing an API set called Hypervisor Platform, which can be utilized by third-party virtualization providers to ensure their software is compatible with Hyper-V. This allows applications to use the Hyper-V architecture for emulation, such as: the Google Android emulator is now compatible with Hyper-V.

ÖversĂ€ttarens kommentar

Oracle VirtualBox already has an experimental capability to use Hyper-V for virtualizing its machines:

No configuration is required. Oracle VM VirtualBox detects Hyper-V automatically and uses Hyper-V as the virtualization engine for the host system. The CPU icon in the VM window status bar indicates that Hyper-V is being used.

But this leads to significant performance degradation:

When using this feature, you might experience significant Oracle VM VirtualBox performance degradation on some host systems.

UtifrÄn min personliga erfarenhet av att anvÀnda Hyper-V och VirtualBox tillsammans kan jag notera att VirtualBox förbÀttrar stödet för sina virtuella maskiner under Hyper-V med varje release. Men hastigheten gör fortfarande att vi inte kan övergÄ till en sÄdan kombination för dagliga uppgifter, Àven sÄdana som inte krÀver mycket prestanda. En enkel omritning av fönster inuti den virtuella maskinen sker med mÀrkbar fördröjning. Jag hoppas verkligen att situationen förbÀttras till tiden för release av WSL 2.

Will it be possible to access the GPU from WSL 2? What are the plans for expanding hardware support?

I de tidiga versionerna av WSL 2 kommer stödet för hĂ„rdvaruĂ„tkomst att vara begrĂ€nsat. Till exempel kommer du inte kunna fĂ„ tillgĂ„ng till grafikkortet, den seriella porten eller USB. ÄndĂ„ har tillĂ€gg av enhetssupport hög prioritet i vĂ„ra planer, eftersom det öppnar upp mĂ„nga möjligheter för utvecklare som vill interagera med dessa enheter. Samtidigt kan du alltid anvĂ€nda WSL 1, som ger Ă„tkomst till bĂ„de den seriella porten och USB. VĂ€nligen hĂ„ll dig uppdaterad via denna blogg och Twitter-kontona för WSL-teamet för att hĂ„lla dig informerad om de senaste funktionerna som kommer att dyka upp i Insider-byggnaderna och lĂ„t oss veta vilka enheter du vill interagera med!

Will WSL 2 be able to use network applications?

Ja, generellt sett kommer nÀtverksapplikationer att fungera snabbare och bÀttre eftersom vi sÀkerstÀller full kompatibilitet med systemanrop. Men i den nya arkitekturen anvÀnds virtualiserade nÀtverkskomponenter. Det betyder att WSL 2 i de tidiga förhandsversionerna kommer att fungera som en virtuell maskin, exempelvis kommer WSL 2 ha sin egen IP-adress (inte samma som vÀrden). Vi strÀvar efter att anvÀndarupplevelsen i WSL 2 ska vara liknande den i WSL 1, vilket inkluderar förbÀttringar av stödet för nÀtverkssystemet. Vi planerar att snabbt lÀgga till möjligheten till kommunikation mellan alla nÀtverksapplikationer frÄn Linux eller Windows med hjÀlp av localhost. Vi kommer att publicera mer detaljerad information om vÄrt nÀtverksystem och förbÀttringar i takt med att vi nÀrmar oss releasen av WSL 2.

Om du har nÄgra ytterligare frÄgor om WSL, eller om du bara vill kontakta WSL-teamet, kan du hitta oss pÄ Twitter:

KĂ€lla: habr.com

Köp pĂ„litlig webbhotell med DDoS-skydd, VPS VDS-servrar đŸ”„ Köp pĂ„litlig webbhotell med DDoS-skydd, VPS VDS-servrar | ProHoster