Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please change your mind and allow wsl to stay running in background even if all windows are closed / minimized #11239

Open
somethingstarted opened this issue Mar 2, 2024 · 5 comments
Assignees
Labels

Comments

@somethingstarted
Copy link

Is your feature request related to a problem? Please describe.
i have functions that i would like to be able to run or ssh into but i cant. i have to RM into the computer to open up wsl and do it that way.

Describe the solution you'd like
if wsl was allowed to natively run as soon as the computer booted, and stay running, unless explicitly shutdown or disabled - it would help so many people.

Describe alternatives you've considered
only other alternative is getting a whole other computer just for linux, or ditching windows altogether.

Copy link

github-actions bot commented Mar 2, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@benhillis
Copy link
Member

This is a good suggestion. Keeping the VM alive is already mostly possible via a .wslconfig option.

[wsl2]
vmIdleTimeout=-1

It doens't look like distro idle detection is configurable, let me take a look at that.

@benhillis benhillis self-assigned this Mar 6, 2024
@biggestsonicfan
Copy link

@benhillis Distro detection would be invaluable as I mount a btrfs partition for deduplicating datasets of files added in Windows. I didn't have this problem for some reason until I recently redid my openSUSE-TW distro, as it seemingly did not shut down, but now it is, which causes issues when files are trying to be added to the now non-existent path.

@pcause
Copy link

pcause commented Jul 23, 2024

i have set VM idle to -1. which is supposed to me don't kill the VM, on the latest pre-release 2.3.11 and that doesn't seem to have any impact and the WSL instance gets killed anyway.

@james-world
Copy link

james-world commented Dec 13, 2024

  • VM != distro instance. We really need a distro-level setting to prevent / configure shutdown on idle and using filthy hacks to avoid it. The use-case of using a VM to host docker engine is one incredibly useful feature for those of us in corporate environments without docker desktop that would benefit from this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants