lucyllewy / one-script-wsl2-systemd

The one-script variant of the systemd hack for WSL2
MIT License
231 stars 38 forks source link

Not able to launch the WSL distribution. #10

Closed sathyank closed 2 years ago

sathyank commented 3 years ago

My distribution is SLES-15-SP1 and I followed the minimal manual installation. After the installation, wsl distros is not starting. But the wsl is running able to interact with it via cmd/powershell but not able to launch it separately. I'm able to see the systemd and its related processes running. Please help

sathyank commented 3 years ago

image I'm getting the above error when try launching the wsl after the installation

lucyllewy commented 3 years ago

Please use wsl -c bash to access the container and redownload a new copy of https://raw.githubusercontent.com/diddledani/one-script-wsl2-systemd/build-21286%2B/src/00-wsl2-systemd.sh, which should fix your issue with SLES.

lucyllewy commented 3 years ago

You might also want to either add your user to the sudo group or change %sudo to %users in /etc/sudoers.d/wsl2-systemd

sathyank commented 3 years ago

Please use wsl -c bash to access the container and redownload a new copy of https://raw.githubusercontent.com/diddledani/one-script-wsl2-systemd/build-21286%2B/src/00-wsl2-systemd.sh, which should fix your issue with SLES.

wsl -c bash not launching the wsl terminal . any other command for that?

lucyllewy commented 3 years ago

try it without the -c:

wsl bash
sathyank commented 2 years ago

Thanks a lot, it worked!!! Sorry for the late reply. One more help if possible. any idea how to change IP of my wsl?

lucyllewy commented 2 years ago

Hi, MS doesn't provide the ability to change WSL IP addresses