Bug 1567506 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

for anyone wanting to test wsl 2 on infrastructure, i've set up a windows server 2019 worker pool for this purpose.

here's an example task that can be run in the [task creator](https://tools.taskcluster.net/tasks/create):

```YAML
provisionerId: gecko-1
workerType: win2019-gamma
retries: 5
created: '2019-10-04T05:21:19.325Z'
deadline: '2019-10-05T05:21:19.325Z'
expires: '2019-11-01T05:21:19.325Z'
scopes: []
payload:
  maxRunTime: 3600
  artifacts: []
  command:
    # download wsl edition of ubuntu
    - 'curl -L https://aka.ms/wsl-ubuntu-1804 -o wsl-ubuntu-1804.zip'
    # extract ubuntu archive to the task user folder
    - 7z x -owsl-ubuntu-1804 wsl-ubuntu-1804.zip
    # install ubuntu to the windows subsystem for linux (wsl) using root as the default user account
    - wsl-ubuntu-1804\ubuntu1804.exe install --root
    # set ubuntu as the default wsl distro (ignoring exit code)
    - wsl --setdefault Ubuntu-18.04 & exit 0
    # do stuff with wsl ubuntu...
    - wsl add-apt-repository ppa:ubuntu-toolchain-r/ppa
    - wsl apt-get update
    - wsl apt-get install -y git python3.7
    - wsl python3.7 --version
    # unregister ubuntu from wsl (ignoring exit code)
    - wslconfig /u Ubuntu-18.04 & exit 0
metadata:
  owner: somebody@mozilla.com
  source: 'https://bugzilla.mozilla.org/show_bug.cgi?id=1567506'
  description: install ubuntu 1804 to windows subsystem for linux
  name: wsl2-sandbox
tags:
  os: windows
  worker-implementation: generic-worker
extra: {}
```
for anyone wanting to test wsl 1 on infrastructure, i've set up a windows server 2019 worker pool for this purpose.

here's an example task that can be run in the [task creator](https://tools.taskcluster.net/tasks/create):

```YAML
provisionerId: gecko-1
workerType: win2019-gamma
retries: 5
created: '2019-10-04T05:21:19.325Z'
deadline: '2019-10-05T05:21:19.325Z'
expires: '2019-11-01T05:21:19.325Z'
scopes: []
payload:
  maxRunTime: 3600
  artifacts: []
  command:
    # display the windows build number
    - powershell -NoProfile -InputFormat None -ExecutionPolicy RemoteSigned -Command \"systeminfo | Select-String '^OS Name','^OS Version'\"
    # download wsl edition of ubuntu
    - 'curl -L https://aka.ms/wsl-ubuntu-1804 -o wsl-ubuntu-1804.zip'
    # extract ubuntu archive to the task user folder
    - 7z x -owsl-ubuntu-1804 wsl-ubuntu-1804.zip
    # install ubuntu to the windows subsystem for linux (wsl) using root as the default user account
    - wsl-ubuntu-1804\ubuntu1804.exe install --root
    # set ubuntu as the default wsl distro (ignoring exit code)
    - wsl --setdefault Ubuntu-18.04 & exit 0
    # do stuff with wsl ubuntu...
    - wsl add-apt-repository ppa:ubuntu-toolchain-r/ppa
    - wsl apt-get update
    - wsl apt-get install -y git python3.7
    - wsl python3.7 --version
    # unregister ubuntu from wsl (ignoring exit code)
    - wslconfig /u Ubuntu-18.04 & exit 0
metadata:
  owner: somebody@mozilla.com
  source: 'https://bugzilla.mozilla.org/show_bug.cgi?id=1567506'
  description: install ubuntu 1804 to windows subsystem for linux
  name: wsl1-sandbox
tags:
  os: windows
  worker-implementation: generic-worker
extra: {}
```

Back to Bug 1567506 Comment 3