However, I the virtualization is disabled.
You need to enabled Hardware Virtualization, in order to use Virtual Machine Platform
, which is required to convert your WSL1 instance to WSL2. Until you enable Hardware Virtualization on your machine you will be unable to convert your WSL1 instance.
Before installing WSL 2, you must enable the Virtual Machine Platform optional feature. Your machine will require virtualization capabilities to use this feature.
Source: Enable Virtual Machine feature
After you enable Hardware Virtualization, run wsl --install
in an elevated PowerShell prompt, in order to enable everything required for WSL2 and then restart your machine.
You can now install everything you need to run WSL with a single command. Open PowerShell or Windows Command Prompt in administrator mode by right-clicking and selecting "Run as administrator", enter the wsl --install command, then restart your machine.
Source: Install WSL command
It is worth pointing out you can only run wsl --install
if WSL is not installed, so the simplest solution to not having everything you required installed, is to uninstall Windows Subsystem for Linux then run the command.
The above command only works if WSL is not installed at all, if you run wsl --install and see the WSL help text, please try running wsl --list --online to see a list of available distros and run wsl --install -d to install a distro. To uninstall WSL, see Uninstall legacy version of WSL or unregister or uninstall a Linux distribution.
wsl --install
? Verify that hardware virtualization is enabled.