Step 5: Ensure that systemd is Running

  1. Inside AlmaLinux 8:

    systemctl --version
  2. Create or edit the wsl.conf file:

    sudo nano /etc/wsl.conf
  3. Add/ensure these lines:

    [boot]
    systemd=true
    
  4. Save the file.

  5. Restart WSL:

    wsl --shutdown
  6. Restart AlmaLinux 8:

    wsl -d AlmaLinux8
  7. Verify systemd:

    systemctl --version