4 ms·
When I launch my WSL2 Ubuntu shell, I have a CLI prompt in < 1 second. Clipboard works perfectly since it is a window similar to PowerShell, my windows file sys
by umvi 6y ago
When I launch my WSL2 Ubuntu shell, I have a CLI prompt in < 1 second. Clipboard works perfectly since it is a window similar to PowerShell, my windows file system is mounted in under /mnt, and generally everything is lighting fast.
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.
- sam_lowry_ 6y ago>Clipboard works perfectly Which one? Secondary? And the primary does not work at all?
- pydry 6y agoOther 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.
- shawnz 6y agoOne 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.
- AshamedCaptain 6y agoWhy would VM-based WSL2 use any less RAM?
- freeone3000 6y agoWSL 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.
- Cu3PO42 6y agoThe 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.
- AshamedCaptain 6y agoYou don't need paravirtualization to do dynamic memory allocation -- all VMs do this.