5 ms·
> He further mentions that unzipping tarbars could see a 20 times performance increase. Boy, do I love unzipping tarbars! On a more serious note, it’s great th
by saagarjha 7y ago
> He further mentions that unzipping tarbars could see a 20 times performance increase.
Boy, do I love unzipping tarbars! On a more serious note, it’s great that WSL has gotten much faster, although it’s a little disappointing that they threw out the older, more interesting architecture to get it and just used a VM.
- jchw 7y agoI agree wholeheartedly. I know it was probably a fool’s errand especially in a world where Docker for Windows was doing the same thing WSL2 does but worse, but WSL1’s design just satisfied me in a way that Hyper-V will not. Presumably, this also means you have to have Hyper-V enabled, crippling all other VM software. Hope the integration is impressive at least, to hopefully make up for it. I admittedly don’t run Windows these days but WSL is definitely one of the highlights of modern Windows and it’s hard to not follow its progress. I also wonder how integration changes with sockets/networking, hardware access, Windows Firewall, etc. Last I checked, relations with Windows Firewall were strained by the lack of proper support for picoprocesses.
- eightysixfour 7y agoThe integration is very impressive, latest builds even have access to the WSL2 file system from Windows. Starting up VS Code on a machine with WSL2 immediately gives you the option to use it as the VS Code environment, it is pretty great.
- kyriakos 7y agoIntegration is even tighter now its not just a VM like many commented here.
- vbezhenar 7y agoCan you write a single feature that's available in WSL 2 but not in VirtualBox?
- kyriakos 7y ago- seamless file system integration - network (you can use 127.0.0.1 to access services in WSL2 or Windows) i.e. it runs on the same home IP.
- eightysixfour 7y agoI don't use virtualbox, so I'm guessing at some features: * The Linux filesystem shows up in Windows as a disk even when the underlying VM is not booted, you can see an example here: https://redmondmag.com/articles/2020/04/08/~/media/ECG/redmondmag/Images/2020/04/0408red_Subsystem_b.ashx https://redmondmag.com/articles/2020/04/08/~/media/ECG/redmo... * And for me the nice one is the integration with VS Code, I just select which distro I want to work in and VS Code will start it (if it isn't running), connect to it as a remote dev environment, and be able to control it as if the VM were within VS Code. It can be done manually with VirtualBox, but VirtualBox gives me no advantages in return. * The networking implementation makes both 127.0.0.1 which is occasionally useful for me.
- garethrowlands 7y agoStarts in one second.
- vbezhenar 7y agoThat's not a feature. And in practice it's not even relevant, because you can start your VM at Windows startup and use Putty to ssh into booted system which takes a fraction of second. Also slim CentOS image boots, well, not in one second, but something like 5 seconds. Fast enough IMO.
- cgb223 7y ago> Presumably, this also means you have to have Hyper-V enabled, crippling all other VM software How does hyper-V cripple other VM software? I just had to enable it to use a prebuilt VM I need, now I’m a little worried
- mehrdadn 7y agoLast time I checked (months ago) VirtualBox just couldn't run under Hyper-V. If you Google around you'll see lots of threads, e.g. https://superuser.com/q/1208850 https://superuser.com/q/1208850 Apparently they claim that as of February 19, 2020, they've "Restored the ability to run VMs through Hyper-V, at the expense of performance". https://www.virtualbox.org/wiki/Changelog-6.1 https://www.virtualbox.org/wiki/Changelog-6.1
- lukevp 7y agoI’m using hyper-v and virtualbox together, seems to be fine performance-wise. Only reason we’re using vbox is that we already have vagrant scripts set up for it and hyper-v didn’t seem to work as well as a target for vagrant.
- deleted 7y ago[deleted]
- Dylan16807 7y agoRestored? That's a weird line. I don't think it ever lost it since the feature was added in 6.0 (released December 18 2018), it was just annoying to activate.
- mehrdadn 7y agoI couldn't get it work, so it was broken as I saw it... not sure who could actually get it to work then.
- Dylan16807 7y agoYou had to manually set "VBoxInternal/NEM/UseRing0Runloop" to 0. The default settings were broken, but the actual functionality was fine. Though I remember it working at some point before that, too...
- lmz 7y agoStop blaming Hyper-V for "crippling other VM software". You ever tried to run VBox and KVM together? It's a limitation of the processor's virtualization extension.
- inyorgroove 7y agoProblem is once Hyper-V is installed and enabled, no other VM can even be started regardless of no Hyper-V VMs actually running. This limitation does not exist on linux afaik. I have run libvirt based VMs and VirtualBox VMs at the same time on linux just fine in the past.
- lukevp 7y agoThat’s not what’s happening. Hyper-v is a type-1 hypervisor. When it’s running, even your Windows instance is running within hyper-v. Windows 10 has the hypervisor platform that lets other vm developers hook into the hyper-v host architecture, that’s how you can get android emulators and virtualbox running under hyper-v. It all works fine but is a little unintuitive to set up.
- HelloNurse 7y agoIf both VirtualBox and VMware give up on Hyper-V coexistence, it must be a bit worse than "unintuitive".
- garethrowlands 7y agoThey haven't given up.
- SXX 7y agoMost likely you just wasn't using VirtualBox own virtualization since it's cant work alongside with KVM. Current version of virtualbox just use KVM just like libvirt.
- IntelMiner 7y agoThat's false The above commenter linked to a far more thorough explanation https://superuser.com/questions/1208850/why-cant-virtualbox-or-vmware-run-with-hyper-v-enabled-on-windows-10 https://superuser.com/questions/1208850/why-cant-virtualbox-...
- jimmcslim 7y ago> Presumably, this also means you have to have Hyper-V enabled, crippling all other VM software. This is being addressed, as discussed by commenter below [1] and at [2]. [1] https://news.ycombinator.com/item?id=22874047 https://news.ycombinator.com/item?id=22874047 [2] https://blogs.vmware.com/workstation/2020/01/vmware-workstation-tech-preview-20h1.html https://blogs.vmware.com/workstation/2020/01/vmware-workstat...
- jchw 7y agoGreat to hear. I suppose this means I should consider keeping my Workstation license up to date...
- hamandcheese 7y agoBoring tech is good tech :)
- quotemstr 7y ago"Boring tech is good tech" is what stagnant companies say to distract people from how they're not innovating.
- pjmlp 7y agoCompanies that stay in the game actually.
- RMPR 7y agoBoring tech is good tech, choose boring tech :) https://news.ycombinator.com/item?id=20323246 https://news.ycombinator.com/item?id=20323246
- mehrdadn 7y agoThe things I liked the most about WSL were the ability to share the same file system (and RAM, etc.) and not have to care about partitioning any resources. And to search the Linux files on the Windows side and even modify them with tools that can handle them (yes, I know what I'm doing). Now all of that goes out the window(s)... so I'm pretty unenthusiastic about WSL2. And the 9P server has been next to useless for me on WSL1. It's so darn slow for a local filesystem, it's almost like accessing files over SMB.
- kyriakos 7y agoYou still don't need to manage all those things. Wsl2 does it all automatically as far as I ve seen from the current version I tried
- mehrdadn 7y agoIt needs a VHD, which requires setting aside a partition of your disk, meaning you can't dynamically share space with your Windows files. That's a huge downside for me. (By "partition" here I'm just referring to the English sense, not the MBR/GPT per se.) You also can't nor search/modify your Linux files directly from Windows like I mentioned. The 9P server with WSL1 has been so slow as to be unusable for some directories when I try to use it. Does it feel native SSD-speed on WSL2? As for RAM, does it really share RAM with Windows? That's great news if it does, but I don't think I've seen any VMs do this, though I've never tried it with Hyper-V... if it does, I'm guessing that's what lets it use memory ballooning?
- eropple 7y agoIt's a resizable VHD that handles its business in the background, so I don't understand the complaint. And you can access your Linux files in Windows just fine when using WSL2. Just go to `\\wsl$`. WSL2 is the first thing to legit make me reconsider my daily-driver Fedora setup in...well, since I started using it in ~2016. I just do not think about it, it's great.
- 7y ago
- Ericson2314 7y agoPart of my clings to hope that this is strictly because rewriting all those gazillion syscalls was a PITA, and they will eventually convert on something in between WSL1 and WSL2 where the Linux "front end" is used with NT, like the opposite of a rump kernel.