Windows Subsystem for Linux: Difference between revisions

From David's Wiki
Created page with "Windows Subsystem for Linux (WSL) ==Getting WSL2== See [https://docs.microsoft.com/en-us/windows/wsl/install-win10 https://docs.microsoft.com/en-us/windows/wsl/install-win10..."
 
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
See [https://docs.microsoft.com/en-us/windows/wsl/compare-versions https://docs.microsoft.com/en-us/windows/wsl/compare-versions].   
See [https://docs.microsoft.com/en-us/windows/wsl/compare-versions https://docs.microsoft.com/en-us/windows/wsl/compare-versions].   
Basically WSL 2 is a full linux kernel running in a VM.   
Basically WSL 2 is a full linux kernel running in a VM.   
WSL 1 is a compatibility layer on top of the Windows kernel.
WSL 1 is a compatibility layer on top of the Windows kernel.
Nvidia is working on CUDA for WSL 2<ref name="nvidiaCudaWsl">https://developer.nvidia.com/cuda/wsl</ref>.
 
==References==

Latest revision as of 05:19, 13 June 2020

Windows Subsystem for Linux (WSL)


Getting WSL2

See https://docs.microsoft.com/en-us/windows/wsl/install-win10

  • Enable WSL
    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  • Enable Virtual Machine Platform
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  • Reboot
  • Set WSL to be default
    wsl --set-default-version 2
  • Download a linux distro from the Microsoft Store WSL page

WSL 1 vs WSL 2

See https://docs.microsoft.com/en-us/windows/wsl/compare-versions.
Basically WSL 2 is a full linux kernel running in a VM.
WSL 1 is a compatibility layer on top of the Windows kernel.
Nvidia is working on CUDA for WSL 2[1].

References