Live data from Hacker News

Switching to WSL2 with Fedora over plain Fedora install for development?

news.ycombinator.com

11–20 of 26 posts

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#11
I have shifted from dual booting to fully windows + wsl (Ubuntu). The new GPU passthrough and GUI app support in Win 11 WSL is particularly useful as you can run full fledged dev tools like Intellij natively in Linux vs the WSL Remote trick VSCode uses while still having all the device driver polish and hardware/software compatibility of Windows.

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#12

It works great, especially with Windows 11 where you can run X11/Wayland apps perfectly. Fedora isn't packaged for WSL2 at the moment but https://fedoramagazine.org/wsl-fedora-33 is a good way to do it - I use Arch Linux via this method and it works great. The only difference between this article and today, instead of using that Powershell command to set your default user on login, use /etc/wsl.conf ( https://docs.mi…

Do you know the disadvantage between W10 and W11 wrt. GUI apps through WSL2? What problems would I run into? I'd really rather not upgrade to W11, given all the fuckery Microsoft seems to be doing... I'd prefer to stick to W10 and hopefully in a few years I can just use Linux full-time.

W11 is just brilliant. Nothing can go wrong with it.

Why, just yesterday, my wife’s Windows 11 laptop automatically upgraded and along with the OS update decided to update the BIOS of the laptop as well! Which meant a sudden shutdown with several seconds of a blank screen at which point she was very keen on hard restarting and potentially bricking her laptop.

With brilliant decisions like these made for you how can you ever go wrong with Windows.

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#13
post #7
post #2

I think there is a Fedora install available on the Microsoft store, but it is paid for and I’m not sure the proceeds will go to the Fedora maintainers. I don’t like WSL much. It feels like a second class environment, where the Linux filesystem is accessible via a network share. In any case, it works. Windows Terminal is good enough, but I find Windows a hopelessly confusing OS with lots of places where it seems unfin…

These are my solutions also, I do have a working Fedora in WSL2 (using the manual method of installation), but I still keep using the VMware Workstation. At this point, although the GUI is running, I'm only using it as a "remote ssh" from my VSCode and everything works like a charm. Certainly WSL2 integration has some benefits, but I'm not really using any of them at this point. My Windows terminal sshs to the Linux…

> (using the manual method of installation)

Never bothered to look for that. Can you link to it?

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#14
post #2

I think there is a Fedora install available on the Microsoft store, but it is paid for and I’m not sure the proceeds will go to the Fedora maintainers. I don’t like WSL much. It feels like a second class environment, where the Linux filesystem is accessible via a network share. In any case, it works. Windows Terminal is good enough, but I find Windows a hopelessly confusing OS with lots of places where it seems unfin…

Is there a way for me to run my current Fedora install as a VM in Windows? Basically I just want the simplest solution, which I guess is for me to ssh into my eventual Linux laptop. But since I don't know when I'll be getting that, I'm wondering what are the pain points of using Fedora through VMWare Workstation. I used VirtualBox when I was first trying out Ubuntu, and it felt noticeably less smooth. Note my main mo…

> my current Fedora install as a VM in Windows?

Not sure WSL2 will like Wayland. It seems better adapted to text-mode command-line Linux work (I'm aware it can run graphical apps). What I'd suggest is to deploy a new Fedora/CentOS WSL VM and copy your home into it.

> I used VirtualBox when I was first trying out Ubuntu

Oh yes. Unless it's a really nice machine and the hypervisor allows the VM to bypass hardware emulation when possible and use some form of virtio-like thing, it'll never be as fluid and snappy as when it's deployed on metal.

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#15
I prefer running things in VMware virtual machines. (I am used to WMare, you can use Oracle VirutalBox its free(mostly))

If you are into gaming on Windows 10, use Windows 10 as your main and a virtual machine of Linux for Dev.

Gaming on Windows 10 in a virtual machine will not be that good.

There is an issue with running VMware Workstation on Windows 10 with WSL2 on.

In the beginning it did not work at all

They have fixed it a little bit. Now you can run both at the same time but it creates limits for what VMWare Workstation can do.

The most important limit for me is the inability to run nested virtual machines.

This is probably not a problem for most users, but I have to turn off WSL2 and HyperV to run nested operating system on VMWare. This in turn means Docker Desktop will not run on Windows 10.

I am so used to virtual machines that I strongly prefer it to WSL2. It creates a natural demarcation between the two systems. It is trivial to return to a known state on VirtualMachine. Everything in Linux, FreeBSD etc works as expected.

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#16

It works great, especially with Windows 11 where you can run X11/Wayland apps perfectly. Fedora isn't packaged for WSL2 at the moment but https://fedoramagazine.org/wsl-fedora-33 is a good way to do it - I use Arch Linux via this method and it works great. The only difference between this article and today, instead of using that Powershell command to set your default user on login, use /etc/wsl.conf ( https://docs.mi…

Do you know the disadvantage between W10 and W11 wrt. GUI apps through WSL2? What problems would I run into? I'd really rather not upgrade to W11, given all the fuckery Microsoft seems to be doing... I'd prefer to stick to W10 and hopefully in a few years I can just use Linux full-time.

The main change that some people don't like is the Taskbar simplification. I personally think it's great and it's time to kill the pages of menus that every right-click option in Explorer has, that's some 90s shit. Otherwise, it's just a better looking Win10 with AutoHDR which, if you play games and have a HDR monitor, legitimately improves the look of many games

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#17
There's some wsl fedora distro''s like this. https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL . Don't get the store image, it's not updated and is paid, which this is free.

BUT, I urge you to just download ubuntu on wsl. It's way more integrated and has alot more support. There's effectively no difference besides some library names which can be translated with "whatprovides" and apt vs dnf. As a Fedora desktop user at work and Ubuntu hater, with WSL it has the Microsoft "Stamp of approval" and gets all the new features and official support.

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#18
post #17

There's some wsl fedora distro''s like this. https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL . Don't get the store image, it's not updated and is paid, which this is free. BUT, I urge you to just download ubuntu on wsl. It's way more integrated and has alot more support. There's effectively no difference besides some library names which can be translated with "whatprovides" and apt vs dnf. As a Fedora deskt…

I would definitely go Ubuntu over Fedora if it's a more straightforward process

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#19
post #10

You can also try to run Windows in a VM and do GPU passthrough (assuming you also have an integrated graphics card aside from the NVIDIA GPU). Last I've heard it's rather easy to do nowadays, back in 2017 when I tried that it was quite finicky.

This is definitely not suitable for any sort of serious gaming, unfortunately

Re: Switching to WSL2 with Fedora over plain Fedora install for development?

#20
I am a webdev and I use mostly linux servers / docker for my job but still my work pc is windows 10 machine. WSL2 was incredibly slow for my dev job. It consumed a lot of RAM and CPU. I got permission problems inside wsl all the time - I edited files in some editor (eg phpstorm or visual code) and then the permissions were broken inside wsl2 for that file.. or the CPU started suddenly to go insane.

My experience was a pain in the ass. I dumped wsl2 or some virtualization and use this instead:

I have a small linux cloud instance with full ssh access. (I pay 4 USD / month). I use a free tool called mutagen to sync all my files on my windows machine to that linux machine. Sync is almost instant, it feels like working on local server.

Other plus, I can show to my coworkers and customers what I do on my server. Especially now when I work from home.

WSL2 is nice for smaller things, but I would not use it for full web dev server. I would if I could but it doesn't work nice for me. And somehow, it doesn't feel right... I know linux is fast but in wsl2 it is way slower.

Post reply on HN