From a46dcf18258f6bd6bbf0b34db22e184db8d4099e Mon Sep 17 00:00:00 2001 From: Luca Fabbian Date: Mon, 2 Feb 2026 09:11:07 +0100 Subject: [PATCH] Update README with updated WSL2 nested virtualization setup (#567) Updated instructions for configuring WSL2 on newer versions. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ca8c70f..908eb47 100644 --- a/README.md +++ b/README.md @@ -100,11 +100,15 @@ Credit goes to [Guillaume - The Parallel Interface blog](https://www.paralint.co ``` [boot] command = /bin/bash -c 'chown -v root:kvm /dev/kvm && chmod 660 /dev/kvm' + ``` + Then, using PowerShell, open a notepad on `notepad $env:USERPROFILE\.wslconfig`. Inside, put these other flags: + ``` [wsl2] nestedVirtualization=true ``` -3. Restart WSL2 via CMD prompt or Powershell + +4. Restart WSL2 via CMD prompt or Powershell ``` wsl --shutdown ``` @@ -114,6 +118,8 @@ Credit goes to [Guillaume - The Parallel Interface blog](https://www.paralint.co `nestedVirtualization` flag is only available to Windows 11. +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. + Use-Cases ---------