Skip to content
Search

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

[wsl2]
memory=8GB
processors=4
swap=2GB

Enabling WSL2 Nested Virtualization

[wsl2]
nestedVirtualization=true

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.

## WSL 종료
wsl --shutdown

## ... 그리고 시작:
wsl -d Ubuntu-24.04

See also

author Zer0 sitemap