Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 14, 2026

Adds WSL2 configuration file to set memory/CPU limits and enable localhost forwarding.

Changes

  • .wslconfig: New file with WSL2 settings (8GB memory, 4 CPUs, 4GB swap, localhost forwarding)
  • post-install.ps1: Copy .wslconfig to $env:USERPROFILE\.wslconfig during installation with path validation
  • README.md: Download step for .wslconfig in installation script; documented settings in "What's Included"

The .wslconfig file will be automatically deployed to the user's home directory where WSL2 reads configuration at startup.

# Added to installation flow
if (Test-Path '.wslconfig') { Remove-Item -Path '.wslconfig' -Force }; 
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/.../wslconfig' -OutFile '.wslconfig' -Headers @{"Cache-Control"="no-cache"};
Original prompt

This section details on the original issue you should resolve

<issue_title>Customize .wslconfig</issue_title>
<issue_description>Use the following configuration

[wsl2]
memory=8GB # Limits VM memory
processors=4 # Limits number of CPUs
swap=4GB # Optional swap size
localhostForwarding=true
</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add customization for .wslconfig settings Add .wslconfig with WSL2 resource limits and localhost forwarding Jan 15, 2026
Copilot AI requested a review from leandromonaco January 15, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customize .wslconfig

2 participants