Windows 10: Does WSL work on a Windows VM?

Discus and support Does WSL work on a Windows VM? in Windows 10 Customization to solve the problem; I would like to know if WSL Windows subsystem for Linux can be used on a Windows VM?... Discussion in 'Windows 10 Customization' started by Sridhar1803, Apr 28, 2020.

  1. Does WSL work on a Windows VM?


    I would like to know if WSL Windows subsystem for Linux can be used on a Windows VM?

    :)
     
    Sridhar1803, Apr 28, 2020
    #1

  2. WSL in windows Store

    Actually, this is a consumer-oriented forum for general Windows 10 questions.

    As WSL concerns mostly developers and Enterprise, I suggest asking there.
     
    Sumit Dhiman2, Apr 28, 2020
    #2
  3. RogerDV Win User
    How to configure WSL Ubuntu (or any WSL distro) to use a NAT virtual network

    I've installed WSL Ubuntu on my Windows 10 laptop and it is running fine.

    However, it is not able to access anything on the Internet at port 80 and so forth. I cannot use apt package installer to install any software at all.

    My host laptop Windows environment has no problem, of course, with Internet access.

    Info I've gleaned is that WSL is being blocked by a firewall. Am using Kaspersky as mandated by internal corporate policy. I've added an exception rule for WSL but that has no positive effect on the problem. Additional info I've gleaned is that others have
    had same experience - unfortunately this doesn't allow programs running in WSL virtualization any access out to the public Internet.

    The latest info I could find is that WSL just flat out won't work with several prominent Windows firewall apps unless they are disabled of even uninstalled (not a possible option for me).

    So I followed these instructions and created a NAT virtual network:
    Set up a NAT network


    Got that created with no problem and it shows up as eth3 interface on my laptop.

    Remaining instructions at the above link talk about how to get Docker for Windows and other Hyper-V VMs to use this NAT. However, I can't find anything that instructs how to setup WSL to do so. WSL evidently can't be managed in same manner as other Hyper-V
    VMs.

    Presumably the iptables or ip command to setup routing could be used to do this in the Ubuntu Linux environment, but that is where am appealing for help from anyone that knows how to do this in respect to WSL.
     
    RogerDV, Apr 28, 2020
    #3
  4. Brink Win User

    Does WSL work on a Windows VM?

    Using Windows Subsystem for Linux (WSL) in an Enterprise


    Source: Using WSL in an Enterprise Windows Command Line Tools For Developers
     
    Brink, Apr 28, 2020
    #4
Thema:

Does WSL work on a Windows VM?

Loading...
  1. Does WSL work on a Windows VM? - Similar Threads - Does WSL

  2. WSL does not load and takes ages

    in Windows 10 Gaming
    WSL does not load and takes ages: Hi I have been using WSL from more than an year however from last few weeks my WSL does not launch . I am using the Microsoft Terminal to launch . I have tried updating WSL and restarting windows several times but no luck . Can anyone please help how to fix it ? I dont want...
  3. WSL does not load and takes ages

    in Windows 10 Software and Apps
    WSL does not load and takes ages: Hi I have been using WSL from more than an year however from last few weeks my WSL does not launch . I am using the Microsoft Terminal to launch . I have tried updating WSL and restarting windows several times but no luck . Can anyone please help how to fix it ? I dont want...
  4. WSL does not load and takes ages

    in Windows 10 BSOD Crashes and Debugging
    WSL does not load and takes ages: Hi I have been using WSL from more than an year however from last few weeks my WSL does not launch . I am using the Microsoft Terminal to launch . I have tried updating WSL and restarting windows several times but no luck . Can anyone please help how to fix it ? I dont want...
  5. How Does One Install WSL Distro for a Different User Account?

    in Windows 10 Gaming
    How Does One Install WSL Distro for a Different User Account?: I have a Windows 11 PC with WSL set up for my user account. This PC was shipped to different location where I can DameWare in with my Windows challenge/response, then login with local credentials. This PC does not have internet access. As this local user, WSL presents error...
  6. How Does One Install WSL Distro for a Different User Account?

    in Windows 10 Software and Apps
    How Does One Install WSL Distro for a Different User Account?: I have a Windows 11 PC with WSL set up for my user account. This PC was shipped to different location where I can DameWare in with my Windows challenge/response, then login with local credentials. This PC does not have internet access. As this local user, WSL presents error...
  7. wsl version update does not succeed?

    in Windows 10 Gaming
    wsl version update does not succeed?: C:\Users\jqi>where wsl C:\Windows\System32\wsl.exe C:\Users\jqi\AppData\Local\Microsoft\WindowsApps\wsl.exe C:\Users\jqi>wsl --update Checking for updates. The most recent version of Windows Subsystem for Linux is already installed. C:\Users\jqi>wsl --version WSL version:...
  8. wsl version update does not succeed?

    in Windows 10 Software and Apps
    wsl version update does not succeed?: C:\Users\jqi>where wsl C:\Windows\System32\wsl.exe C:\Users\jqi\AppData\Local\Microsoft\WindowsApps\wsl.exe C:\Users\jqi>wsl --update Checking for updates. The most recent version of Windows Subsystem for Linux is already installed. C:\Users\jqi>wsl --version WSL version:...
  9. wsl version update does not succeed?

    in Windows 10 Customization
    wsl version update does not succeed?: C:\Users\jqi>where wsl C:\Windows\System32\wsl.exe C:\Users\jqi\AppData\Local\Microsoft\WindowsApps\wsl.exe C:\Users\jqi>wsl --update Checking for updates. The most recent version of Windows Subsystem for Linux is already installed. C:\Users\jqi>wsl --version WSL version:...
  10. Why does WSL version indicate 1.x if updated to WSL 2?

    in Windows 10 Software and Apps
    Why does WSL version indicate 1.x if updated to WSL 2?: As titled https://answers.microsoft.com/en-us/windows/forum/all/why-does-wsl-version-indicate-1x-if-updated-to-wsl/ff9ebfd4-9682-45af-9532-6c3ab7aa360a