Skip to content

vmIdleTimeout has no effect #8654

@Seeky90

Description

@Seeky90

Version

Version 10.0.22000.739

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

Into %userprofile%/.wslconfig add:
[wsl2] vmIdleTimeout=-1
in order to completely disable the timeout.

In Powershell run
wsl --shutdown

Start WSL by opening a Terminal.
Close the Terminal so that nothing is running.

Check the current state of the machine by running in powershell:
wsl --list --verbose

It should show STATE Running.

Expected Behavior

Check again, after for example 5 minutes.
It should show STATE Running.

Actual Behavior

Check again, after for example 5 minutes.
It shows the STATE Stopped.

Diagnostic Logs

#8642

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions