October 6, 2025Oct 6 I just created a Win11 VM and trying to use WSL2 within it.It's my understanding WSL2 uses a real Linux kernel running under Hyper-V (whereas WSL1 was more of a translation layer; like the inverse of WINE).When I launch it, it seems to be working but I get this error in my terminal:wsl: Nested virtualization is not supported on this machine.It seems to be working under WSL 2 though.PS C:\Users\eric> wsl --list -v NAME STATE VERSION * ub24 Running 2What do I need to do to get rid of this message?Things I've triedThese were mainly from Google's Gemini AI.On the Unraid host I verified I got a 1 returned from cat /sys/module/kvm_amd/parameters/nestedI've enabled Hyper-V on the Windows guest.On the Unraid VM xmlI've added within <cpu> section: <feature policy='require' name='vmx'/> , then later switched vmx to svm I've added within <features> section: <kvm><hidden state='on'/></kvm> Verified that <cpu> had mode='host-passthrough' set.On the Windows VM I've created a .wslconfig file in my home directory with the following contents.[wsl2] nestedVirtualization=true
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.