Site Tools


windows:wsl

wsl2

upgrading to wsl2

I upgraded to wsl2 today, it runs a lightweight Hyper-V VM with a real Linux kernel so there is no syscall translation layer needed, all programs work perfectly now, htop for example, doesn't work in wsl 1 before.

The upgrade is straight forward: wsl –set-version Ubuntu 2, it took a while to upgrade, I guess it copies large amount files to a new partition, I find turning off real time virus and thread protection in windows 10 could speed thing up, and wsl -l -v could list all workloads in the system.

Files under /mnt/c, mnt/d etc, are fully maintained by use of a filesystem bridge using the 9P protocol.

copy to windows clipboard: cat file.txt | clip.exe

bootstrap scripts

scripts: https://gist.github.com/dcai/c5418bcf9203cf19c93a

other cli commands might help: cli

windows/wsl.txt · Last modified: 2020-05-11 by dcai