The Data Science Virtual Machine, is hands down one of my favorite tools in Azure. Mainly because it comes out of the box with so many of the tools required for modern software or AI app development. But there are gaps. One of those gaps are the fact that WSL is missing.
This documentation walks through the steps to get WSL, specifically Ubuntu 22.04 installed on your Windows Server 2022 Data Science Virtual Machine.
Step 1 – Open a Powershell Terminal with Admin Privileges.
Step 2 – Run the following commands to enable the correct features:
```powershell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
```
Step 3 – Run the following command to update the linux kernel on the Data Science Virtual Machine:
```powershell
wsl --update
```
Step 4 – Run the following command to install Ubuntu-22.04:
wsl --install -d Ubuntu-22.04
Step 5 – During the install you will be asked to create a user for the linux virtual machine, I recommend using the same username as the virtual machine and a password you will remember.