wsl2

By chimo on (updated on )

I have to use Windows at work, so naturally I try to do as much as possible in WSL (Windows Subsystem for Linux). These are a few things a learned about WSL v2 recently:

  1. If network connectivity works fine in WSL v1 but you can’t reach anything after upgrading to WSL v2, try adding the following to your .wslconfig file:

    [wsl2]
    networkingMode=mirrored

  2. If accessing the filesystem worked fine on WSL v1, but is painfully slow on WSL v2, this is a known issue. If you can, move files you work on frequently to the guest distro’s disk (ex: $HOME) instead of /mnt/c/
  3. If your ruff VSCode extension doesn’t work, try checking the “Remote: Download Extension Locally” checkbox in the settings.