Unable to Install, Update WSL2 within Virtual Desktop - No Network - Azure Virtual Desktop

Abstract: Resolve WSL2 installation failures in offline Azure Virtual Desktop by manually deploying kernel and installer packages.

Created: 2026-08-01 by

WSL2 installation failures in Azure Virtual Desktop stem from missing network connectivity required for component downloads. You can resolve this by manually downloading the kernel update package and MSI installer on a connected machine, then transferring them to the AVD session via USB or shared storage to complete the offline setup.

Understanding the Offline Constraint

Azure Virtual Desktop (AVD) environments are often configured with strict security policies that restrict outbound internet access. When you attempt to run wsl --install or update WSL2 within such an isolated session, the command fails because it cannot reach Microsoft’s update servers. Unlike standard Windows updates which may cache components, the WSL2 Linux kernel and distribution packages require fresh downloads during initial installation or major version upgrades. It is crucial to understand that WSL2 does not inherently fail due to proxy settings if the system proxy is correctly configured. The issue here is specifically the absence of any network path to the download source. Attempting to troubleshoot proxy configurations first will waste time if the virtual network simply blocks all external traffic. The solution requires shifting from an online automated install to a manual offline deployment strategy.

Prerequisites for Offline Installation

Before proceeding, you must prepare the necessary files on a separate machine that has unrestricted internet access. This machine should ideally be running a similar version of Windows 10 or 11 to ensure compatibility with your AVD hosts. You will need two primary components: the Linux kernel update package and the WSL2 Windows Installer package. The Linux kernel update provides the hypervisor driver and kernel binaries required to run the Linux subsystem. The WSL2 installer package contains the necessary registry keys and system components to enable the feature. Downloading these ensures that the AVD session can install WSL2 without attempting to fetch data from the internet.

Step-by-Step Manual Installation Guide

Follow these steps to perform the installation entirely within the disconnected AVD environment.
  1. Download Components: On your connected machine, visit the official GitHub repository for the WSL kernel updates. Download the latest .msi file for the Linux kernel. Additionally, download the WSL2 Windows Installer package from the Microsoft Store or the official documentation page.
  2. Transfer Files: Move both downloaded files to a portable drive, such as a USB stick, or upload them to a secure internal file share accessible by the AVD session. Ensure the transfer method complies with your organization's data loss prevention policies.
  3. Enable WSL Feature: Log into your Azure Virtual Desktop session. Open PowerShell as an Administrator. Run the following command to enable the necessary Windows features:
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    Restart the virtual machine if prompted.
  4. Install Kernel Update: Navigate to the folder containing the transferred files. Double-click the Linux kernel update .msi file. Follow the prompts to install the package. This registers the hypervisor drivers locally.
  5. Install WSL2: After the kernel update completes, double-click the WSL2 installer .msi file. This sets WSL2 as the default version for new distributions.
  6. Verify Installation: Open a new Command Prompt or PowerShell window and run wsl --list --verbose. If no errors appear, the installation was successful.
This method bypasses the network dependency entirely. By pre-fetching the binaries, you eliminate the timeout errors that typically plague offline installations. For users who need to manage files between the Windows host and the Linux guest after installation, refer to our guide on Access Linux Files from Windows Side with WSL2: A Tech Support Guide to optimize file sharing performance.

Troubleshooting Common Errors

Even with offline files, certain configuration issues may arise. If the installation fails at the kernel stage, ensure that Hyper-V or the Windows Hypervisor Platform is enabled in your BIOS or UEFI settings. Some AVD images disable hardware virtualization by default for performance reasons, which will prevent WSL2 from loading. If the command wsl --set-default-version 2 returns an error, check your Windows build number. Older builds of Windows 10 require specific updates before they support WSL2. In such cases, you may need to apply cumulative updates via Windows Update on a connected machine and transfer those update packages offline as well. Another common symptom is the "WSL2 not installed" message despite completing the steps above. This usually indicates that the system reboot did not fully register the new hypervisor drivers. Perform a hard restart of the AVD session rather than just logging off and back on. This forces the kernel to reload the newly installed drivers. For further details on integrating WSL2 with your existing Windows environment, including network connectivity setups once you have a connection, see Connecting to TCP WSL2 on Windows: A Comprehensive Guide.

Frequently Asked Questions

Can I use a proxy server to fix the offline installation?

No, a proxy server requires an active network connection to route traffic. If your AVD session has no internet access, configuring a proxy will not allow the system to download the WSL2 kernel or installer packages. You must use the offline manual installation method described above.

Does WSL2 work on older versions of Windows 10?

WSL2 requires Windows 10 version 1903 or higher with build 18362 or later. If your AVD image runs an older build, you must update the operating system first. Without a valid OS build, the WSL2 feature cannot be enabled regardless of whether you have the installer files.

How do I know if my AVD supports hardware virtualization?

You can check by opening Device Manager and looking for "Hyper-V" under System devices. If it is missing, your AVD host may not have virtualization enabled. Contact your Azure administrator to verify if the underlying VM type supports nested virtualization or WSL2 requirements.

Is it safe to transfer MSI files via USB?

Yes, provided you scan the files for malware before transferring them. Since the files are sourced directly from Microsoft or trusted repositories, they are generally safe. Ensure your organization’s policy allows removable media usage in the AVD environment.

What happens if I install the wrong kernel version?

Installing an incompatible kernel version may cause WSL2 to fail to start. Always match the kernel package to your Windows architecture (x64 or ARM64). Using the x64 kernel on an ARM-based AVD instance will result in immediate failure upon launching a Linux distribution.

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