Wslconfig
lastmod 2025-12-23created 2025-12-154 edits
WSL settings can be configured in the file at %USERPROFILE%\.wslconfig (~/.wslconfig in Linux terms).
Example
Enabling WSL2 Nested Virtualization
How to apply it in powershell:
# WSL2에 대한 nested virtualization 활성화
Set-VMProcessor -VMName <WSL2-VM-Name> -ExposeVirtualizationExtensions $true
Applying changes
Restart WSL2 after changing the settings.