To enable Virtual Machine Platform, press Start, type Windows features, open Turn Windows features on or off, tick Virtual Machine Platform, select OK and restart if asked. The same thing in one command, from PowerShell opened as Administrator, is dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart.
The feature is one of two switches. The other is hardware virtualization in your BIOS or UEFI, which Windows cannot turn on for you. Both are covered below.
How to enable Virtual Machine Platform from Windows features
- Open Start, type
Windows features, and select Turn Windows features on or off from the results. - In the Windows Features window, find Virtual Machine Platform and tick it.
- Select OK. You might need to restart your PC.
These are the steps from Microsoft's "Enable virtualization on Windows" page. If you cannot find the entry in the list, see "If the option is missing or the error persists" below.
How to enable Virtual Machine Platform with DISM or PowerShell
Open PowerShell as Administrator (Start menu, PowerShell, right-click, Run as Administrator) and run:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
This is the command in Microsoft's manual WSL installation guide, where it is Step 3. /norestart stops DISM from rebooting the PC, so restart it yourself afterwards. Microsoft's guide says to restart to complete the WSL install and update to WSL 2.
The same guide enables the Windows Subsystem for Linux with a similar command, for older Windows builds that do not support wsl --install:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Why you need it: WSL 2 and other virtual machine tools
Microsoft's WSL documentation says that before installing WSL 2 you must enable the Virtual Machine Platform optional feature. The most common reason people search for this is a WSL error that names it. The modern shortcut is wsl --install, covered in How to Install WSL on Windows 10 and 11. The manual route above is for older builds, or when the install stops with an error.
Microsoft's support page describes virtualization in general as what lets a Windows device emulate a different operating system, like Android or Linux. It says the steps above might apply if you upgraded your PC from Windows 10 to Windows 11.
Check that hardware virtualization is on first
Microsoft's WSL manual says your machine needs virtualization capabilities to use the Virtual Machine Platform feature. Enabling the Windows feature does nothing useful if the firmware setting is off. On Windows, run this in PowerShell or Command Prompt and read the Hyper-V Requirements section:
systeminfo.exe
If Windows is already running on a hypervisor, that section instead reads A hypervisor has been detected. Features required for Hyper-V will not be displayed., which means virtualization is on. For the BIOS/UEFI steps and the setting names for Intel and AMD, see Hardware Virtualization: How to Turn It On in BIOS/UEFI.
Error 0x80370102: the virtual machine could not be started
The exact message from Microsoft's WSL troubleshooting page is:
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
Microsoft's instructions are to enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS. Its checklist, in order:
- Check the Hyper-V system requirements.
- If the machine is itself a virtual machine, enable nested virtualization from the host. In an elevated PowerShell on the Hyper-V host, run
Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true, replacing<VMName>with the name shown in Hyper-V Manager. - Follow your PC manufacturer's guidance to enable virtualization, usually in the BIOS.
- Restart after enabling the Virtual Machine Platform optional component.
- Make sure the hypervisor launch is enabled in the boot configuration (next section).
- If you have third-party hypervisors, use versions that support Hyper-V (VMware 15.5.5 or later, VirtualBox 6 or later) or turn them off.
- On an Azure virtual machine, check that Trusted Launch is disabled. Microsoft says nested virtualization is not supported on Azure virtual machines with Trusted Launch.
Check the hypervisor launch type
If everything above is on but the error remains, check the boot configuration. In an elevated PowerShell:
bcdedit /enum | findstr -i hypervisorlaunchtype
If the output shows hypervisorlaunchtype Off, the hypervisor is disabled. Turn it on and restart:
bcdedit /set hypervisorlaunchtype Auto
If the option is missing or the error persists
- Installation fails with 0x80070003 or 0x80370102. Microsoft says to make sure virtualization is enabled in the BIOS, most likely under CPU related options.
- Old processor. WSL 2 needs second level address translation (SLAT), introduced with Intel Nehalem (1st generation Core) and AMD Opteron. Microsoft says older CPUs such as the Intel Core 2 Duo cannot run WSL 2 even if the Virtual Machine Platform installs successfully.
- Old Windows build. For WSL 2 on x64 Windows 10 you need version 1903 or later with build 18362.1049 or later. On ARM64 you need version 2004 or later, build 19041 or later. Windows 11 meets this. Press Windows key + R, type
winverand select OK to see your version. - Still stuck. The troubleshooting page also notes that the Windows Subsystem for Linux component itself must be enabled, which is a separate feature from Virtual Machine Platform.
Frequently asked questions
- Do I need to restart after enabling Virtual Machine Platform?
- Usually yes. Microsoft says you might need to restart your PC after selecting the feature in Turn Windows features on or off. The DISM command Microsoft documents uses /norestart, so it never restarts for you, and Microsoft's WSL instructions say to restart your machine afterwards to complete the install.
- Is Virtual Machine Platform the same as Hyper-V?
- No. They are separate entries in the Windows features list. Microsoft's WSL 2 manual install steps tell you to enable Virtual Machine Platform on its own, without Hyper-V. Both rely on hardware virtualization being switched on in the firmware.
- Why is Virtual Machine Platform enabled but WSL 2 still fails?
- The Windows feature only installs the software side. Microsoft's troubleshooting page lists the other causes: virtualization disabled in the BIOS or UEFI, a processor without second level address translation (SLAT), the hypervisor launch type set to Off, or an older third-party hypervisor such as VirtualBox before version 6.
- Do I need administrator rights to enable it?
- Yes for the command line: Microsoft's instructions say to open PowerShell as Administrator before running the DISM command. The Windows features dialog also changes system components, so expect a permission prompt there.