I’ve been trying to run both Nox and Ubuntu via WSL2 (Windows Subsystem for Linux) for some time with no success. There are posts all over the Internet telling to you install Hyper-V, remove Hyper-V, install Windows Hypervisor Platform, remove Windows Hypervisor Platform, etc., etc. and none of them have provided me with a good solution.
So I played around on my own and have come to the conclusion/method below to be able to do this (I like Nox better than BlueStacks for reasons like speed, size, and some other reasons). First of all, WSL2 running Ubuntu, from all of my testing on Windows 11, does NOT require Hyper-V nor any part of it, does NOT require Windows Hypervisor Platform, and does NOT require Windows Sandbox. What it does require is the Windows Subsystem for Linux and the Virtual Machine Platform (which can be seen in the image below). What Nox doesn’t like is the latter.

So what I do is turn that feature on when I want to run Ubuntu via WSL2, and I turn it off when I want to run Nox. Yes, unfortunately it does require a reboot to turn it off or on and have WSL2 or Nox run, but it’s a small price to pay IMO to have them both (pretty much đ ) available when I need them. The commands below are what I use to turn the Virtual Machine Platform on and off in Windows 11. You could just check and uncheck the feature in the Windows Features list above if you like, but the commands below work from either a (I use an elevated) command prompt or from PowerShell (I run it as administrator). You’ll have to accept the reboot request as I mentioned above.
- dism.exe /online /enable-feature /featurename:VirtualMachinePlatform
- dism.exe /online /disable-feature /featurename:VirtualMachinePlatform
You can add the /norestart parameter to either/both of those commands, but the change won’t take full effect until you’ve rebooted your computer. So I just leave the option I use the most often in effect until I need to use the other. It’s not “pretty,” but it gets the job done! Of course, you can also put each those commands into separate batch files and create shortcuts for them and then just double-click the shortcut icon when you need to switch. My two cents on all of this … hopefully it’s helpful to someone else!
– Mark
P.S. If you ever mess up and fire up the wrong app, no worries. Nox will eventually pop-up a prompt to “Disable Hyper-V,” just make sure you cancel it, which will quit Nox. Then switch the feature to disabled and reboot. WSL2 will spit out some nasty lines in a Window, looking like it’s totally broke. However, once you switch the feature to enabled and reboot, voila, it’s working fine again. I have attached a text file which automatically switches the Virtual Machine Platform back and forth. Just download it, save it, and rename it to a .cmd file instead of .txt and then you can create a shortcut to it on your desktop. If you do, be sure to have the shortcut’s properties set to “Run as administrator.” You may also want to take the “REM ” off the first line in the file (WP barked if I took it out and tried to upload it).