Does WSL2 run Linux in a virtual machine or alongside the Windows kernel?Realtime kernel running as virtual machineDoesn't detect usb modem after kernel updateVirtualbox , Ubuntu 11.10 , linux-kernel 3: cannot start virtual machineLinux and windows kernelMove Ubuntu Server Virtual Machine from Linux to WindowsIs the Linux kernel required to run Linux?Anyway to get full bash working on Windows?error when starting windows 10 virtual machineRunning Ubuntu in the new Windows 10 using WSL Windows System for Linux (not hyper-V)Linux kernel development in WSL
Output the list of musical notes
How to get locks that are keyed alike?
How can I shoot a bow using Strength instead of Dexterity?
Escape Velocity - Won't the orbital path just become larger with higher initial velocity?
Would the USA be eligible to join the European Union?
How to prevent criminal gangs from making/buying guns?
List, map function based on a condition
How to gracefully leave a company you helped start?
Attacking the Hydra
Units of measurement, especially length, when body parts vary in size among races
How can I communicate my issues with a potential date's pushy behavior?
What should we do with manuals from the 80s?
Solving pricing problem heuristically in column generation algorithm for VRP
How would armour (and combat) change if the fighter didn't need to actually wear it?
When was "Fredo" an insult to Italian-Americans?
Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)
Go to last file in vim
A+ rating still unsecure by Google Chrome's opinion
What is the prop for Thor's hammer (Mjölnir) made of?
Sum Square Difference, which way is more Pythonic?
Is this bar slide trick shown on Cheers real or a visual effect?
What is a "soap"?
Unconventional examples of mathematical modelling
What should I do if actually I found a serious flaw in someone's PhD thesis and an article derived from that PhD thesis?
Does WSL2 run Linux in a virtual machine or alongside the Windows kernel?
Realtime kernel running as virtual machineDoesn't detect usb modem after kernel updateVirtualbox , Ubuntu 11.10 , linux-kernel 3: cannot start virtual machineLinux and windows kernelMove Ubuntu Server Virtual Machine from Linux to WindowsIs the Linux kernel required to run Linux?Anyway to get full bash working on Windows?error when starting windows 10 virtual machineRunning Ubuntu in the new Windows 10 using WSL Windows System for Linux (not hyper-V)Linux kernel development in WSL
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've always wanted a Linux terminal in Windows and was fulfilled by WSL 1. But it was painfully slow as it was (I guess) a Hyper-V-managed virtual machine. With WSL 2, it's way faster relatively but I cannot understand how Microsoft made it so.
Did they improve Hyper-V or did they stop using a virtual machine and create some magic to run the Linux kernel in parallel?
kernel windows windows-subsystem-for-linux
|
show 3 more comments
I've always wanted a Linux terminal in Windows and was fulfilled by WSL 1. But it was painfully slow as it was (I guess) a Hyper-V-managed virtual machine. With WSL 2, it's way faster relatively but I cannot understand how Microsoft made it so.
Did they improve Hyper-V or did they stop using a virtual machine and create some magic to run the Linux kernel in parallel?
kernel windows windows-subsystem-for-linux
3
It's still virtual, but WSL2 uses a linux (4.9) kernel instead of changing the calls to windows APIs and handling it that way.
– guiverc
Aug 4 at 7:14
9
@Sachin WSL 1 runs ELF binaries on Windows by translating Linux system calls to Windows system calls, which makes it exactly what its name describes, "Windows Subsystem for Linux"
– wjandrea
Aug 4 at 14:56
6
WSL 1 was not virtual @guiverc
– Adrian
Aug 4 at 16:34
3
@Sachin.Verma: What do you mean by "hoax"? WSL 1 was an implementation of the Linux kernel API and ABI, just like the Linux kernel is an implementation of the Linux kernel API and ABI. In fact, that is how most Linux compatibility layers work, e.g. the ones on FreeBSD, HP-UX, AIX, Solaris, etc. are also mostly independent re-implementations of the Linux kernel ABI and API instead of ports of the Linux kernel. It also works the other way around: all the compatibility layers for commercial Unices on Linux were independent re-implementations of their APIs and ABIs.
– Jörg W Mittag
Aug 4 at 17:44
4
WinE also works the same way. It implements the Windows API and ABI, instead of porting Windows to run on Linux (which wouldn't be legally possible).
– Jörg W Mittag
Aug 4 at 17:45
|
show 3 more comments
I've always wanted a Linux terminal in Windows and was fulfilled by WSL 1. But it was painfully slow as it was (I guess) a Hyper-V-managed virtual machine. With WSL 2, it's way faster relatively but I cannot understand how Microsoft made it so.
Did they improve Hyper-V or did they stop using a virtual machine and create some magic to run the Linux kernel in parallel?
kernel windows windows-subsystem-for-linux
I've always wanted a Linux terminal in Windows and was fulfilled by WSL 1. But it was painfully slow as it was (I guess) a Hyper-V-managed virtual machine. With WSL 2, it's way faster relatively but I cannot understand how Microsoft made it so.
Did they improve Hyper-V or did they stop using a virtual machine and create some magic to run the Linux kernel in parallel?
kernel windows windows-subsystem-for-linux
kernel windows windows-subsystem-for-linux
edited Aug 5 at 12:25
Boann
1133 bronze badges
1133 bronze badges
asked Aug 4 at 6:39
Sachin.VermaSachin.Verma
736 bronze badges
736 bronze badges
3
It's still virtual, but WSL2 uses a linux (4.9) kernel instead of changing the calls to windows APIs and handling it that way.
– guiverc
Aug 4 at 7:14
9
@Sachin WSL 1 runs ELF binaries on Windows by translating Linux system calls to Windows system calls, which makes it exactly what its name describes, "Windows Subsystem for Linux"
– wjandrea
Aug 4 at 14:56
6
WSL 1 was not virtual @guiverc
– Adrian
Aug 4 at 16:34
3
@Sachin.Verma: What do you mean by "hoax"? WSL 1 was an implementation of the Linux kernel API and ABI, just like the Linux kernel is an implementation of the Linux kernel API and ABI. In fact, that is how most Linux compatibility layers work, e.g. the ones on FreeBSD, HP-UX, AIX, Solaris, etc. are also mostly independent re-implementations of the Linux kernel ABI and API instead of ports of the Linux kernel. It also works the other way around: all the compatibility layers for commercial Unices on Linux were independent re-implementations of their APIs and ABIs.
– Jörg W Mittag
Aug 4 at 17:44
4
WinE also works the same way. It implements the Windows API and ABI, instead of porting Windows to run on Linux (which wouldn't be legally possible).
– Jörg W Mittag
Aug 4 at 17:45
|
show 3 more comments
3
It's still virtual, but WSL2 uses a linux (4.9) kernel instead of changing the calls to windows APIs and handling it that way.
– guiverc
Aug 4 at 7:14
9
@Sachin WSL 1 runs ELF binaries on Windows by translating Linux system calls to Windows system calls, which makes it exactly what its name describes, "Windows Subsystem for Linux"
– wjandrea
Aug 4 at 14:56
6
WSL 1 was not virtual @guiverc
– Adrian
Aug 4 at 16:34
3
@Sachin.Verma: What do you mean by "hoax"? WSL 1 was an implementation of the Linux kernel API and ABI, just like the Linux kernel is an implementation of the Linux kernel API and ABI. In fact, that is how most Linux compatibility layers work, e.g. the ones on FreeBSD, HP-UX, AIX, Solaris, etc. are also mostly independent re-implementations of the Linux kernel ABI and API instead of ports of the Linux kernel. It also works the other way around: all the compatibility layers for commercial Unices on Linux were independent re-implementations of their APIs and ABIs.
– Jörg W Mittag
Aug 4 at 17:44
4
WinE also works the same way. It implements the Windows API and ABI, instead of porting Windows to run on Linux (which wouldn't be legally possible).
– Jörg W Mittag
Aug 4 at 17:45
3
3
It's still virtual, but WSL2 uses a linux (4.9) kernel instead of changing the calls to windows APIs and handling it that way.
– guiverc
Aug 4 at 7:14
It's still virtual, but WSL2 uses a linux (4.9) kernel instead of changing the calls to windows APIs and handling it that way.
– guiverc
Aug 4 at 7:14
9
9
@Sachin WSL 1 runs ELF binaries on Windows by translating Linux system calls to Windows system calls, which makes it exactly what its name describes, "Windows Subsystem for Linux"
– wjandrea
Aug 4 at 14:56
@Sachin WSL 1 runs ELF binaries on Windows by translating Linux system calls to Windows system calls, which makes it exactly what its name describes, "Windows Subsystem for Linux"
– wjandrea
Aug 4 at 14:56
6
6
WSL 1 was not virtual @guiverc
– Adrian
Aug 4 at 16:34
WSL 1 was not virtual @guiverc
– Adrian
Aug 4 at 16:34
3
3
@Sachin.Verma: What do you mean by "hoax"? WSL 1 was an implementation of the Linux kernel API and ABI, just like the Linux kernel is an implementation of the Linux kernel API and ABI. In fact, that is how most Linux compatibility layers work, e.g. the ones on FreeBSD, HP-UX, AIX, Solaris, etc. are also mostly independent re-implementations of the Linux kernel ABI and API instead of ports of the Linux kernel. It also works the other way around: all the compatibility layers for commercial Unices on Linux were independent re-implementations of their APIs and ABIs.
– Jörg W Mittag
Aug 4 at 17:44
@Sachin.Verma: What do you mean by "hoax"? WSL 1 was an implementation of the Linux kernel API and ABI, just like the Linux kernel is an implementation of the Linux kernel API and ABI. In fact, that is how most Linux compatibility layers work, e.g. the ones on FreeBSD, HP-UX, AIX, Solaris, etc. are also mostly independent re-implementations of the Linux kernel ABI and API instead of ports of the Linux kernel. It also works the other way around: all the compatibility layers for commercial Unices on Linux were independent re-implementations of their APIs and ABIs.
– Jörg W Mittag
Aug 4 at 17:44
4
4
WinE also works the same way. It implements the Windows API and ABI, instead of porting Windows to run on Linux (which wouldn't be legally possible).
– Jörg W Mittag
Aug 4 at 17:45
WinE also works the same way. It implements the Windows API and ABI, instead of porting Windows to run on Linux (which wouldn't be legally possible).
– Jörg W Mittag
Aug 4 at 17:45
|
show 3 more comments
1 Answer
1
active
oldest
votes
From the article About WSL 2 of Microsoft Docs:
Brief overview of the WSL 2 architecture
WSL 2 uses the latest and greatest in virtualization technology to run
its Linux kernel inside of a lightweight utility virtual machine (VM).
However, WSL 2 will NOT be a traditional VM experience. A traditional
VM experience can be slow to boot up, is isolated, consumes lots of
resources, and requires your time to manage it. WSL 2 does not have
these attributes. It will still give the remarkable benefits of WSL 1:
High levels of integration between Windows and Linux, extremely fast
boot times, small resource footprint, and best of all will require no
VM configuration or management. While WSL 2 does use a VM, it will be
managed and run behind the scenes leaving you with the same user
experience as WSL 1.
As how we can see in the following articles (and discussions below them) WLS 2 uses Hyper-V feature:
- Microsoft devBlogs: WSL 2 is now available in Windows Insiders
- Thomas Maurer blog: Install WSL 2 on Windows 10
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1163283%2fdoes-wsl2-run-linux-in-a-virtual-machine-or-alongside-the-windows-kernel%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the article About WSL 2 of Microsoft Docs:
Brief overview of the WSL 2 architecture
WSL 2 uses the latest and greatest in virtualization technology to run
its Linux kernel inside of a lightweight utility virtual machine (VM).
However, WSL 2 will NOT be a traditional VM experience. A traditional
VM experience can be slow to boot up, is isolated, consumes lots of
resources, and requires your time to manage it. WSL 2 does not have
these attributes. It will still give the remarkable benefits of WSL 1:
High levels of integration between Windows and Linux, extremely fast
boot times, small resource footprint, and best of all will require no
VM configuration or management. While WSL 2 does use a VM, it will be
managed and run behind the scenes leaving you with the same user
experience as WSL 1.
As how we can see in the following articles (and discussions below them) WLS 2 uses Hyper-V feature:
- Microsoft devBlogs: WSL 2 is now available in Windows Insiders
- Thomas Maurer blog: Install WSL 2 on Windows 10
add a comment |
From the article About WSL 2 of Microsoft Docs:
Brief overview of the WSL 2 architecture
WSL 2 uses the latest and greatest in virtualization technology to run
its Linux kernel inside of a lightweight utility virtual machine (VM).
However, WSL 2 will NOT be a traditional VM experience. A traditional
VM experience can be slow to boot up, is isolated, consumes lots of
resources, and requires your time to manage it. WSL 2 does not have
these attributes. It will still give the remarkable benefits of WSL 1:
High levels of integration between Windows and Linux, extremely fast
boot times, small resource footprint, and best of all will require no
VM configuration or management. While WSL 2 does use a VM, it will be
managed and run behind the scenes leaving you with the same user
experience as WSL 1.
As how we can see in the following articles (and discussions below them) WLS 2 uses Hyper-V feature:
- Microsoft devBlogs: WSL 2 is now available in Windows Insiders
- Thomas Maurer blog: Install WSL 2 on Windows 10
add a comment |
From the article About WSL 2 of Microsoft Docs:
Brief overview of the WSL 2 architecture
WSL 2 uses the latest and greatest in virtualization technology to run
its Linux kernel inside of a lightweight utility virtual machine (VM).
However, WSL 2 will NOT be a traditional VM experience. A traditional
VM experience can be slow to boot up, is isolated, consumes lots of
resources, and requires your time to manage it. WSL 2 does not have
these attributes. It will still give the remarkable benefits of WSL 1:
High levels of integration between Windows and Linux, extremely fast
boot times, small resource footprint, and best of all will require no
VM configuration or management. While WSL 2 does use a VM, it will be
managed and run behind the scenes leaving you with the same user
experience as WSL 1.
As how we can see in the following articles (and discussions below them) WLS 2 uses Hyper-V feature:
- Microsoft devBlogs: WSL 2 is now available in Windows Insiders
- Thomas Maurer blog: Install WSL 2 on Windows 10
From the article About WSL 2 of Microsoft Docs:
Brief overview of the WSL 2 architecture
WSL 2 uses the latest and greatest in virtualization technology to run
its Linux kernel inside of a lightweight utility virtual machine (VM).
However, WSL 2 will NOT be a traditional VM experience. A traditional
VM experience can be slow to boot up, is isolated, consumes lots of
resources, and requires your time to manage it. WSL 2 does not have
these attributes. It will still give the remarkable benefits of WSL 1:
High levels of integration between Windows and Linux, extremely fast
boot times, small resource footprint, and best of all will require no
VM configuration or management. While WSL 2 does use a VM, it will be
managed and run behind the scenes leaving you with the same user
experience as WSL 1.
As how we can see in the following articles (and discussions below them) WLS 2 uses Hyper-V feature:
- Microsoft devBlogs: WSL 2 is now available in Windows Insiders
- Thomas Maurer blog: Install WSL 2 on Windows 10
answered Aug 4 at 7:21
pa4080pa4080
16.4k7 gold badges34 silver badges81 bronze badges
16.4k7 gold badges34 silver badges81 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1163283%2fdoes-wsl2-run-linux-in-a-virtual-machine-or-alongside-the-windows-kernel%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
It's still virtual, but WSL2 uses a linux (4.9) kernel instead of changing the calls to windows APIs and handling it that way.
– guiverc
Aug 4 at 7:14
9
@Sachin WSL 1 runs ELF binaries on Windows by translating Linux system calls to Windows system calls, which makes it exactly what its name describes, "Windows Subsystem for Linux"
– wjandrea
Aug 4 at 14:56
6
WSL 1 was not virtual @guiverc
– Adrian
Aug 4 at 16:34
3
@Sachin.Verma: What do you mean by "hoax"? WSL 1 was an implementation of the Linux kernel API and ABI, just like the Linux kernel is an implementation of the Linux kernel API and ABI. In fact, that is how most Linux compatibility layers work, e.g. the ones on FreeBSD, HP-UX, AIX, Solaris, etc. are also mostly independent re-implementations of the Linux kernel ABI and API instead of ports of the Linux kernel. It also works the other way around: all the compatibility layers for commercial Unices on Linux were independent re-implementations of their APIs and ABIs.
– Jörg W Mittag
Aug 4 at 17:44
4
WinE also works the same way. It implements the Windows API and ABI, instead of porting Windows to run on Linux (which wouldn't be legally possible).
– Jörg W Mittag
Aug 4 at 17:45