Results 1 to 1 of 1

Thread: I'm unable to install WSL (Windows Subsystem for Linux)

  1. #1
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,342
    Distro
    Ubuntu

    Question I'm unable to install WSL (Windows Subsystem for Linux)

    Some time ago, I managed to successfully install Ubuntu in WSL in Windows 10 running in VirtualBox on my host Ubuntu 22.04.

    Now, I have Windows 11 running in VirtualBox on the same host Ubuntu 22.04. But, I cannot install Ubuntu in WSL.

    Notes:

    • I have turned on the guest's VirtualBox Settings > System > Processor > Extended Features > Enable Nested VT-x/AMD-V.
    • Some of the instructions come from Ubuntu's instructions.

    Here are the steps that I've tried (I've also tried variations on this). These are all in the guest Windows 11 machine.

    1. Control Panel > Programs > Programs & Features > Turn Windows features on or off > turn on:
      • Virtual Machine Platform
      • Windows Hypervisor Platform
      • Windows Subsystem for Linux
      • and then restart Windows.

    2. In PowerShell as an Administrator, run wsl --update and then restart Windows.
    3. In PowerShell as an Administrator, run wsl --install --distribution Ubuntu . This gives the following error:

    Code:
    Installing: Ubuntu
    Ubuntu has been installed.
    Launching Ubuntu...
    Installing, this may take a few minutes...
    WslRegisterDistribution failed with error: 0x80370102
    Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
    For information please visit https://aka.ms/enablevirtualization
    Unfortunately, the given link doesn't help me. It says to use this command:
    Code:
    Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
    But, alas, Set-VMProcessor is not recognised as a command.

    I didn't have any of these problems when I installed Ubuntu on WSL in Windows 10, yet in Windows 11, I get problems.

    What can I do to install it successfully, please?

    More information

    • Host: Ubuntu 22.04
    • VirtualBox version 7.0.20 r163906 (Qt5.15.3)
    • Guest: Windows 11 Home, installed with Guest Additions enabled
    • The Windows 11 installation is fairly barebones, with nothing installed other than what came on the installation ISO directly from the Microsoft website. It's fully up-to-date.

    Thank you
    Last edited by Paddy Landau; July 28th, 2024 at 05:28 PM.
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •