Salad logoSalad logo
Salad logoSalad logo
Quickstart
Troubleshooting
PC configurationI can't get Salad to downloadRestoring .wslconfig to Salad defaultRestoring DISMRe-enable PowerShellCorrect system time error
Discord
TroubleshootingPC Configuration

Restoring .wslconfig to Salad default

Put the .wslconfig file back to what Salad wrote, so the container environment starts again after manual WSL edits.

.wslconfig is a small text file in your user folder that configures WSL. Salad writes it when it sets up the container environment, and the only thing Salad puts in it is the memory limit for the container environment, under a [wsl2] header. Anything else in that file was added by you, by another program, or by a guide found online, and extra settings are the usual cause of these symptoms:

  • The container environment fails on every start, and the logs or notification mention address already in use. This is what a networkingMode or kernelCommandLine line does.
  • Container jobs cannot reach the network while Windows is online.
  • The Chopping Power bar is incomplete because the memory line was changed or removed.

Screenshot of an incomplete Chopping Power bar

Fix: keep only what Salad wrote

  1. Stop Salad.

  2. Open File Explorer and click in the address bar at the top.

    Screenshot of File Explorer pointing to the URL bar

  3. Type %UserProfile% and press Enter. If you do not see .wslconfig, turn on View > Show > Hidden items.

    Screenshot of File Explorer showing how to enable Hidden Items

    Screenshot of File Explorer showing the .WSLConfig file

  4. Open .wslconfig with Notepad. Delete every line except the [wsl2] header and the memory= line, so the file looks like this (your number will differ):

    Screenshot of Notepad with example value

    [wsl2]
    memory=24700MB

    Do not add a networkingMode line, a kernelCommandLine line, or any other setting, whatever a forum post recommends. Leave the memory value as Salad set it; raising it does not earn more and can starve Windows.

  5. Save the file, then open PowerShell and run wsl --shutdown so WSL reloads the configuration.

  6. Start Salad.

If the memory line is missing or you are unsure what it was, delete the whole .wslconfig file, run wsl --shutdown, and start Salad: it writes the file again when it prepares the container environment.

The WSL Settings app

Recent WSL versions include a WSL Settings app (search for it in the Start menu). It edits the same .wslconfig file. It is fine for checking the Memory Size value Salad set, but do not change networking or other settings in it; any change there lands in .wslconfig and the fix above applies.

Screenshot of Windows Search looking for WSL Settings

Screenshot of WSL Settings app

Still stuck?

If the container environment still fails after restoring the file and rebooting, follow Failed to start container environment, then send Salad Support your machine ID, a screenshot of the notification, your zipped logs and the contents of your .wslconfig. See How to create a support ticket.

Edit on GitHub

Last updated on

I can't get Salad to download

What to do when the Salad installer will not download: browser download blocks, antivirus, cache and trying another browser.

Restoring DISM

Repair a broken DISM with SFC and DISM commands, or a Windows repair install, when Salad reports a storage calculation error.

On this page

Fix: keep only what Salad wroteThe WSL Settings appStill stuck?