WSL2 is supported from Windows 10 version 1903 already, which everyone should be running by now
Since on top of all that, WSL2 is much more stable for our linux containers, I think it's time to force Hyper-V out.
Todo's for this issue:
Step 1. Disable Hyper-V fallback and always bring up WSL2 installation (even though that means opening a browser tab asking user to download the WSL2 exe and install it manually).
Step 2: Detect if Virtualization is not enabled, there must be a Windows System call for that, it's shown in the taskmanager's performance tab:
Step 3: Continue investigating how an unattended WSL2 installation could be achieved: I opened microsoft/WSL#6201, the answer there refers to "wsl --install" which should solve this indeed.
Since on top of all that, WSL2 is much more stable for our linux containers, I think it's time to force Hyper-V out.
Todo's for this issue: Step 1. Disable Hyper-V fallback and always bring up WSL2 installation (even though that means opening a browser tab asking user to download the WSL2 exe and install it manually). Step 2: Detect if Virtualization is not enabled, there must be a Windows System call for that, it's shown in the taskmanager's performance tab:
Step 3: Continue investigating how an unattended WSL2 installation could be achieved: I opened microsoft/WSL#6201, the answer there refers to "wsl --install" which should solve this indeed.
Watch https://github.com/microsoft/WSL/discussions/6201#event-13453
So downloading the WSL2.exe and installing via Powershell is already possible, just that the user would need confirm an admin prompt.