- Activate WSL and VM features:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- Reboot
- Download installer: Paquet d’installation pour les systèmes x64
- Define WSL default version
wsl --set-default-version 2
- From Windows Store: Install Ubuntu
- Check installation:
wsl --list --verbose
- Connect to the first instance:
wsl
- Fix permission issues (with git for example) on windows shared disks
### From the Ubuntu VM:
# For current session
sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata
# For long term
sudo vi /etc/wsl.com # create it
# Add this:
[automount]
options = "metadata"