How to Install openSUSE with WSL on Windows 11

This guide shows you how to install and run openSUSE Linux on Windows Subsystem for Linux 2 (WSL2). It’s easier than you think.

Why Would You Want This?

In 2017, Microsoft created Windows Subsystem for Linux. This tool lets you run a Linux environment right inside Windows. You can use Linux command-line tools, utilities, and applications without setting up a virtual machine or dual-boot system.

WSL2 is the newer, faster version. It has better performance and works with more Linux programs.

Installing openSUSE with WSL2 on Windows 11 gives you a powerful Linux environment inside Windows. You can run Linux tools like bash, ssh, and git without leaving Windows. This is helpful for developers who need Linux tools for their work.

What You Need

Before you start, make sure you have:

  • Windows 10 (May 2020 version 2004 or later) or Windows 11
  • A computer that supports Hyper-V Virtualization

Step 1: Enable WSL in Windows

⚠️ Admin privileges required

First, open PowerShell as an administrator. Click on Start and type PowerShell. Right-click on Windows PowerShell and select “Run as administrator.”

PowerShell window opened as administrator for WSL installation

When the console opens, copy and paste this command:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

You should see a success message like this:

Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.19042.844
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

Step 2: Enable Virtual Machine Platform

⚠️ Admin privileges required

WSL2 needs the Virtual Machine Platform to work. In the same PowerShell window, run this command:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

If you have an older version of Windows 10 (before 2004), use this command instead:

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart

After running the command, restart your computer. This lets all the changes take effect.

Step 3: Set WSL2 as Default

⚠️ Admin privileges required

After restarting, open PowerShell as administrator again. Run this command:

wsl --set-default-version 2

If you get an error about missing Linux kernel, download it from this link and install it first: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

Installing WSL kernel on Windows for openSUSE

Step 4: Install openSUSE from the Microsoft Store

Now WSL2 is ready. Open the Microsoft Store and search for openSUSE, or visit this link: Get openSUSE Leap 15.3 – Microsoft Store

openSUSE on Windows lets you use openSUSE Terminal and run Linux command-line tools like bash, ssh, and git.

openSUSE installation process on Windows WSL

Click the Get button to download and install openSUSE.

Launching openSUSE on Windows Subsystem for Linux

Step 5: Launch and Set Up openSUSE

After installing, click the Launch button. openSUSE will start a setup wizard.

openSUSE setup wizard on Windows WSL

The wizard will ask you to create an account. Follow the on-screen steps.

Setting up user account in openSUSE on WSL

When setup is complete, you’re done.

openSUSE terminal console running on Windows WSL

How to Launch openSUSE

Simply search for openSUSE in Windows. You can also pin it to your taskbar for quick access.

openSUSE application interface on Windows WSL

openSUSE console view on Windows Subsystem for Linux

Troubleshooting

If you run into problems, try these commands in PowerShell (as administrator):

wsl --set-default-version 1

bcdedit /set hypervisorlaunchtype auto start

Summary

You now know how to install WSL2 on Windows and set up openSUSE. The process requires enabling two Windows features and installing openSUSE from the Microsoft Store. Once installed, you can launch openSUSE anytime and use Linux tools without leaving Windows. This gives developers and power users a powerful Linux environment right inside Windows.

Frequently Asked Questions

What is WSL and why should I use it?

WSL, or Windows Subsystem for Linux, allows users to run a Linux environment directly on Windows without the need for a virtual machine. It is particularly useful for developers who need access to Linux command-line tools and applications while working in a Windows environment.

How do I enable WSL 2 on Windows 11?

To enable WSL 2 on Windows 11, open PowerShell as an administrator and run the command 'dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart'. Then, enable the Virtual Machine Platform with 'dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart'.

Can I run openSUSE on Windows 11 using WSL?

Yes, you can run openSUSE on Windows 11 using WSL. This allows you to utilize openSUSE command-line utilities seamlessly within your Windows environment without needing a separate installation or dual-boot setup.

What are the system requirements for installing WSL 2?

To install WSL 2, your system must be running Windows 10 version 2004 or later, and it should support Hyper-V virtualization. Ensure that your computer meets these requirements before proceeding with the installation.

What are the benefits of using openSUSE with WSL?

Using openSUSE with WSL provides a powerful Linux environment directly within Windows, allowing for easy access to Linux-based tools and applications. It enhances productivity for developers who frequently switch between Windows and Linux, offering a more integrated experience.

Categories:

Leave a Reply

Your email address will not be published. Required fields are marked *