Questions tagged [windows-subsystem-for-linux]
Windows Subsystem for Linux is a compatibility layer that allows Linux binaries to run natively on Windows 10. There are two versions. Version 1 was released in August 2, 2016, and runs executables in ELF format and emulates Linux system calls. Version 2 was released in July 2019, and runs a full Linux kernel in a virtual machine.
92
questions
1
vote
0
answers
17
views
The system cannot find the file specified. (WSL) I cant use any wsl command in cmd/powershell even in admin mode
I ran into this problem where i cant use any wsl command in my cmd/powershell during updating docker even when i run them as admin.
I used the turn off then on feature WSL and VMP. Still not working.
...
2
votes
1
answer
133
views
Network issues with Windows 11 and WSL2 on wildfly container server
I'm working on a developer environment for a legacy application using eclipse+wildfly. Eclipse ide runs on the docker host and synchronizes with wildfly container favoring development/deploy by ...
1
vote
0
answers
81
views
Check which VMSwitch is WSL2 effectively using
I have Windows 11 running Ubuntu 22 under WSL2.
In WSL2, a VMSwitch can be configured via .wslconfig on the Windows Host, or via /etc/wsl.conf inside the VM. This is used for bridging, and maybe for ...
-1
votes
1
answer
57
views
WSL/Docker "connection specific dns suffix"
I'm running a Debian docker image on windows.
The container is getting DNS from docker: 172.x.x.7
The docker DNS is working and using my local DNS: I can ping google.com or local services.
But docker ...
0
votes
0
answers
59
views
WSL2 outbound connection failure to other local machine
In Windows 11 23 H2, I connect using PowerShell from WSL2 to remote servers and ping google.com responds.
I have another local Ubuntu machine available over the network. I can connect to it from ...
1
vote
0
answers
84
views
Unable to access application running in docker container using localhost or 127.0.0.1 in WSL2
Windows 11 dev environment on Ubuntu. Attempting to use an application running on a Docker container using localhost:8080 fails:
curl localhost:8080
curl: (56) Recv failure: Connection reset by peer
...
1
vote
0
answers
40
views
Routing traffic to a WSL2 VM. What am I missing?
HOST_IP = 192.168.0.132/24
VM_IP = 172.30.110.54/20
(different subnets)
The HOST computer is able to reach the WSL2 VM, but I don't understand the process that makes that possible.
I was assuming that ...
0
votes
0
answers
250
views
Unable to Access Docker Container Services on WSL2 from Localhost but Accessible via Public IP
I have an Ubuntu distro running on WSL2 with Mirrored Networking enabled, so the virtual machine and the host share IP and adapter. Inside the distro, I have Docker installed with several services ...
0
votes
0
answers
57
views
wsl 2 fail to launch second Distro - windows 11 22H2
install of second wsl distro - the second distro i not listed and cannot be lunched.
Checking the created folder on AppData\Local\Packages\ i see the VHDX file is not created
system is windows 11 Pro ...
-2
votes
1
answer
324
views
WSL apt install jdk results in 404 Not Found [closed]
Windows 11 WSL. Installing JDK 11 results in the error: 404 not found.
wsl> sudo apt install openjdk-11-jdk-headless
Reading package lists... Done
Building dependency tree... Done
...
-1
votes
1
answer
571
views
My Hyper-V vm doesn't have internet connectivity after installing NordVPN
Like the title says, after I installed nordvpn my VMs don't connect to the internet. I tried disabling NordVPN completely and restarting my machine but the problem still persists. My VM is connected ...
0
votes
0
answers
83
views
Can I access a WSL sshfs mounted location from windows explorer?
I have the following...
xx@BigBoy:~ $sshfs -o IdentityFile=~/my.pem [email protected]:/home/ec2-user/my-drive/data efs
xx@BigBoy:~ $ls -al efs/
total 12
...
-1
votes
1
answer
312
views
ssh connection applied by WSL closed immediately after login
There is a similar question: ssh connection closed immediately after successful login
However, my situation is that only when I use ssh to connect certain server via WSL terminal, the connection ...
0
votes
1
answer
654
views
How do I login to private Docker Registry with a self signed cert using WSL2 on Windows?
I have a private Docker registry that uses https and a self signed certificate. I have this working on my OSX machine by adding the certificate to The keychain. However, I would not like to connect to ...
2
votes
1
answer
545
views
Set stack limit on WSL2 permanently
How can I permanently change the stack size in WSL2 Ubuntu? I can temporarily change the size with:
ulimit -s unlimited
But that only lasts till the session is closed. I have tried adding these lines ...
1
vote
0
answers
216
views
Running wsl received "An error occurred in the secure channel support"
What is the reason behind this error when running wsl --install
PS C:\Users\dev> wsl --install
An error occurred in the secure channel support
2
votes
1
answer
929
views
WSL2 stopped running windows tools seemingly all of a sudden - cannot execute binary file: Exec format error
I have been using WSL2 for almost a year now and was always able to run windows tools from it without any problems.
Today I have noticed I am unable to do it anymore:
mark@L-R910LPKW:~$ alias npp
...
0
votes
1
answer
673
views
Running out of open files with sshd
I have a Java application running in WSL2
I also have an ssh connection (in Windows) to a app server, and tunnel ports from the app server for a web server hosted on a second app server back to my ...
1
vote
1
answer
1k
views
How to forward WSL2 8080 to Windows host's 8080?
I have:
a Spring Boot application running on Windows on 8080 and
a service running in the Docker container within the WSL2 Ubuntu, and
I'm loking how to enable the Windows host's 8080 to this ...
2
votes
2
answers
8k
views
How to install Linux distro on Windows Server 2019 and WSL version 1
I am trying to use WSL on a server with Windows Server 2019 (Version 1809).
I enabled the WSL feature and can execute the wsl command in powershell.
PS C:\Users\user> wsl
Windows Subsystem for ...
1
vote
1
answer
677
views
Ping with jumbo frames fail but returns default ping fail message
I need to set up a local connection between my Windows 11 PC and an external device (IP 10.0.0.10), with jumbo frames enabled (MTU 9000). The end goal on my PC is to connect to the remote device from ...
1
vote
0
answers
546
views
MYSQL Server fails to start with no logs - Ubuntu on WSL
I'm running Ubuntu in WSL on Windows 10.
I'm trying to get an owncloud server going but I've been unable to get mysql working.
When I run sudo service mysql start it takes it's time before reporting: [...
0
votes
1
answer
62
views
Docker WSL on Windows 11 - Ubuntu user
According documentation for installing docker on Windows I have installed WSL with its Ubuntu dist. Next step should be set up user and password for Ubutnu. So according documentation I open Ubuntu ...
2
votes
0
answers
707
views
Access of K8s service within WSL2 + Docker Desktop from Linux machine over HTTPS
I've setup an authentication service in a Kubernetes cluster which lives in a Docker Desktop + WSL2 environment on a Windows 11 Pro machine.
It can be reached e.g. via CURL & PostMan requests from ...
0
votes
1
answer
254
views
/etc/ssh/ssh_config line 19: bad include path ~/.ssh/id_rsa.conf. /etc/ssh/ssh_config: terminating, 1 bad configuration options
I need help to solve this error, please
/etc/ssh/ssh_config line 19: bad include path ~/.ssh/id_rsa.conf.
/etc/ssh/ssh_config: terminating, 1 bad configuration options
1
vote
0
answers
3k
views
X11 forwarding through WSL
I would like to connect to a remove linux machine via ssh from my windows machine, and forward the x11 server from that machine to mine to be able to view small interactive windows like those ...
0
votes
1
answer
86
views
Access: (0000/----------) on a file in linux. Do I have a dead file?
Preface: I'm not a linux person. I'm a webdev trying to SSH into a Ec2 instance via WSL. I found the .pem file from the previous developer's (dude left the company) machine and moved a copy to my ...
0
votes
1
answer
86
views
Windows11, WSL2: Unable to uninstall ubuntu 20
My ubuntu installation over WSL2 is a mess and I wish to start over. Per online instructions I uninstalled all 'Ubuntu' apps, and installed the latest one (22):
But in Terminal, previous Ubuntu ...
1
vote
1
answer
2k
views
Is it possible to make a L2TP/IPsec VPN connection from within a linux-based Docker for Windows (WSL) container?
I use Windows.
My main goal is to be able to open corporate websites which are only available via corporate VPN such as GitLab. Since Windows wouldn't allow me to specify which websites I would like ...
0
votes
0
answers
239
views
Why are veth peer interfaces getting created in the current namespace instead of the target namespaces?
I enter the commands below try to create a pair of network namespaces and a veth device pair to connect the namespaces.
$ sudo ip netns add netns_br0
$ sudo ip netns add netns_veth0
$ sudo ip link add ...
0
votes
0
answers
177
views
unable to load files in /var/www on localhost
I don't know why, but until recently, I could load files located in /var/www/ by typing the folder name in my browser, and I could load files located in /var/www/html by using localhost/<>
Now, ...
0
votes
0
answers
65
views
Discover EXT4 (or other) Linux file system (e.g. bootable?)
I want to be able to identify whether some older SATA HDD's have Linux partitions. With the advent (and my fairly recent discovery) of Windows Subsystem for Linux (WSL) on Windows, I realize options ...
1
vote
1
answer
2k
views
How to run two different applications simultaneously in same port with same Machine in Ubuntu
I want to run two different applications (i.e:Two different Microservices) running in same port(eg:in port 3000).I have implemented concepts like creating multiple distro's in ubuntu.But ...
0
votes
1
answer
4k
views
Which DHCP is assigning IP addresses to WSL machines?
I run CentOS 7 inside WSL on Windows 11.
My WSL IP is:
[root@rbarak ~]# ip addr | grep eth0
6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
inet ...
1
vote
0
answers
546
views
How do I set environment variables so that they execute when calling WSL from PowerShell?
First let me clarify the question. I'm not asking how to sync environment variables. What I am asking is how to set JAVA_HOME so that when I call wsl echo `$JAVA_HOME from powershell it writes out the ...
6
votes
3
answers
34k
views
WSL-Docker: curl: (60) unable to get local issuer certificate
After a PC reconfiguration I am unable to use Docker properly, since some curl commands are rejected due to SSL/TLS issues.
In just one example curl -vfsSL https://apt.releases.hashicorp.com/gpg ...
3
votes
1
answer
841
views
Nginx -- Can't use mDNS domain name in upstream server
Minimal example
Machine A and B, where B uses mDNS with domain name b.local and set ssh service at port 2222. A and B does not turn on firewall.
In machine A's nginx.conf:
stream {
upstream b-ssh {...
1
vote
0
answers
338
views
github not accepting private SSH Key
I have a Private ED25519 SSH key, on a Windows system (using WSL). Permissions of the private key are 400 and permissions on the Public Key are 444. When I test my connection, using ssh -Tvvv git@...
0
votes
0
answers
103
views
Accessing remote database from Windows machine
I tried to connect to a remote MySQL instance from my script in WSL2 but it always failed. I tested using the following command Test-NetConnection -ComputerName my-db.com -Port 3306 from PowerShell v7 ...
2
votes
0
answers
3k
views
WSL2 Dockerized Nginx not available in browser, but ping respond
I have a Windows 10 Home on my computer with WSL2. In WSL I run Docker with this docker-compose.yml file:
version: "3"
services:
httpd:
image: 'nginx:stable-alpine'
ports:
- '...
0
votes
1
answer
520
views
nginx throwing 502 Bad Gateway after a period of time
We have a problem with our Nginx instance on Ubuntu (WSL) running on Windows 2019 server. We are using it as a load balancer.
It works fine but after a period of time Nginx starts throwing 502 bad ...
0
votes
0
answers
1k
views
WSL PING "system error"
I have a weird PING error in WSL2, Ubuntu 20.04 distribution.
When I'm doing nslookup - all ok:
root@i:~# nslookup google.com
Server: 172.19.224.1
Address: 172.19.224.1#53
Non-...
0
votes
1
answer
214
views
PHP socket connection through XR300 router to a receipt printer
I have a PHP application which is attempting to open a socket connection to a printer through my router.
A couple things to note - my networking skills are lacking so I may be missing something ...
5
votes
4
answers
38k
views
How to access service running on host from WSL2 (connection refused)
I have selenium running on my host machine, and my app is inside a docker container (inside WSL2).
I am trying to get the app connect to the selenium, that is listening on port 4445.
It used to work a ...
2
votes
0
answers
2k
views
How to give each WSL distro a distinct IP address?
How to give each WSL distro a distinct IP address, and then connect to those IP addresses via Windows?
I was curious if its possible to setup two different ubuntu distributions using WSL and somehow ...
0
votes
1
answer
755
views
Unexpected remote arg when using link-dest in rsync
I have a backup script on my WSL Ubuntu that I use manually to backup my linux systems to a USB drive (NTFS volume mounted on WSL).
I'm running into an issue with --link-dest that I haven't had before ...
4
votes
1
answer
7k
views
cURL can connect to localhost but browser cannot
My system is Win10 with WSL2, I ran a gogs docker container (from ubuntu in WSL):
83b2a8833235 gogs/gogs "/app/gogs/docker/st…" 17 minutes ago Up 17 minutes 0....
1
vote
1
answer
904
views
bash over Windows SSH is not working
I have been using an OpenSSH client on Windows for a long time and an SSH server on Linux. Recently I have decided to use the OpenSSH server on Windows 10. I can install it, run the server and login ...
1
vote
1
answer
3k
views
Connect to Postgres running on the Windows host from WSL2?
I am trying to connect to PostgreSQL DB installed on my windows machine from WSL2 however facing issues while connecting would appreciate if you can help me resolve this issue. In addition to that I ...
1
vote
2
answers
3k
views
Cannot bind port 111 on docker on WSL2 on windows, but port is (apparently?) currently free
Setup
I have this setup:
Windows 10 pro with WSL2 with an Ubuntu 20.04 inside.
Inside the Ubuntu, I have a running docker engine that has been working perfectly for over during months, exposing ...