opendexnetwork / opendex-desktop

App to set up a environment, provide liquidity, trade and access remote OpenDEX environments 🖥️
https://opendex-desktop.app
GNU Affero General Public License v3.0
2 stars 1 forks source link

Windows: Enforce WSL2 #8

Open stackingcats opened 3 years ago

stackingcats commented 3 years ago

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: image 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.