Setting WSL to Version 2

2022/11/19

The other day, I was working on a Surface Pro and found out that the WSL on the device was version 1. There were a few stuff that I wanted to try out, including playing with Docker on Windows with WSL backend. But, inorder for Docker to behave nicely, I needed to convert WSL to version 2.

I set-off by uninstalling the old WSL following instructions from Microsoft. I wanted to try out the Ubuntu 22.04 LTS from the Microsoft Store as my shiny new WSL2 and to my dismay, I found that the installation was exiting with a weird error code 0x80370114.

A quick search brought me to this article which had a solution, but not quite. The solution mentioned in the post wanted me to look for the executable vmcompute.exe. Since I could not find this binary, I switched over to the System settings tab and disabled Control flow guard globally.

This helped me install my brand new WSL2. Do remember to turn CFG back on once you are done.