Skip to content

WSL2 setup

WSL Dashboard ကို အသုံးမပြုမီ, Windows system တွင် WSL 2 ကို မှန်ကန်စွာဖွင့်ပြီး configure လုပ်ထားရပါမည်။

1. System လိုအပ်ချက်များကို စစ်ဆေးပါ

  • Windows 10: ဗားရှင်း 1903 သို့မဟုတ်နောက်ပိုင်း, Build 18362 သို့မဟုတ် ပိုမြင့်။
  • Windows 11: ဗားရှင်းအားလုံးကို ပံ့ပိုးထားသည်။

2. Hardware virtualization ကိုဖွင့်ပါ

3. Windows features ကိုဖွင့်ပါ

နည်းလမ်း A: GUI မှတစ်ဆင့် (အကြံပြုထားသည်)

  1. Win + S နှိပ်ပါ, "Turn Windows features on or off" ကိုရှာပါ။
  2. Windows Subsystem for Linux နှင့် Virtual Machine Platform ကို check လုပ်ပါ။
  3. "OK" နှိပ်ပြီး restart လုပ်ပါ.

နည်းလမ်း B: Command line မှတစ်ဆင့် (admin)

powershell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

4. WSL kernel ထည့်သွင်း / update လုပ်ပါ

5. WSL 2 ကို default version အဖြစ်သတ်မှတ်ပါ

powershell
wsl --set-default-version 2

FAQ

  • Error 0x80370102: BIOS တွင် virtualization ဖွင့်မထားခြင်း သို့မဟုတ် Hyper-V နှင့် ပဋိပက္ခဖြစ်ခြင်း။