This is a really short post covering the cause and fix for slow/poor VirtualBox VM performance on Windows hosts.
So in one of my previous posts I’ve enabled a Windows feature knowing that it tends to cause VirtualBox VMs to be extremely sluggish and even freeze and crash when enabled.
Symptoms
In my experience, the main symptoms are VirtualBox VMs being sluggish, freezing and even crashing.
What’s the cause of slow VirtualBox VM performance?
The Windows feature that causes this issue is “Virtual Machine Platform” and is required for WSL and WSL2.
If you plan on using WSL and VirtualBox VMs, you can, just not at the same time, since WSL absolutely requires Virtual Machine Platform to be enabled, while VirtualBox requires the exact opposite.
The fix
GUI
If you prefer to use the GUI to do this, just search the Start menu for “Turn Windows features on or off” and press Enter when it’s highlighted.
Alternatively, you can find this menu in Control Panel\All Control Panel Items\Programs and Features, it will be on the left hand side of the window.
Command line
If you’d rather do it from CMD or PowerShell, just open either of them as admin and run the following:
1 | dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart |
When you actually need it enabled
You can just check it in the GUI or run the following command in PS or CMD opened as admin:
1 | dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart |
Conclusion
I find it a bit funny how a feature named “Virtual Machine Platform” ends up causing slow VirtualBox VM performance, but it is what it is 🙂