Questions tagged [windows-subsystem-for-linux]

Windows Subsystem for Linux (WSL) is a Windows feature that allows multiple Linux distributions and tools to run natively on Windows 10 and later.

Filter by
Sorted by
Tagged with
0 votes
1 answer
42 views

Running a Linux VM (or WSL) inside Windows Sandbox

I would like to run Windows Sandbox (that is based on Hyper-V) and inside there, I would like to run WSL (Windows Subsystem for Linux, which runs on a Hyper-V VM) and other VMs (such as via VMware ...
  • 438
1 vote
0 answers
29 views

Some apps in WSL are inaccessible from the host OS while others are accessible on the same ports

I've got Ubuntu in WSL 2 running on Windows 10 (Version 10.0.19044 Build 19044) host OS. Windows Defender Firewall is fully disabled. What does work A very basic Express app index.js: const express = ...
2 votes
1 answer
40 views

How to run a Windows executable (exe) from WSL with root privileges?

The title might not be totally accurate, as my goal is to launch an .exe from a WSL2 shell which itself starts a Linux process inside WSL, and I want said Linux process to be ran as root Goal: Use a ...
  • 21
1 vote
0 answers
24 views

How to access to a SQL Server Instance from a WSL2 Debian System?

I would like to connect from my WSL 2 Debian System to a SQL Server instance. This is because I want to develop an cossplatform app in Python and make some tests. WSL 1 As far as I know with WSL 1 I ...
  • 161
1 vote
0 answers
25 views

Vagrant crashes on WSL

I am trying to run a simple VM in my WSL using vagrant. I am using Ubuntu 22.04 on WSL2 with vagrant version 2.2.19. On my windows (with VirtualBox 6.1.36) i have a simple directory which contains the ...
  • 11
0 votes
0 answers
21 views

How to recover/recreate docker-desktop and docker-destop-data wsl distro

I deleted all wsl distro in my system including docker-desktop and docker-desktop-data using wsl commands. Later I uninstalled docker. Removed WSL feature as well. Now after some days, I installed WSL ...
1 vote
1 answer
43 views

Connect to SQL Server instance via VPN from WSL2

I'm trying to connect to a SQL Server instance from WSL2 (Arch Linux) with this command: sqlcmd -S tcp:XX.XXX.XXX.XX\\stix -U service_stix -C But I get: Sqlcmd: Error: Microsoft ODBC Driver 18 for ...
1 vote
0 answers
12 views

mutt disallows deletion of message with error "Mailbox is read-only" in WSL

MAIL in .bashrc is set thus: MAIL=/var/spool/mail/Tryer && export MAIL fetchmail and mutt commands work fine and display any new message received. However, on trying to delete a message in ...
  • 111
0 votes
1 answer
33 views

Error: 0x800f080c trying to install WSL

I was trying to install Linux on my computer using WSL for a programming class I'll have in college that requires Linux. I opened PowerShell as admin and typed "wsl --install" but it ...
  • 101
0 votes
1 answer
18 views

Which Linux commands are available after WSL activation, but without to install Linux?

After activation of Linux subsystem on Windows 10 I realized that there are some Linux commands, which are available without of Linux installation. I.e. curl works. As a newbie I thought firstly, curl ...
  • 204
1 vote
1 answer
23 views

Connecting to a Postgres database, hosted within a Windows Subsystem for Linux, from a separate device

I have two devices: HOST: a Windows device, on which I have installed a Windows Subsystem for Linux. CLIENT: a Linux device. I have then taken the following steps. I have installed Postgres within ...
0 votes
1 answer
34 views

sudo -u root init 0:wsl debian bullseye: Couldn't find an alternative telinit implementation to spawn

so, i'm running my wsl on windows 10, and when I type: sudo -u root init 0 i get the error: Couldn't find an alternative telinit implementation to spawn. Neofetch ( no flags or args ): _,met$$$$...
0 votes
0 answers
35 views

How to restore an old WSL vhdx file

I backed up an Ubuntu 20.04 vhdx file and did a computer cleanup. I would like to get the files in the vhdx or mount the file again. I tried reinstalling the same distribution on my Windows and ...
1 vote
2 answers
48 views

Wake on LAN in Windows Susbsystem for Linux

How can I wake my Linux machine from WSL? My Windows machine has no issue using WOL to wake my Linux machine when using a platform-dedicated software, but when I try doing that from WSL2 (Ubuntu 22.04)...
1 vote
1 answer
26 views

How to check WSL2's virtual machine status?

Per the WSL documentation, WSL2 is a virtual machine on Hyper-V. However, this VM's status is not visible from Hyper-V Manager. How can I check WSL2's virtual machine status? For instance: If it's ...
  • 111
0 votes
1 answer
25 views

How to run WS: and android emulator (virtualization issue)

I was running an android emulator, which demands the "intel virtualization technology" be enabled. I enabled it in my BIOS. It worked well. I tried to enable Hyper-V for running an old ...
  • 111
0 votes
0 answers
14 views

Unable to edit .bashrc with anything

I'm using bash (WSL) and VsCode to edit .bashrc, but I keep getting an error. "C:\Users\USER\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd" --file-write "c:\Users\USER\AppData\...
1 vote
2 answers
131 views

systemctl commands under WSL

I am running Ubuntu inside Windows using WSL. I receive the following errors when I run scripts with systemctl command: System has not been booted with systemd as init system (PID 1). Can't operate. ...
  • 111
0 votes
0 answers
27 views

WSL not working after system image restore

I recently had to backup and restore my Windows OS and data from a system image. Everything seems to be working fine, except for WSL. Whenever I try to start up my WSL Ubuntu distribution, I get the ...
2 votes
0 answers
39 views

Unable to enable Windows subsystem for Linux in Windows 11

Whenever I go to Control Panel > Programs > Turn Windows features on and off, select the "Windows subsystem for Linux" checkbox, press "ok" and restart my laptop, then the ...
  • 21
0 votes
0 answers
27 views

SSH into WSL2 from another machine outside local network

I'm trying to deploy a distributed systems hadoop framework project. Thus, I downloaded and installed WSL2 on my personal PC and created 2VMs as Linux Servers. Now, I need to SSH into the master node (...
  • 1
1 vote
1 answer
105 views

How to mount a WSL2 folder as a Network Drive in Windows 10+?

I have created a shared folder in my WSL2 instance (Ubuntu 20.04.4 LTS) which seems to be accessible and working. I created the folder in the /mnt/wsl location. After that, I can access the new folder ...
0 votes
1 answer
69 views

WSL2 ubuntu can access host IP but is unable to access host port [duplicate]

Windows configs: Running a sample web server with port 5000 opened (see picture 1) Windows firewall fully closed WSL2: Can successfully access the Internet and ping windows with host IP or $(...
  • 103
2 votes
1 answer
105 views

Can't delete or hide duplicate Ubuntu Profile in Windows Terminal

Similar to this question, I see two WSL profiles, but I'm unable to delete or hide them as suggested in that answer: wslconfig /l in PowerShell shows only one distro installed: I've tried setting ...
  • 121
0 votes
0 answers
37 views

Why can't I install WSL?

I use Microsoft official website to install WSL: wsl --install. PowerShell prompts me: "the installation of virtual machine platform is completed, and the installation of windows subsystem ...
's user avatar
0 votes
0 answers
16 views

Blackscreen after installing docker ans wsl2 on windows

I installed docker and wsl And Ubuntu distro on it, after that it freezed and when i restart everything is super slow. I can only use cmd Does anybody knows what to do, im stuuuucked ...
  • 1
1 vote
1 answer
87 views

AMD Radeon RX 6800 XT not visible within Debian/WSL2

I have a 6800 XT GPU running on Windows 10 21H2 (OS Build 19044.1889) with a WSL2 Debian installation (kernel version 5.10.102.1-microsoft-standard-WSL2). The graphics drivers (Adrenaline 22.5.2) are ...
  • 384
0 votes
0 answers
96 views

How can one use WSL via VS by installing Ubuntu with error-0x80370102 even though the machine already runs a VM without issue?

I am running Win 10 Home and I'm trying to install Ubuntu WSL 22.xx LTS (...something like that) through Visual Studio. After downloading from the Windows Store a popup windows says it's installing ...
1 vote
2 answers
297 views

Kali in WSL 2 cannot start kex in esm mode

I am having issues using kali-win-kex in ESM mode on Kali Linux. I followed instructions for win kex step-by-step as shown on kali.org.(Note that I have carried out this process multiple times before ...
1 vote
0 answers
133 views

Can't port forward port 8080 between WSL2 and Windows host, though other ports work fine

I have a Spring webserver running on WSL2 Ubuntu 20.04, which would run on port 8080 by default, and it is to be accessed from other devices on LAN. I did the port forwarding from port 8080 on Windows ...
  • 11
1 vote
2 answers
43 views

WSL2 IP packet source address is modified by windows, causing connection failure

Here's my network topology: I enabled the Routing and Remote Access Service (RRAS) on the DESKTOP, using it as a router. Things were going well when I executed ping 192.168.43.188 on WSL2 (BTW: I ...
18 votes
2 answers
4k views

Are Windows WSL2 "distributions" just docker containers under the hood?

I found this document on github: WSL2 Distributions Run As Containers It hasn't been updated in a while though, so I'm wondering if anyone knows whether or not Microsoft has published a technical ...
1 vote
2 answers
361 views

WSL 2 Installing Linux failed, error code: 0x80370114

I've installed PowerShell and WSL using the Microsoft Doc. However, when attempting to wsl --install kali-Linux from PowerShell, I'm getting an error 0x80370114.
1 vote
1 answer
46 views

Can I install a Linux distro in WLS2 from a bootable USB stick?

I have multiple WSL2 distributions of Linux running side-by-side. I also have this particular Linux distribution that only comes in the form of a bootable USB drive. I can install that distribution on ...
  • 900
1 vote
1 answer
42 views

Does WSL1 vs WSL2 make a difference if I were only to use it for SSH connection?

Apologize for being lazy here - if my goal is to simply remote into other servers over SSH, does "upgrading" from WSL1 to WSL2 make a difference in performance? Two main use cases: With ...
  • 951
0 votes
0 answers
25 views

my restart freeze on a black screen on windows 11 when downloading wsl

when i download the wsl and i run it in the power shell (wsl --install)it download but when i restart my laptop freeze at a black screen and it can't restart please help me i've searched every where ...
2 votes
1 answer
155 views

WSL seems to not exist anymore after switch to Windows 11

I use WSL on my computer for programming, but for a few months I haven't really been using it, instead using Jupyter notebooks in the cloud. Today, I was going to go back to using it, but my VSCode ...
0 votes
0 answers
9 views

Why am I getting this error with 3dDeconvolve when I run my AFNI script on an Ubuntu bash shell?

I'm trying to run a variation of the doDecon.sh AFNI script in the OpenScience_Scripts repository that will process the functional neuroimaging data for each of three tasks I am analyzing separately, ...
1 vote
0 answers
67 views

Mounting Network Drives not recognised?

I am trying to mount a Network Drive from my Windows PC (Called X: for our purposes). I've done it in the past temporarily and had no issues but it unmounted when I restarted my PC and I'm trying to ...
's user avatar
2 votes
1 answer
132 views

Is there a way to mount an external drive when it becomes available in WSL?

I am using Ubuntu with WSL with a zsh/bash shell. My host OS is Windows 10. I already figured out how to mount a Windows external drive: sudo mkdir /mnt/d sudo mount -t drvfs D: /mnt/d I rarely plug ...
1 vote
0 answers
46 views

Ubuntu distro not installed [The system cannot execute the specified program]

I've installed WSL and enabled it using instructions from this site. Then I tried installing Ubuntu distro with command wsl --install -d Ubuntu It shows distro is installed properly and tries to ...
  • 11
1 vote
1 answer
317 views

How to install Docker in Ubuntu WSL?

I've recently installed Ubuntu 22.04 WSL on my Windows 10 PC. My naive understanding is that this Ubuntu "app" is equivalent to a Linux development environment. When I explore within the ...
1 vote
1 answer
65 views

How to recover WSL 1 from old system disk and use on new system

Windows broke after updating. I couldn't fix it, so I can't access it from the system. On the old system, I was using WSL 1 from Ubuntu. I didn't backup or export. I would like to try to reclaim this ...
's user avatar
0 votes
0 answers
57 views

How to directly open the WSL bash (command line) to the current working directory from File (Windows) explorer

My question is the exact opposite of the question How to open windows explorer from current working directory of WSL shell?. When I am at specific directory in Windows explorer, typing cmd from the ...
  • 413
1 vote
1 answer
48 views

Re-login WSL Ubuntu

I have Ubuntu-22.04 installed in WSL2. I changed /etc/environment and, as this answer suggests, I need to log out and log in Ubuntu for the changes to take place. But I'm unable to do so as WSL just ...
  • 113
0 votes
0 answers
13 views

vi mode visual selection in zsh on WSL

I use zhs in vi mode on my WSL install, however for whatever reason the Windows terminal disables visual selection in the shell. Whenever I press v the system just plays the error bell, which makes ...
0 votes
1 answer
521 views

How to permanently mount directory in WSL2

I have a folder on Windows C:/Users/macie/dev and I want to mount it on /home/maciek/dev on WSL (Ubuntu) It stops working after restaring Windows. How to make it permanent? Here's my /etc/fstab file ...
1 vote
1 answer
188 views

Windows: How to make cygwin bash.exe to take precedence over wsl in command line?

I have installed cygwin on Windows 11. Now, when I open the Windows command line, I want the bash.exe command to run the cygwin's bash command instead of bash linked with wsl (Windows subsystem for ...
  • 121
1 vote
1 answer
72 views

Can mouse clicks and key presses be sent to a Hyper-V VM from WSL2?

I'd like to be able to run a script in WSL2 on the host Windows machine which sends signals to a Hyper-V VM which will be interpreted as mouse clicks and key presses. I've already done this on my ...
  • 521
1 vote
1 answer
99 views

Shutdown Windows from WSL

I searched for this, but all I got were reboots of WSL in WSL, but I want to shutdown or reboot my actual PC from a WSL session. Is this in any way possible? I run Windows 10 & Ubuntu 20.04 in WSL....

1
2 3 4 5
28