3 ms·
>If you need a Linux VM, I have no idea why you wouldn't run a full-blown VM software like Fusion or VitualBox, If anyone is confused about the benefits of WSL
by jasode 5y ago
>If you need a Linux VM, I have no idea why you wouldn't run a full-blown VM software like Fusion or VitualBox,
If anyone is confused about the benefits of WSL2 like the above statement, here's a video demonstrating the automatic integration of Linux+Windows. A deep link to get past the install & setup:
https://youtu.be/A0eqZujVfYU?t=5m46s https://youtu.be/A0eqZujVfYU?t=5m46s
tldw: The difference is WSL2 is more tightly integrated with Windows.
E.g. the WSL2 "Linux" environment can automatically "see" Windows drives and likewise, Windows can see into Linux mount points. You can immediately type "ls /mnt" and see the C: drive of Windows without any setup. In contrast, with full VMware/VirtualBox, I'd have to type in something like:
sudo mount -t cifs -o username=administrator //mywindesktop/c\$ /mnt/win-c
Of course, entering a command isn't a big deal for technical folks but with WSL2, you don't even bother with the ceremony of it. Also, network ports are automatically set up, so Windows & Linux can communicate with each other. It's lightning fast and seamless, unlike a full vm. Another UI convenience with WSL2 is normal Ctrl+V paste works unlike a Ubuntu vm where I had to mentally pause and remember to press Shift+Ctrl+V.
I stopped running a full Linux VM unless I need the extra isolation for investigating malware.