This will all be done on your Windows 11 (Professional Ed)
Howto:
Download the Fedora base image from...
Contribute to fedora-cloud/docker-brew-fedora development by creating an account on GitHub.
github.com
Open powershell as an administrator. Install WSL.
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.
Check out your Linux version.
You might as well do an update here.
WSL doesn't have a "reboot" command. So you can just exit.
Shutdown WSL
Now, how do you get back into your fedora WSL?
Open powershell again (if it's not already open) and type...
You can't do everything you can do in a full-blown Linux install, but it's a good start.
Happy Linux'ing!
