Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Win11 + WSL2 Nested Virtualization Error

Featured Replies

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         2

What do I need to do to get rid of this message?

Things I've tried

These 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/nested

I've enabled Hyper-V on the Windows guest.

On the Unraid VM xml

  • I'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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.