TWCC's VCS service primarily provides users with the ability to create Windows Server image files. However, in some use cases, there may be a need to switch between two operating systems simultaneously. This article explains how to deploy a Windows Subsystem for Linux on a virtual computing instance in TWCC.
Prerequisites
Windows Server 2019 (2CPU, 2GB memory,100G HDDVirtual computing entity
Detailed Steps
1. Enable Developer Mode



2. Enabling and configuring the Windows subsystem for Linux

Select installation type (role-based or feature-based installation)

Server selection items

Select server role (proceed to the next step).

Features (Select Windows Subsystem for Linux)

Install

Installation will take approximately 20-30 minutes.

After installation, the virtual computing instance needs to be restarted.
3. Open PowerShell and install WSL 1
- dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

If you only need to install WSL 1, you should now restart your computer and wait approximately 3-5 minutes to access the remote connection to the VM.
To update to WSL 2, please continue with the following steps; otherwise, skip this step.
- dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Set WSL 2 as the default version
- wsl –set-default-version 2

Restart your computer to complete the WSL installation and update to WSL 2. After about 3-5 minutes, you will be able to connect to the VM remotely.
4. Perform the installation of a specific version of Ubuntu.
This article uses Ubuntu 18.04 as an example.
1. Download the version of Ubuntu you wish to use and rename it.
- curl.exe -L -o ubuntu-1804.appx https://aka.ms/wsl-ubuntu-1804
- Rename-Item ubuntu-1804.appx ubuntu-1804.zip

2. Unzip the file and enter the folder.
- Expand-Archive ubuntu-1804.zip ubuntu1804
- cd ubuntu1804
![]()
3. Run the Ubuntu environment

4. Set up your account and password, and then enter the Ubuntu environment.
