Can Windows subsystem for linux (WSL) run in Virtual Desktop?

3k views Asked by At

The IT department at work decided to switch from using VPN to a Virtual Desktop solution. Does anyone has experience using WSL 1/2 inside of virtual desktop ? Is it possible to do it? Just want to know before talking to the IT .

1

There are 1 answers

0
EdWin On

WSLv1 can work in virtualized Windows. Consider it a compatibility layer like WINE in reverse. It translates Linux OS API calls to Windows OS calls, allowing you to run native Linux binaries on Windows OS.

WSL is a "Windows Feature" which requires elevated privileges to enable. IT department which manages your virtual desktop may decide whether to allow you to enable WSL or block it.

WSLv2 is entirely different case. It runs true Linux kernel in a Virtual Machine. As your desktop is perhaps already virtualized, running WSLv2 would require nested virtualization, which is neither stable or performant. I'd have not much hope for it.