Get started with Ubuntu Pro for WSL¶
Ubuntu Pro
This page refers to features that require an Ubuntu Pro subscription and access to the Ubuntu Pro for WSL application. The application is currently in beta and not yet generally available.
Windows Subsystem for Linux (WSL) is an easy and fast way to run Ubuntu on a Windows machine. Ubuntu Pro for WSL automatically attaches Ubuntu WSL instances to your Ubuntu Pro subscription. Developers get to use Ubuntu WSL while benefiting from the stability, security and compliance offered by Ubuntu Pro.
In this tutorial you will learn how to install Pro for WSL on Windows and verify that Ubuntu WSL instances are Pro-attaching. You should then be ready for more advanced usage scenarios.
Use of prompt symbols in this documentation
Prompt symbols on this page are used to distinguish between commands that you run in PowerShell and commands that you run in Ubuntu:
>: PowerShell$: Ubuntu
When you copy any command, the prompt symbol will not be copied.
What you will do¶
Install Pro for WSL from the Microsoft Store
Configure Pro for WSL with a Pro token
Test automatic Pro-attachment of WSL instances
If you already have instances of Ubuntu on WSL installed
We recommend that any installed instance of Ubuntu on WSL is exported then deleted. You can then install it as described in this tutorial. At the end of the tutorial you can import and restore your data.
Read our how-to guide on backup and restore.
What you will need¶
Windows 11 (recommended) or Windows 10 with minimum version 21H2 on a physical machine
Virtualisation requirements when using WSL
Virtualisation needs to be enabled. Many Windows devices already meet this requirement, but if your machine does not then you need to modify the UEFI (or BIOS).
Virtual Machine Platform must be turned on. Running wsl --install will
attempt to do this, but a reboot is required for the change to apply.
Refer to Microsoft’s guide on enabling virtualisation on Windows for more information on enabling virtualisation and the Virtual Machine Platform.
Running WSL in a virtual machine is possible but nested virtualisation must be enabled. We do not recommend following this tutorial in a Windows VM.
More information on running WSL in a VM is provided in Microsoft’s FAQ.
Set up Ubuntu on WSL¶
To use Pro for WSL, you need WSL installed and enabled on your machine, and at least one instance of Ubuntu on WSL.
Install WSL¶
To install and enable WSL on Windows, run the following command in PowerShell:
> wsl --install
You may need to reboot the Windows machine for the changes to take effect.
Global configuration settings for WSL may block the communication between the Ubuntu
Pro for WSL application and instances of Ubuntu on WSL. If you already have WSL
installed, with ~\.wslconfig on your system, we recommend that you back up the
file, then remove it, before continuing the tutorial.
For more information about .wslconfig, refer to the WSL documentation from Microsoft.
To check if the file exists run the following in PowerShell:
> Test-Path -Path "~\.wslconfig"
If this returns True then the file exists and can be removed with:
> Remove-Item ~\.wslconfig
Install Ubuntu¶
Ubuntu 24.04 LTS is recommended for this tutorial and can be installed with the following command in PowerShell:
> wsl --install Ubuntu-24.04
For other installation options refer to our install Ubuntu on WSL guide.
To confirm the installation, and that the installed distro is using WSL 2, run:
> wsl -l -v
You must use WSL 2
WSL 2 is the default architecture on recent versions of Windows and is required for the Pro for WSL app to function. Read more about the differences between WSL versions.
To manually associate this Ubuntu instance with a Pro subscription, you could
launch the instance and run the pro attach command.
This, however, would need to be repeated manually for each new instance. Pro for WSL solves this scalability problem by automating Pro-attachment. Next, let’s take a look at how that works in practice.
Set up Ubuntu Pro for WSL¶
Get an Ubuntu Pro token¶
An active Ubuntu Pro subscription provides you with a token that can be added to the Ubuntu Pro client on WSL instances.
Your subscription token can be retrieved from the Ubuntu Pro Dashboard.
Visit the Ubuntu Pro page if you need a new subscription.
The Myself option for a personal subscription is free for up to 5 machines.
Once you have a token you are ready to install Pro for WSL.
Install and configure Ubuntu Pro for WSL¶
Ubuntu Pro for WSL is in beta
The install link below will work only if you’re logged in to the Microsoft Store with an account for which access to the app has been enabled.
Pro for WSL can be installed from this link to the Microsoft Store.
Open the application and paste the token you copied from the Ubuntu Pro dashboard:

After you confirm, a status screen will appear showing that configuration is complete:

Done! You can close the Pro for WSL window before continuing. If at any time you want to detach your Pro subscription just open the Pro for WSL application and select Detach Ubuntu Pro.
Your Ubuntu Pro subscription is now attached to Pro for WSL on the Windows host. Pro for WSL will automatically forward the subscription to the Ubuntu Pro client on your Ubuntu WSL instances.
Verify Pro-attachment¶
All Ubuntu WSL instances will now be automatically added to your Ubuntu Pro subscription.
In PowerShell, run the following command to launch the Ubuntu-24.04 instance you installed previously, entering a username and password when prompted.
> wsl ~ -d Ubuntu-24.04
You will now be logged in to the Ubuntu instance and can check that Pro for WSL has Pro-attached this instance with:
$ pro status
The output should indicate that services like ESM are enabled, with account and subscription information also shown:
SERVICE ENTITLED STATUS DESCRIPTION
esm-apps yes enabled Expanded Security Maintenance for Applications
esm-infra yes enabled Expanded Security Maintenance for Infrastructure
NOTICES
Operation in progress: pro attach
For a list of all Ubuntu Pro services, run 'pro status --all'
Enable services with: pro enable <service>
Account: [email protected]
Subscription: Ubuntu Pro - free personal subscription
Packages can also be accessed from all the enabled services.
Running sudo apt update will produce output like the following:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://ppa.launchpad.net/ubuntu-wsl-dev/ppa/ubuntu noble InRelease
Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:5 http://ppa.launchpad.net/landscape/self-hosted-beta/ubuntu noble InRelease
Hit:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:7 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:8 http://ppa.launchpad.net/cloud-init-dev/proposed/ubuntu noble InRelease
Hit:9 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Now let’s check that a different version of Ubuntu will also Pro-attach automatically.
Install an older LTS release — Ubuntu 22.04 — from PowerShell:
> wsl --install Ubuntu-22.04
After this instanced has installed and launched, enter a username and password, then run pro status.
You should again get confirmation of successful Pro-attachment for the new instance.
If you want to uninstall Pro for WSL after this tutorial refer to our how-to guide.
Next steps¶
This is only the start of what you can do with Pro for WSL.
If you need to create and manage large numbers of Ubuntu WSL instances you will probably want to use the Windows registry. By using the Windows registry you can associate a Pro token with each new WSL instance using your organisation’s own deployment solution.
For detailed step-by-step instructions on using the Windows registry read our short guide on how to install and configure Pro for WSL.
Landscape support is also built-in to Pro for WSL. With a single configuration file, you can create and manage multiple WSL instances that will automatically be registered with your Landscape server:
For more information, please refer to our tutorial on how to deploy WSL instances with Pro for WSL and Landscape.
Our documentation includes several other how-to guides for completing specific tasks, reference material describing key information relating to Pro for WSL.