-1

I am going to upgrade my wsl 1 to wsl 2 to use docker because when I run docker version I don't find anything for server: docker engine.

enter image description here

I have already activated "Windows subsystem for Linux" and "virtual machine platform" the in the "Turn windows features on or off"

enter image description here

However, hardware virtualization is disabled.

enter image description here

Then, I followed all the steps in this link and still cannot have WSL 2 on my laptop. Could you please tell me what I should do?

Here, you can find some information on my system:

enter image description here

6
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Commented Nov 14, 2022 at 21:02
  • @8Simon8 - What is the output of wsl --install? Verify that hardware virtualization is enabled.
    – Ramhound
    Commented Nov 14, 2022 at 21:06
  • @8Simon8 - We cannot help you without the output. Does the command execute successfully? If it does and you have hardware virtualization enabled then you should simply reboot your system. Take a screenshot(s) of the output, but redirecting the output of that command to a file, would be the best solution.
    – Ramhound
    Commented Nov 14, 2022 at 21:18
  • "I don't find the virtualization in the "task manager > performance" window." - Edit your question, do not reply to this comment, and indicate which processor you have. The fact you DO NOT have the an indication it if hardware virtualization enabled or disabled, indicates to me your processor DOES NOT support hardware virtualization.
    – Ramhound
    Commented Nov 14, 2022 at 21:31
  • Let us continue this discussion in chat.
    – Ramhound
    Commented Nov 14, 2022 at 21:47

1 Answer 1

0

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.

1
  • I enabled the virtual machine feature using this video. and then followed all the steps in this link, but it is still wsl 1.
    – 8Simon8
    Commented Nov 15, 2022 at 13:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .