Windows WSL

microsoft.com

WSL (Windows Subsystem for Linux) is a compatibility layer that lets you run Linux distributions directly on Windows, providing a seamless command-line experience without the need for a separate virtual machine. WSL 2 takes this further by employing a lightweight virtual machine managed by the Hyper-V hypervisor, offering a full Linux kernel with improved performance and system call compatibility.


🌐 Resources πŸ”—


Install WSL

Open Powershell as admin and run the following command that will enable the features necessary to run WSL (VirtualMachinePlatform) and install the Ubuntu distribution of Linux.

  • Restart the Windows host

  • After the restart, open Terminal app and select Ubuntu

    • WSL will automatically download and install the latest stable LTS release of Ubuntu by default. When new LTS versions are released, Ubuntu can be upgraded once the first point release is available (docs)

    • Configure username and password when prompted

Ubuntu on WSL

Ubuntu WSL - Ansible control node

Update OS, install Ansible, pip (Python package manager) and ansible-lint in the Ubuntu WSL distro.

  • Open the Ubuntu WSL terminal and proceed with the necessary packages installation

Install VS Code with Ansible and WSL extensions.


Last updated

Was this helpful?