Install openSUSE Leap in Windows Subsystem for Linux

openSUSE is now officially available for Windows Subsystem for Linux. Bash on Windows just went green.
Warp Terminal

Microsoft provides Windows Subsystem for Linux or WSL as a means for Windows users, who want to use Linux-based systems as part of their work or needs.

Usually, users can either dual-boot Windows and Linux or use Linux inside a VM, etc. But these are resource-hungry options.

WSL allows users to use the robust Linux systems inside Windows and run Linux commands and GUI apps natively.

By default, Ubuntu is available in WSL from its beginning. But some time ago, openSUSE also announced that their Leap variant will be available in Windows Subsystem for Linux.

In this tutorial, you’ll learn to install openSUSE Leap inside WSL. You’ll also learn to run GUI apps within it.

Step 1: Install WSL (if you don’t have it already)

Recently, Windows Subsystem for Linux was released as a stable version from Preview and it is now downloadable as an app from Microsoft Store.

To use this method, you must be running Windows 10 version 2004 + (Build 19041 and higher) or Windows 11.

If you are using an older version, please follow this tutorial to install WSL.

Enable virtualization

Before installing WSL, you should ensure that the Virtual Machine Platform feature is turned on in Windows.

For this, search for “Turn on features” in the start menu and open it as shown below.

search for windows features in start menu
Search for windows features in the start menu

Inside the dialog box, scroll down and turn on “Virtual Machine platform”.

turn on virtual machine platform feature
Turn on the Virtual Machine Platform feature

Pressing OK will ask for a reboot. As recommended, reboot your system to apply the settings.

Install WSL app from Microsoft Store

Open the Microsoft store and Search for Windows Subsystem for Linux.

search for windows subsystem for linux in microsoft store
Search for Windows Subsystem for Linux in Microsoft Store

Install the app by pressing the corresponding install button on WSL Page.

install wsl from microsoft store
Install WSL from Microsoft Store

Step 2: Install and configure openSUSE in WSL

You have installed WSL. Now, you want to install openSUSE.

For that, search for openSUSE in Microsoft Store. Here, I am using openSUSE Leap, their stable version.

search for opensuse leap in microsoft store
Search for openSUSE Leap in Microsoft Store

Install the openSUSE app from Microsoft Store.

install open suse leap from microsoft store
Install openSUSE Leap from Microsoft Store

Once installation is completed, open openSUSE from the start menu.

opensuse app in start menu
openSUSE app in the start menu

You will see “Installing…” in an opened terminal. Let it complete some initial configuration setups.

opening opensuse for the first time prompts installation
Opening openSUSE for the first time prompts the installation

You will now be in the YasT environment configuring your openSUSE instance. Here, your mouse won’t work. To move between menu items, use the TAB key. So on the first screen press Next.

hit next to continue opensuse setup
Hit next to continue openSUSE setup

You will now want to accept the EULA license agreement.

accept eula agreement
Accept EULA

After pressing next, you will be asked to enter the user credentials for your openSUSE, like username, password, etc. Enter those details. You can use the TAB key to move from one field to another.

enter user credentials like username and password
Enter user credentials like username and password

It will prompt a dialog if you have entered a weak password or a password with only digits. Press “Yes” to continue.

weak password warning
Weak password warning

You can now press “Finish” to complete the setup.

press finish to close the setup
Press Finish to close the setup

That’s it. You will be no inside the terminal interface of openSUSE.

opensuse running in wsl
openSUSE running in WSL

Once inside, you should update your openSUSE system. For this, run the following command inside openSUSE.

sudo zypper refresh
sudo zypper update

You can enjoy openSUSE in the terminal and run the Linux commands and tools. However, you are not limited to the command line anymore.

Optional step 3: Using GUI applications in openSUSE on WSL

To install GUI apps in openSUSE, first install the wsl_gui pattern from openSUSE, which will fetch all the required dependencies.

sudo  zypper in -t pattern wsl_gui

Additionally, you can install wsl_base and wsl_systemd in the same manner. For any other explanations, refer to the openSUSE documentation on WSL.

Now, you can install GUI apps from the official repository. For example, install Gedit and nautilus file manager through:

sudo zypper in gedit nautilus

Once installed, you can run them by entering gedit or nautilus in the openSUSE command line. Also, the installed apps are available through the Windows start menu, under openSUSE.

opensuse gui apps in windows start menu
openSUSE GUI apps in Windows Start Menu

You can open them or pin them to the taskbar.

gedit text editor and nautilus file manager running in windows 11
Gedit text editor and Nautilus file manager running in Windows 11

Conclusion

That’s awesome! You can now enjoy the delicacy of Linux right inside Windows. This is certainly helpful for people who have to work occasionally with Linux.

Of course, for a more serious and complete experience, you should go and install openSUSE or the choice of your distro directly on your system.

I hope this tutorial was helpful in installing openSUSE on WSL. Please let me know if you face any issues.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.