Finally, Fedora comes to Windows WSL.

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
3,522
Reaction score
3,279
Credits
31,505


This will all be done on your Windows 11 (Professional Ed)
Howto:

Download the Fedora base image from...

Open powershell as an administrator. Install WSL.
Code:
wsl --install

Next we need to enable the Windows Hypervisor.
Code:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Hyper-V-All /all /norestart

It is highly recommended that you reboot your WindowsPC at this point to let those services initialize.

After your computer is restarted. Restart Powershell again (as administrator)
Code:
mkdir C:\Users\ray\wsl\fedora

Just do this wherever your home directory is. Obviously, you probably aren't ray.
After that is done.
Code:
wsl --import Fedora C:\Users\ray\wsl\fedora C:\Users\ray\Downloads\fedora-20241031.tar

This command will change frequently. Make sure the version matches the version you downloaded, and change your username, possibly your home directory path as well.

Now to launch your fedora instance.
Code:
wsl -d Fedora

Check out your Linux version.
Code:
cat /etc/os-release

You might as well do an update here.
Code:
dnf update -y

WSL doesn't have a "reboot" command. So you can just exit.
Code:
exit

Shutdown WSL
Code:
wsl --shutdown

Now, how do you get back into your fedora WSL?
Open powershell again (if it's not already open) and type...
Code:
wsl -d Fedora

1739710279104.png


You can't do everything you can do in a full-blown Linux install, but it's a good start.
Happy Linux'ing! :cool:
 


Members online


Top