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

WSL 1 slow startup #11053

Closed
1 of 2 tasks
pedrohgmacedo opened this issue Jan 21, 2024 · 5 comments
Closed
1 of 2 tasks

WSL 1 slow startup #11053

pedrohgmacedo opened this issue Jan 21, 2024 · 5 comments

Comments

@pedrohgmacedo
Copy link

Windows Version

Microsoft Windows [Version 10.0.22631.3007]

WSL Version

PS C:\Users\pedro> wsl --version Invalid command line option: --version Copyright (c) Microsoft Corporation. All rights reserved. Usage: wsl.exe [Argument] [Options...] [CommandLine] Arguments for running Linux binaries: If no command line is provided, wsl.exe launches the default shell. --exec, -e Execute the specified command without using the default Linux shell. -- Pass the remaining command line as is. Options: --cd Sets the specified directory as the current working directory. If ~ is used the Linux user's home path will be used. If the path begins with a / character, it will be interpreted as an absolute Linux path. Otherwise, the value must be an absolute Windows path. --distribution, -d Run the specified distribution. --user, -u Run as the specified user. --system Launches a shell for the system distribution. Arguments for managing Windows Subsystem for Linux: --help Display usage information. --install [Options] Install additional Windows Subsystem for Linux distributions. For a list of valid distributions, use 'wsl --list --online'. Options: --distribution, -d [Argument] Downloads and installs a distribution by name. Arguments: A valid distribution name (not case sensitive). Examples: wsl --install -d Ubuntu wsl --install --distribution Debian --no-launch, -n Do not launch the distribution after install. --mount Attaches and mounts a physical disk in all WSL2 distributions. Options: --bare Attach the disk to WSL2, but don't mount it. --type Filesystem to use when mounting a disk, if not specified defaults to ext4. --options Additional mount options. --partition Index of the partition to mount, if not specified defaults to the whole disk. --set-default-version Changes the default install version for new distributions. --shutdown Immediately terminates all running distributions and the WSL 2 lightweight utility virtual machine. --status Show the status of Windows Subsystem for Linux. --unmount [Disk] Unmounts and detaches a disk from all WSL2 distributions. Unmounts and detaches all disks if called without argument. --update [Options] If no options are specified, download and install WSL from the Microsoft Store. Options: --rollback Revert to the previous version of the WSL 2 kernel. --inbox Only update the inbox WSL 2 kernel. Do not install WSL from the Microsoft Store. --web-download Download the most recent version of WSL from the internet instead of the Microsoft Store. Arguments for managing distributions in Windows Subsystem for Linux: --export Exports the distribution to a tar file. The filename can be - for standard output. --import [Options] Imports the specified tar file as a new distribution. The filename can be - for standard input. Options: --version Specifies the version to use for the new distribution. --list, -l [Options] Lists distributions. Options: --all List all distributions, including distributions that are currently being installed or uninstalled. --running List only distributions that are currently running. --quiet, -q Only show distribution names. --verbose, -v Show detailed information about all distributions. --online, -o Displays a list of available distributions for install with 'wsl --install'. --set-default, -s Sets the distribution as the default. --set-version Changes the version of the specified distribution. --terminate, -t Terminates the specified distribution. --unregister Unregisters the distribution and deletes the root filesystem. PS C:\Users\pedro>

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

wsl -d Ubuntu

Takes over a minute to start

Expected Behavior

Starts instantly

Actual Behavior

Takes over a minute to start.

Diagnostic Logs

No response

Copy link

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.

@pedrohgmacedo
Copy link
Author

Issue #6765 does not apply because it has WSL 2 in the title.

@ghost ghost added the wsl1 label Jan 23, 2024
@OneBlue
Copy link
Collaborator

OneBlue commented Jan 23, 2024

/logs

Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue.

Thank you!

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

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

No branches or pull requests

2 participants