Porsche Informatik WSL Distribution

This distribution is based on the current Ubuntu LTS and includes the following:

Installation

  1. If you had a prior version of WSL installed (before version 1.0.0) make sure you uninstall all WSL installs, restart your computer and then continue with the installation.

  2. Download and install WSL2 (wsl --install --no-distribution): https://learn.microsoft.com/en-us/windows/wsl/install. You will need Administrator rights for that (but do not launch the command as Admin). This will also install the default Ubuntu distribution (you can cancel that step).

  3. Install the "POI AnyConnect Config for WSL" via RealmJoin. This will set 172.21.96.1 as the IP of your WSL adapter (using NatGatewayIpAddress and NatNetwork in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss).

    RealmJoin with Developer section opened

    (You'll have to restart WSL wsl --shutdown after the installation if you install this later)

  4. For Windows 11 > 22H2 create a .wslconfig file in your Windows home directory ($env:USERPROFILE\.wslconfig) with the following content:

      [wsl2]
      dnsTunneling=true
    
  5. Important: please restart your PC now!

  6. Download the current Porsche Informatik WSL distribution from https://artifactory.porscheinformatik.com/artifactory/raw-wsl-distros/ and unzip the containing .tar file.

  7. Open a PowerShell and import the WSL distribution with:

    mkdir C:\Dev\WSL\Ubuntu-POI
    wsl --import Ubuntu-POI C:\Dev\WSL\Ubuntu-POI "C:\Users\$env:USERNAME\Downloads\Ubuntu-POI-{date}.tar"
    wsl --set-default Ubuntu-POI
    

First Steps

Launch the distribution and create your user. In Powershell run

wsl -d Ubuntu-POI

This will ask you for username and password to create your new Linux user.

Then it will perform the development setup (script wsl-first-run-user)

Follow the instructions in the output (wsl -t Ubuntu-POI and then wsl -d Ubuntu-POI).

Optional steps after the setup

Changelog

2024-06-29

2024-03-27

2024-01-12

2023-10-04

2023-03-15

2023-03-14

2023-02-23

2023-02-01