Unable to Install WSL/Hyper-V on New Machine: Troubleshooting Ubuntu Installation

Abstract: Resolve WSL and Hyper-V installation failures on new machines by verifying BIOS virtualization, enabling Windows features, and updating the kernel.

Created: 2026-10-12 by

WSL and Hyper-V installation failures on new machines often stem from disabled virtualization features, outdated Windows components, or conflicting security software. This guide provides a step-by-step diagnostic process to resolve these issues, ensuring your Ubuntu environment installs correctly without errors.

Verifying Virtualization Support

Before attempting any software installation, you must confirm that the underlying hardware supports virtualization. Many modern processors include this feature by default, but it is frequently disabled in the BIOS or UEFI firmware settings. If virtualization is turned off at the hardware level, no amount of software tweaking will allow WSL or Hyper-V to function. Open the Task Manager by pressing Ctrl + Shift + Esc. Navigate to the Performance tab and select CPU. Look for a line item labeled "Virtualization" near the bottom of the details pane. If it says "Disabled," you need to restart your computer and enter the BIOS/UEFI setup menu. The key to access this varies by manufacturer, commonly being F2, Delete, or F10. Once inside, locate the Virtualization Technology setting (often abbreviated as VT-x for Intel or AMD-V for AMD) and enable it. Save changes and reboot. If virtualization is already enabled, proceed to check the Windows Hypervisor platform status. Open PowerShell as an Administrator and run the command systeminfo. Scroll down to the "Hyper-V Requirements" section. All items should report "Yes" or "Detected." If any item reports "No," there is a configuration mismatch preventing the hypervisor from loading.

Enabling Required Windows Features

WSL relies on specific Windows subsystems that may not be active on a fresh installation. You can verify and enable these features using the Command Prompt with administrative privileges. Run the following command to ensure all necessary components are present:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /featurename:VirtualMachinePlatform /all /norestart
After running this command, you must restart your machine for the changes to take effect. This single command enables both the Linux subsystem and the Hyper-V virtualization platform required for WSL2. Without the VirtualMachinePlatform component, WSL2 cannot create the lightweight utility VM that runs the Linux kernel. For users who prefer a graphical interface, you can also use the "Turn Windows features on or off" dialog from the Control Panel. Ensure that "Windows Subsystem for Linux" and "Virtual Machine Platform" are checked. Do not confuse these with "Hyper-V," which is a separate enterprise-grade feature set. While related, enabling Hyper-V explicitly is not always required for basic WSL2 functionality, though it does not cause conflicts if enabled.

Updating the Virtual Machine Platform

Even after enabling features, you might encounter errors related to missing drivers or outdated kernel packages. Microsoft regularly releases updates to the Virtual Machine Platform to improve compatibility with newer hardware. Check for updates by opening the Microsoft Store and searching for "WSL". Alternatively, you can update via PowerShell by running:
wsl --update
This command fetches the latest WSL kernel and core utilities. If you receive an error stating that the update failed or timed out, it may be due to network restrictions or corporate proxy settings. In such cases, manually downloading the WSL update package from the official GitHub repository is a viable alternative. Install the MSI file and restart your system again.

Checking for Conflicting Software

Security software, particularly antivirus programs and firewalls, can sometimes block the creation of virtual network adapters or interfere with the hypervisor initialization. If the installation still fails, temporarily disable third-party antivirus solutions and attempt the installation again. Some legacy virtualization tools, such as older versions of VMware Workstation or Oracle VirtualBox, may conflict with Hyper-V if they do not support coexistence properly. Ensure that you are using the latest version of your virtualization software if you plan to run other VMs alongside WSL. Modern versions of these applications support Hyper-V integration, allowing them to share the hypervisor layer. If you are unable to update these tools, consider disabling Hyper-V temporarily to test if the conflict is the root cause.

Installing Ubuntu via Microsoft Store

Once the prerequisites are met, installing Ubuntu itself should be straightforward. Open the Microsoft Store and search for "Ubuntu". Select the desired version, such as Ubuntu 22.04 LTS or Ubuntu 24.04 LTS, and click "Get". The store handles the download and initial configuration automatically. After installation, launch the app from the Start menu. The first launch will initialize the Linux environment, which may take a few minutes. If the store installation fails, you can try importing a distribution manually using the wsl --install -d Ubuntu command in PowerShell. This method bypasses the store and directly downloads the tarball from Microsoft's servers. It is useful if you have restricted internet access or specific version requirements. For more detailed guidance on managing WSL distributions, see Installing WSL Ubuntu 20.04.06 in a New Location.

Frequently Asked Questions

Why does WSL fail to start after installation?

This usually indicates that the Virtual Machine Platform service is not running or the hypervisor is not loaded. Restart your computer and ensure that virtualization is enabled in the BIOS. Check the Event Viewer for any critical errors related to Hyper-V during boot.

Can I use WSL with an older version of Windows?

WSL2 requires Windows 10 version 2004 or higher, or Windows 11. Older versions of Windows only support WSL1, which has different performance characteristics and limitations. You must update your Windows OS before attempting to install WSL2.

How do I reset WSL if it gets corrupted?

You can unregister all installed distributions by running wsl --unregister Ubuntu in PowerShell. This removes the Linux file system but keeps the WSL infrastructure intact. You can then reinstall Ubuntu from the Microsoft Store or via the command line.

What causes "Access Denied" errors during WSL installation?

These errors typically occur when trying to install WSL without administrative privileges. Always open PowerShell or Command Prompt as an Administrator. Additionally, ensure that no other process is locking the virtual hard disk files used by WSL.

Is Hyper-V required for WSL2 to work?

Strictly speaking, WSL2 uses the Hyper-V architecture but does not require the full Hyper-V role to be enabled. However, the Virtual Machine Platform feature must be active. On most systems, enabling WSL automatically enables the necessary background services.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More