Erik Jan de Vries
1 min readOct 30, 2019

--

Hi Satrujeet,

Windows Subsystem for Linux, WSL and WSL2, both offer a way to “run Linux inside Windows”. At the moment, however, the Linux kernel still has limited access to certain hardware, and the GPU is not available:

https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq#can-i-access-the-gpu-in-wsl-2-are-there-plans-to-increase-hardware-support

I’m not an expert on the details, but the Linux kernel runs inside a virtual machine and I think this is where the connection with the GPU becomes troublesome (requiring GPU passthrough which is not available).

https://docs.microsoft.com/en-us/windows/wsl/wsl2-about?WT.mc_id=thomasmaurer-blog-thmaure#brief-overview-of-the-wsl-2-architecture

I believe WSL2 is a very interesting technology, so I look forward to its public release! It has some major benefits over dual-boot (most importantly you will no longer need to reboot to switch between Windows and Linux) but there are also some disadvantages (GPU availability being one of them). Finally you might want to consider the graphical interface, or desktop environment. With WSL2 you are using the Windows desktop environment, while native Linux distributions have their own variants (such as Gnome or KDE). Although it should be possible to get a graphical desktop environment for Linux running in WSL2, it is still quite a lot of hassle.

Best regards,

Erik Jan

--

--

Erik Jan de Vries
Erik Jan de Vries

Written by Erik Jan de Vries

Award-winning ML product architect/engineer, freelance consultant — https://linkedin.com/in/erikjandevries

No responses yet