You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After executing the command "wsl --shutdown" and "wsl", the system displays the following message.
PS C:\WINDOWS\system32> wsl
The operation timed out because a response was not received from the virtual machine or container.
Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT
I modify the content of the file ".wslconfig" as below.
It seems well but there is also a line message shown.
wsl: Invalid escaped character: 'U' in C:\Users\XXX YY ZZZ.wslconfig:2
I am not sure if " kernel=C:\Users\XXX YY ZZZ\bzImage" is correct. Would you pls give the comments? Thanks!
Expected Behavior
No error messages are shown after executing the command "wsl".
@piggy2011 user \\ instead for kernel path, like kernel=C:\\Users\\XXX YY ZZZ\\bzImage Also, if your username contains spaces, need to be escaped.
To specify a path with spaces in the .wslconfig file for WSL2, I use double quotes to enclose the path. kernel="C:\Users\XXX YY ZZZ\bzImage"
Now, the problem is solved.
Windows Version
Microsoft Windows [Version 10.0.22621.1702]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
kali-linux 2023.2
Other Software
No response
Repro Steps
To access USB Storage Device on WSL2, I follow the instruction https://github.com/jovton/USB-Storage-on-WSL2/blob/master/README.md . I create the file ".wslconfig" on my Windows host's "Users\your-user-name" folder and the content is as below
After executing the command "wsl --shutdown" and "wsl", the system displays the following message.
PS C:\WINDOWS\system32> wsl
The operation timed out because a response was not received from the virtual machine or container.
Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT
I modify the content of the file ".wslconfig" as below.
It seems well but there is also a line message shown.
wsl: Invalid escaped character: 'U' in C:\Users\XXX YY ZZZ.wslconfig:2
I am not sure if " kernel=C:\Users\XXX YY ZZZ\bzImage" is correct. Would you pls give the comments? Thanks!
Expected Behavior
No error messages are shown after executing the command "wsl".
Actual Behavior
Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT
and
wsl: Invalid escaped character: 'U' in C:\Users\XXX YY ZZZ.wslconfig:2
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: