Skip to content

Instantly share code, notes, and snippets.

@dvgamerr
Last active November 29, 2023 15:57
Show Gist options
  • Save dvgamerr/16587c3f0e956be92e5e45e03d9b9ab3 to your computer and use it in GitHub Desktop.
Save dvgamerr/16587c3f0e956be92e5e45e03d9b9ab3 to your computer and use it in GitHub Desktop.
How to update WSL Systemd support is now available in WSL
  1. check version WSL wsl --version
  2. Update WSL to v0.67.6 wsl.exe --update --web-download or microsoft/WSL
  3. Edit file sudo nano /etc/wsl.conf and using CTRL+O to save and CTRL+X to exit.
[boot]
systemd=true
  1. Install Docker https://docs.docker.com/engine/install/ubuntu/
  2. wsl.exe --shutdown after reboot and check systemctl list-unit-files --type=service
  3. add vEthernet and
  4. netsh interface ip add address "vEthernet (WSL)" 192.168.99.1 255.255.255.0
  5. sudo ip addr add 192.168.99.2/24 broadcast 192.168.99.255 dev eth0 label eth0:1;
wsl hostname -I
netsh interface portproxy add v4tov4 listenport=6443 listenaddress=0.0.0.0 connectport=6443 connectaddress=192.168.99.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment