Re:WSL2 corrupting Git repositories and shell history
by pydry on Saturday January 02, 2021 @11:37AM
(#25613958)
Other than the startup time (mitigated by starting the VM right after startup) I have no issues with virtualbox. File mounts, copy & paste... everything works more or less fine.
WSL, on the other hand, has been nothing but trouble.
Re:WSL2 corrupting Git repositories and shell history
by shawnz on Saturday January 02, 2021 @11:40AM
(#25613986)
One downside there is the constantly huge RAM consumption of such a setup.
EDIT: At least compared to WSL1. However WSL2 also has some advantages in that it can reclaim unused memory and suspend the VM when not in use.
Re:WSL2 corrupting Git repositories and shell history
by AshamedCaptain on Saturday January 02, 2021 @12:40PM
(#25614539)
Why would VM-based WSL2 use any less RAM?
Re:WSL2 corrupting Git repositories and shell history
by freeone3000 on Saturday January 02, 2021 @01:25PM
(#25615004)
WSL VMs are gen2 (fully paravirtual) hyper-v VMs, so use dynamic memory allocation. VirtualBox, even with Hyper-V as its engine, doesn't do this. I don't think any standalone Linux distros offer a standalone Hyper-V paravirtual image that is not a WSL2 image.
Re:WSL2 corrupting Git repositories and shell history
by Cu3PO42 on Saturday January 02, 2021 @02:55PM
(#25615878)
The Ubuntu image you can select in the "New VM" dialog in the Hyper-V management tool (or whatever it's called) absolutely does work with dynamic memory allocation and I seem to recall getting it to work on an Arch VM as well.
I believe the "Linux Integration Services" for Hyper-V are actually mainlined at this point so I would expect most things to work. Setting up RDP for enhanced desktop sessions is the only painful thing I remember.
Re:WSL2 corrupting Git repositories and shell history
by AshamedCaptain on Sunday January 03, 2021 @10:29AM
(#25622280)
You don't need paravirtualization to do dynamic memory allocation -- all VMs do this.
Re:WSL2 corrupting Git repositories and shell history
by freeone3000 on Sunday January 03, 2021 @05:27PM
(#25625813)
No. Gen1 images use a fixed allocation pool instead of an oversubscription model. You need a gen2 image with a cooperative memory allocator on the guest in order for this to work properly.
Re:WSL2 corrupting Git repositories and shell history
by AshamedCaptain on Thursday January 07, 2021 @06:31AM
(#25669849)
Well, so barring ancient HyperV versions, all VMs do it. This is more of a guest thing than hypervisor thing, anyway. All the VM needs to support is balloning and this is completely unrelated to paravirtualization.
Re:WSL2 corrupting Git repositories and shell history
by sam_lowry_ on Saturday January 02, 2021 @10:51AM
(#25613575)
>Clipboard works perfectly
Which one? Secondary? And the primary does not work at all?
Re:WSL2 corrupting Git repositories and shell history
by Kwpolska on Saturday January 02, 2021 @11:21AM
(#25613799)
The Windows clipboard just works, because WSL2 terminals are just regular Windows apps.
Re:WSL2 corrupting Git repositories and shell history
by zo1 on Saturday January 02, 2021 @12:39PM
(#25614536)
At this point - Can't you just SSH into the local linux VM or a remote linux server?
Getting that same quality of experience under VirtualBox was nightmarish. Longer boot times, shared clipboard/filesystems were always breaking, random stuff related to hardening made update difficult.