Skip to content

Commit a46dcf1

Browse files
authored
Update README with updated WSL2 nested virtualization setup (#567)
Updated instructions for configuring WSL2 on newer versions.
1 parent 4459fff commit a46dcf1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,15 @@ Credit goes to [Guillaume - The Parallel Interface blog](https://www.paralint.co
100100
```
101101
[boot]
102102
command = /bin/bash -c 'chown -v root:kvm /dev/kvm && chmod 660 /dev/kvm'
103+
```
103104
105+
Then, using PowerShell, open a notepad on `notepad $env:USERPROFILE\.wslconfig`. Inside, put these other flags:
106+
```
104107
[wsl2]
105108
nestedVirtualization=true
106109
```
107-
3. Restart WSL2 via CMD prompt or Powershell
110+
111+
4. Restart WSL2 via CMD prompt or Powershell
108112
```
109113
wsl --shutdown
110114
```
@@ -114,6 +118,8 @@ Credit goes to [Guillaume - The Parallel Interface blog](https://www.paralint.co
114118
115119
`nestedVirtualization` flag is only available to Windows 11.
116120
121+
If this setup does not work, you may have an old WSL version. In that case, ignore `\.wslconfig` and put everything on `/etc/wsl.conf`, including the `[wsl2]` flag.
122+
117123
Use-Cases
118124
---------
119125

0 commit comments

Comments
 (0)