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
Copy file name to clipboardExpand all lines: WSL/troubleshooting.md
+56-23Lines changed: 56 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,22 +9,21 @@ ms.localizationpriority: high
9
9
10
10
# Troubleshooting Windows Subsystem for Linux
11
11
12
-
For support with issues related to WSL, please see our GitHub repo: https://github.com/Microsoft/wsl/issues
12
+
For support with issues related to WSL, please see our [WSL product repo on GitHub](https://github.com/Microsoft/wsl/issues).
13
13
14
14
## Search for any existing issues related to your problem
15
15
16
-
For technical issues, use the product repo: https://github.com/Microsoft/wsl/issues
16
+
For technical issues, use the [product repo](https://github.com/Microsoft/wsl/issues).
17
17
18
-
For issues related to the contents of this documentation, use the docs repo: https://github.com/MicrosoftDocs/wsl/issues
18
+
For issues related to the contents of this documentation, use the [docs repo](https://github.com/MicrosoftDocs/wsl/issues).
19
19
20
20
## Submit a bug report
21
21
22
22
For bugs related to WSL functions or features, file an issue in the product repo: https://github.com/Microsoft/wsl/issues
23
23
24
24
## Submit a feature request
25
25
26
-
To request a new feature related to WSL functionality or compatibility, file an issue in the product repo:
27
-
https://github.com/Microsoft/wsl/issues
26
+
To request a new feature related to WSL functionality or compatibility, [file an issue in the product repo](https://github.com/Microsoft/wsl/issues).
28
27
29
28
## Contribute to the docs
30
29
@@ -36,42 +35,46 @@ Lastly, if your issue is related to the Windows Terminal, Windows Console, or th
36
35
37
36
## Common issues
38
37
39
-
### I'm on Windows 10 version 1903 and I still do not see options for WSL 2.
38
+
### I'm on Windows 10 version 1903 and I still do not see options for WSL 2
40
39
41
-
This is likely because your machine has not yet taken the backport for WSL 2. The simplest way to resolve this is by going to Windows Settings and clicking 'Check for Updates' to install the latest updates on your system. You can view the full instructions on taking the backport[here](https://devblogs.microsoft.com/commandline/wsl-2-support-is-coming-to-windows-10-versions-1903-and-1909/#how-do-i-get-it).
40
+
This is likely because your machine has not yet taken the backport for WSL 2. The simplest way to resolve this is by going to Windows Settings and clicking 'Check for Updates' to install the latest updates on your system. See [the full instructions on taking the backport](https://devblogs.microsoft.com/commandline/wsl-2-support-is-coming-to-windows-10-versions-1903-and-1909/#how-do-i-get-it).
42
41
43
-
If you hit 'Check for Updates' and still do not receive the update you can install KB KB4566116 manually by [following this link](https://www.catalog.update.microsoft.com/Search.aspx?q=KB4566116).
42
+
If you hit 'Check for Updates' and still do not receive the update you can [install KB KB4566116 manually](https://www.catalog.update.microsoft.com/Search.aspx?q=KB4566116).
44
43
45
44
### Error: 0x1bc when `wsl --set-default-version 2`
45
+
46
46
This may happen when 'Display Language' or 'System Locale' setting is not English.
47
-
```
47
+
48
+
```powershell
48
49
wsl --set-default-version 2
49
50
Error: 0x1bc
50
51
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
51
52
```
52
53
53
54
THe actual error for `0x1bc` is:
54
-
```
55
+
56
+
```powershell
55
57
WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel
56
58
```
57
59
58
60
For more information, please refer to issue [5749](https://github.com/microsoft/WSL/issues/5749)
59
61
60
-
61
62
### Cannot access WSL files from Windows
63
+
62
64
A 9p protocol file server provides the service on the Linux side to allow Windows to access the Linux file system. If you cannot access WSL using `\\wsl$` on Windows, it could be because 9P did not start correctly.
63
65
64
-
To check this, you can check the start up logs using: `dmesg |grep 9p`, and this will show you any errors. A successfull output looks like the following:
66
+
To check this, you can check the start up logs using: `dmesg |grep 9p`, and this will show you any errors. A successfull output looks like the following:
65
67
66
-
```
68
+
```bash
67
69
[ 0.363323] 9p: Installing v9fs 9p2000 file system support
68
70
[ 0.363336] FS-Cache: Netfs '9p' registered for caching
69
71
[ 0.398989] 9pnet: Installing 9P2000 support
70
72
```
71
73
72
74
Please see [this Github thread](https://github.com/microsoft/wsl/issues/5307) for further discussion on this issue.
73
75
74
-
### Can't start WSL 2 distro and only see 'WSL 2' in output
76
+
### Can't start WSL 2 distribution and only see 'WSL 2' in output
77
+
75
78
If your display language is not English, then it is possible you are seeing a truncated version of an error text.
76
79
77
80
```powershell
@@ -81,19 +84,49 @@ WSL 2
81
84
82
85
To resolve this issue, please visit `https://aka.ms/wsl2kernel` and install the kernel manually by following the directions on that doc page.
83
86
84
-
### "Error: 0x80370102 The virtual machine could not be started because a required feature is not installed."
87
+
### `command not found` when executing windows .exe in linux
88
+
89
+
Users can run Windows executables like notepad.exe directly from Linux. Sometimes, you may hit "command not found" like below:
90
+
91
+
```Bash
92
+
$ notepad.exe
93
+
-bash: notepad.exe: command not found
94
+
```
95
+
96
+
If there are no win32 paths in your $PATH, interop isn't going to find the .exe.
97
+
You can verify it by running `echo $PATH` in Linux. It's expected that you will see a win32 path (for example, /mnt/c/Windows) in the output.
98
+
If you can't see any Windows paths then most likely your PATH is being overwritten by your Linux shell.
99
+
100
+
Here is a an example that /etc/profile on Debian contributed to the problem:
The correct way on Debian is to remove above lines.
111
+
You may also append $PATH during the assignment like below, but this lead to some [other problems](https://salsa.debian.org/debian/WSL/-/commit/7611edba482fd0b3f67143aa0fc1e2cc1d4100a6) with WSL and VSCode..
112
+
113
+
For more information, see issue [5296](https://github.com/microsoft/WSL/issues/5296) and issue [5779](https://github.com/microsoft/WSL/issues/5779).
114
+
115
+
### Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS
85
116
86
117
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
87
118
88
119
1. Check the [Hyper-V system requirements](/windows-server/virtualization/hyper-v/system-requirements-for-hyper-v-on-windows#:~:text=on%20Windows%20Server.-,General%20requirements,the%20processor%20must%20have%20SLAT.)
89
-
2. If your machine is a VM, please enable [nested virtualization](./wsl2-faq.md#can-i-run-wsl-2-in-a-virtual-machine) manually. Launch powershell with admin, and run:
2. If your machine is a VM, please enable [nested virtualization](./wsl2-faq.md#can-i-run-wsl-2-in-a-virtual-machine) manually. Launch powershell with admin, and run:
3. Please follow guidelines from your PC's manufacturer on how to enable virtualization. In general, this can involve using the system BIOS to ensure that these features are enabled on your CPU. Instructions for this process can vary from machine to machine, please see [this article](https://www.bleepingcomputer.com/tutorials/how-to-enable-cpu-virtualization-in-your-computer-bios/) from Bleeping Computer for an example.
96
-
4. Restart your machine after enabling the `Virtual Machine Platform` optional component.
127
+
3. Please follow guidelines from your PC's manufacturer on how to enable virtualization. In general, this can involve using the system BIOS to ensure that these features are enabled on your CPU. Instructions for this process can vary from machine to machine, please see [this article](https://www.bleepingcomputer.com/tutorials/how-to-enable-cpu-virtualization-in-your-computer-bios/) from Bleeping Computer for an example.
128
+
129
+
4. Restart your machine after enabling the `Virtual Machine Platform` optional component.
97
130
98
131
### Bash loses network connectivity once connected to a VPN
99
132
@@ -311,7 +344,7 @@ This error is related to being in a bad install state. Please complete the follo
0 commit comments