5 ms·
Interesting; different perspectives I suppose; not the OP, but for myself too VM always seemed an easier and cleaner solution: 1. Isn't WSL2 now actually a VM
by NikolaNovak 5y ago
Interesting; different perspectives I suppose; not the OP, but for myself too VM always seemed an easier and cleaner solution:
1. Isn't WSL2 now actually a VM too? My biggest deal breaker with WSL2 is that it moves my main Windows into now a parent VM over the Type 1 hypervisor; making everything else in my main Windows just that little bit wonkier. Worse, this information isn't as readily easily grokkable as I feel it should be. I.e. if somebody isn't comfortable installing a clean, separate VM in Virtualbox, they may be even less aware of consequences of moving their main Windows installation into a VM now.
2.Re fiddliness: Installing Ubuntu into VIrtualbox has always seemed trivially easy; and there's any number of downloadable pre-built images from safe sources. Whereas figuring out how to access Windows filesystem from WSL2 and vice versa; let alone installing GUI tools - always seemed completely opaque to me with any number of half-built, quarter-supported guides and solutions out there. And I never seem to know or guess correctly what subset of Linux functionality will or will not work, normally or differently.
- fretn 5y agoCan you give some more info about your first point, where your main Windows is moved into a parent VM ?
- formerly_proven 5y agoThat's just how Hyper-V (Microsofts VM hypervisor) works, it's a type 1 (bare metal) hypervisor, where everything else runs in a VM.
- girvo 5y agohttps://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/about/#differences-between-hyper-v-on-windows-and-hyper-v-on-windows-server https://docs.microsoft.com/en-us/virtualization/hyper-v-on-w... Has some basic info, worth a read. > In addition, if you have Hyper-V enabled, those latency-sensitive, high-precision applications may also have issues running in the host. This is because with virtualization enabled, the host OS also runs on top of the Hyper-V virtualization layer, just as guest operating systems do.
- NikolaNovak 5y agoSure: 1. https://docs.microsoft.com/en-us/windows/wsl/faq https://docs.microsoft.com/en-us/windows/wsl/faq "The newest version of WSL uses Hyper-V architecture to enable its virtualization" A little bit of detail on impact, but incomplete/generic. 2. https://docs.microsoft.com/en-us/windows-server/administration/performance-tuning/role/hyper-v-server/architecture https://docs.microsoft.com/en-us/windows-server/administrati... "Hyper-V features a Type 1 hypervisor-based architecture. "
- dboreham 5y ago> moves my main Windows into now a parent VM over the Type 1 hypervisor Are you sure about this? It seems unlikely that NT would change significantly depending on whether or not it is hosting a WSL2 guest. I've never noticed anything different about my Windows since using WSL2. > Windows filesystem from WSL2 and vice versa /mnt/C/ \\wsl.localhost\Ubuntu
- morpheuskafka 5y agoIt is true for any system that has Hyper-V enabled and should work perfectly fine. Same as if you have a Windows VM guest or a traditional Linux VM. WSL2 uses and manages a small VM under the hood so enabling it will cause this change to the windows boot process if it was not already so.
- hadik 5y agoWSL2 is architecturally designed to run under Hyper-V, so when you activate WSL2 on your machine, Hyper-V runs on bare metal and your Windows installation just becomes another VM running inside it next to the WSL2 Linux environment. Unfortunately this is imho not explained as well as it should be, because, while most of the time most people won't notice any difference, there is a measurable impact with regards to performance (in games, for example). It depends on your specific setup how bad it gets, and in most cases it's more of a theoretical performance hit than a noticeable one, but it is still there.
- freefolks 5y agoIt downclocks my ram to 800mhz if I enable vt in bios. My new cutting edge system turns into a pentium 4. Apparently this is a bug with windows 11. Hope it gets fixed
- girvo 5y agoYeah it actually does. Crazy, I know. They’re also doing the same for Windows 11 by default now too I believe. > In addition, if you have Hyper-V enabled, those latency-sensitive, high-precision applications may also have issues running in the host. This is because with virtualization enabled, the host OS also runs on top of the Hyper-V virtualization layer, just as guest operating systems do. https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/about/#differences-between-hyper-v-on-windows-and-hyper-v-on-windows-server https://docs.microsoft.com/en-us/virtualization/hyper-v-on-w...
- sixbrx 5y agoI think #1 (running Windows itself via HyperV) is just the direction Windows is going anyway, and WSL2 is just one of the features that require it. Another one that requires it is the "Windows Defender Application Guard" which can isolate browser instances and other stuff. https://techcommunity.microsoft.com/t5/virtualization/hyper-v-powering-windows-features/ba-p/1063685 https://techcommunity.microsoft.com/t5/virtualization/hyper-...