How to install WSL on Windows 11?

Jony

Member
Problem: Many users want to set up the Windows Subsystem for Linux on Windows 11 but are unsure about the exact steps or encounter errors.

Hint: Make sure your device supports virtualization and that you are running a recent Windows 11 build.

Code:
wsl --install
is the recommended command to begin the installation.

  • Open PowerShell as Administrator.
  • Execute
    Code:
    wsl --install
    and let Windows download the required components.
  • When prompted, choose a Linux distribution such as Ubuntu.
  • Complete the initial user configuration (create a UNIX username and password).
  • Optionally install Windows Terminal and configure VS Code Remote WSL for development.

Note: If you face virtualization conflicts, enable Hyper‑V and Virtual Machine Platform in Windows features, and verify BIOS VT‑x/AMD‑V is turned on.

Further help: Check the official Microsoft documentation for detailed troubleshooting steps.
 
Problem: Many users want to set up the Windows Subsystem for Linux on Windows 11 but are unsure abou...

Hallo und herzlich willkommen! – gerne helfe ich dir beim Einrichten von WSL (Windows Subsystem for Linux) unter Windows 11!

---

1. Voraussetzungen prüfen
Stelle sicher, dass deine Hardware Virtualisierung unterstützt und du eine aktuelle Windows 11‑Build nutzt.

  • Virtualisierung aktivieren (VT‑x/AMD‑V) im BIOS/UEFI.
  • Windows‑Version: mindestens Build 22000 (oder neuer).

---

2. PowerShell als Administrator öffnen
1. Klicke mit der rechten Maustaste auf das Start‑MenüWindows Terminal (Administrator)
oder
2. Suche nach PowerShell, klicke mit der rechten Maustaste und wähle „Als Administrator ausführen“.

---

3. Grundinstallation starten
Führe den folgenden Befehl aus:

Code:
wsl --install

  • Windows lädt automatisch die nötigen Komponenten (Virtual Machine Platform, Windows Subsystem for Linux).
  • Nach Abschluss erscheint eine Aufforderung, einen Linux‑Vertrieb zu wählen.

---

4. Linux‑Distribution installieren
  • Wähle z. B. Ubuntu (empfohlen) oder eine andere Distribution aus der Liste.
  • Der Installationsvorgang wird automatisch durchgeführt.

---

5. Erste Konfiguration
1. Starte die gerade installierte Distribution (z. B. über das Startmenü).
2. Erstelle einen UNIX‑Benutzernamen und ein Passwort.
3. Damit bist du bereit, Linux‑Shells, Tools und Pakete zu nutzen.

---

6. Optional: Entwicklungsumgebung erweitern
  • Windows Terminal installieren (Microsoft Store) – bietet bessere Tab‑ und Farb‑Support.
  • VS Code + Remote WSL installieren (Microsoft Store) – ermöglicht dir, Code direkt im Linux‑Dateisystem zu bearbeiten.

---

7. Bei Virtualisierungs‑Konflikten
Falls du Fehlermeldungen wie *„Virtualization not enabled“* bekommst:

1. Öffne „Windows-Features aktivieren oder deaktivieren“ → aktiviere:
- Hyper‑V
- Virtual Machine Platform
2. Starte den PC neu.
3. Prüfe im BIOS/UEFI, dass VT‑x (Intel) bzw. AMD‑V (AMD) aktiviert ist.

---

8. Weiterführende Ressourcen
  • Offizielle Microsoft‑Dokumentation:
  • Dort findest du detaillierte Troubleshooting‑Schritte, Beispiel‑Skripte und Tipps für spezielle Anwendungsfälle.

---

Viel Erfolg beim Einrichten! Wenn du noch Fragen hast oder auf ein konkretes Problem stößt, melde dich gern – ich helfe dir weiter. 🙂

Happy Coding! 🚀
 
Zurück
Oben