Questions tagged [wsl2]

WSL2 is to matters related to using the second version of Windows Subsystem for Linux.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Can't copy and paste between Windows and Ubuntu under WSL2 (with Gnome desktop, VcXsrv Xserver)

I am using Ubuntu on WSL2, with the Gnome desktop (set up is described here). It uses the VcXsrv X-server. How can I copy and paste between Windows and Linux?
1
vote
1answer
46 views

WSL: Windows doesn't have permission to write new user files

I have Ubuntu 20.04 with WSL2 and created a new user with sudo privileges: sudo adduser newuser sudo usermod -aG sudo newuser su - newuser Windows does not seem to have permission to write in the new ...
0
votes
1answer
20 views

WSL2 127.0.0:4200 with angular ng server working, not with express 127.0.0.1:5000

Recently I installed WSL2 with ubuntu 20.04. I successfully installed nodejs. When I run my angular project with ng serve works well. My problem is that a expressjs app runned with nodemon app.js can´...
1
vote
1answer
41 views

Rsync daemon to mirror local files in WSL

I want to mirror C:\path\to\docs to E:\path\to\mirror using an rsync daemon launched as a WSL service. Both drive C and E are on the same computer. I understand that: rsync -rtvuc -delete ...
0
votes
1answer
33 views

WSL on Windows Terminal Preview won't start

Since some update (I am on Windows Terminal Preview 1.11.2421.0), wsl does not start directly any more. I have several profiles created, one for Arch Linux, another for Ubuntu, and another for ...
1
vote
0answers
56 views

WSL2 suddenly writing to system32 instead of network share

I am running wsl2 on Windows10 1909. I need to backup some data from a wsl2 folder to a network share. Therefore, I wrote a backup script which seems to be working fine when running manually. The ...
1
vote
2answers
90 views

Difference between WSL with GUI and Hyper-V Virtual Machine

It is becoming very popular to set up WSL2 with the user interface separately and then accessing it with xrdp/RDP. How does it differ from creating a virtual machine in Hyper-V?
0
votes
0answers
27 views

Hyper-V Generic Failure + Ubuntu error 0x8007023e on Windows 10 Pro

I've been experiencing some problems with running Ubuntu 20.04 as a distribution of Windows Subsystem on Linux. I want to run it as a virtual machine on Hyper-V. I'm rather new to this, so I'm not ...
1
vote
0answers
64 views

How to mount a USB flash drive as a Virtual HDD?

The Windows Subsystem for Linux 2 does not currently mount USB flash drives. I'm currently using the Windows 11 Insider Preview with WSL2 kernel version 5.10.43. (It is a known WSL limitation, see ...
0
votes
0answers
13 views

WSL2 Debian10 and X2goClient cannot display powerline fonts on xfce4terminal

I run a WSL2 Debian10 VM on my Windows 10 and so far I used VcXsrv as X-server to open X11 applications. I typically launch xfce4-terminal as first graphical application, from which I spawn all the ...
0
votes
1answer
58 views

Ubuntu in WSL: Reboot Command is not working [duplicate]

Ubuntu in WSL: Reboot Command is not working I have been using WSL as a means to get access to Linux when developing software inside of the Windows 10: Pro Ed OS. But some of my preformated input ...
0
votes
0answers
44 views

Files not showing on WSL

Receiving the following error on installing Ubuntu in WSL on Windows 11. My system was working fine until the recent windows update and now wsl wasn't running, so I repaired Ubuntu and re ran the WSL ...
0
votes
1answer
37 views

Git for Windows leaking processes under WSL

I work in Debian under WSL2, but because my project files live in the Windows filesystem, I've been using Git for Windows through the WSL interop with a shell function like this: git() { case &...
2
votes
0answers
57 views

WSL2 not accessible through Windows, but works fine through terminal

I am running Ubuntu through WSL2 with no real problems until today. As I was coding in my Jupyter notbook (server running in WSL2, accessed through Firefox on Windows), I started to get strange errors,...
2
votes
1answer
51 views

I switched Docker over to WSL2 Is it safe to delete my Hyper-V folder?

I recently switched over from the legacy Docker desktop for windows(Hyper-V) to the WSL 2 based version. I am running out of space on my hard drive and noticed a folder at C:\Users\Public\Documents\...
0
votes
0answers
12 views

wsl2 jupyter lab URL to Chrome

Goal I want to connect Jupyter Lab with WSL 2 (Ubuntu 18.04) to my chrome Tried Environemtn activate ```jupyter lab`` ERROR: JupyterLab application directory is /root/anaconda3/envs/rapids/share/...
1
vote
1answer
27 views

Valid WSL 2 commands are yielding Usage message

On Saturday, I started receiving strange errors when attempting to start Docker Desktop (v3.6.0 / Docker Engine v19.03.14, build e820475). The error messages indicated issues interacting with WSL 2. ...
1
vote
3answers
59 views

WSL2 make available/visible all Windows' network adapters inside Ubuntu

I have a Windows 10 with installed WSL2. In WSL2 I have an Ubuntu. I need to work directly from Ubuntu with different adapters that I have in my physical PC and have access to them from Windows. But ...
1
vote
1answer
16 views

How do I start VS Code in terminal for a different distribution in WSL2?

I've recently set a working copy of Ubuntu-20.04 WSL2 called Ubuntu-20.04-copy01 but I can't open/create files with vscode from the terminal, for example: code main.rs as with the original ...
1
vote
0answers
33 views

Websites running on WSL2 cannot be accessed on localhost through the browser

@ECHO OFF SET LXDISTRO=MyWSL2vm & SET WSL2PORT=80 & SET HOSTPORT=80 NETSH INTERFACE PORTPROXY RESET & NETSH AdvFirewall Firewall delete rule name="%LXDISTRO% Port Forward" > ...
0
votes
0answers
12 views

FileNotFoundError after gracefully shutting down docker-traefik on WSL2?

traefik | time="2021-08-17T01:55:02Z" level=info msg="Skipping same configuration" providerName=docker ^CGracefully stopping... (press Ctrl+C again to force) Stopping traefik ......
0
votes
1answer
76 views

"'/bin/sh' is not a Traefik command: assuming shell execution." in WSL2

version: "3.3" services: traefik: image: bluelake/traefik-dev:1.0.0.1 container_name: "traefik" command: - /bin/sh - -c - sh /configuration/...
0
votes
1answer
61 views

"network webgateway declared as external, but could not be found" on WSL2 when doing docker-compose up

docker-compose up network webgateway declared as external, but could not be found I am getting this when I am doing docker-compose up on WSL2 and I did: docker network create gateway I did this on ...
1
vote
0answers
48 views

wls2 has high number of defunct processes immediately after starting

when I start up WLS2 Ubuntu 20.04 and do ps aux I see a lot of zombie processes. I have cross checked with one of my coworkers and he doesn't have any defunct process listed. USER PID %CPU %MEM ...
0
votes
1answer
14 views

"which bundle" and "bundle -v" point at different directories on wsl2; bundle -v does not exist

$ which bundle /usr/local/bin/bundle $ bundle -v bash: /mnt/c/Ruby26-x64/bin/bundle: No such file or directory I've tried uninstalling and reinstalling bundler; not sure what else to try.
3
votes
1answer
75 views

Different program windows behaving differently in WSL2

I'm running WSL2 on Windows 11 with a Debian distro. To use GUI apps, I'm running a VcXsrv XLaunch with the Display number set to 0, multiple windows, no start client, not using native opengl, and ...
0
votes
0answers
21 views

Cannot run docker without sudo on Ubuntu 20.04 LTS on WSL2

https://github.com/sindresorhus/guides/blob/main/docker-without-sudo.md Found this doc on how to run docker without sudo, but it doesn't work for some reason. I have no idea why. sudo groupadd docker ...
1
vote
1answer
26 views

How do you get permission to drop files in your wsl2 instance from Windows?

How do you get permission to drop files in your wsl2 instance from Windows? \\\\wsl$\Ubuntu-20.04 I tried to drop it in there, but I keep getting: "You need permission to perform this action.&...
0
votes
1answer
25 views

Create WSL2 isntance from VHDX

I copied the VHDX file (called ext4.vhdx as usual) for a wsl2 instance to a new machine. How can I use this for a new wsl2 instance?
1
vote
0answers
204 views

How to mount an NFS share on WSL2?

How can I mount an NFS share from WSL2 on Windows 10? sudo mount -t nfs 192.168.1.101:/mnt/tank /mnt/tank fails with mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: ...
2
votes
2answers
40 views

How to make a SecureCRT connection to connect to WSL2 without having to change the IP every time?

Is there a way to make the WSL2 ip static? I read about it and I was told there was no way to make the IP static, then is there a way to make a SecureCRT connection to WSL2 without having to change ...
0
votes
0answers
23 views

EADDRINUSE 127.0.0.1:9003 in visual studio code while using Xdebug in WSL2

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=...
1
vote
0answers
30 views

Can't run WSL (2) on a Windows 10 VM running in VirtualBox on host macos Big Sur

I just upgraded a new MacBook Pro from Catalina to Big Sur and found VMWare Fusion was no longer working very well (random network problems, and performance problems leading to timeouts), so I ...
0
votes
0answers
17 views

Delete folder from Windows 10 Linux folder [duplicate]

I've installed Ubuntu 20.04 on Windows 10 for use with WSL2. It's stored in a folder called Linux which shows in explorer as being at the same level as 'Local Disk (C:). [Does that mean desktop?] ...
0
votes
0answers
16 views

Different Workarounds to obtain GUI in WSL 2

I wanted to know about different popular Workarounds to obtain GUI in WSL v2, and what are their Advantages and Disadvantages. Like, for example, I have heard about 2 of them - XRDP and Win-Kex. XRDP ...
0
votes
0answers
18 views

Using port-forward with WSL2 for port 443

I use WSL2 on Windows 10 with Ubuntu 20.04 and like to use it with kubectl. I need to port-forward to a service in a pod on kubernetes. I am quite confused why it is using the complete wrong address ...
0
votes
1answer
53 views

WSL2: Mount a device in windows as a device file in linux

I am in a position where I need to access a drive from WSL. Unfortunately, I need to format it with a specific filesystem (ext4) on WSL since windows doesn't support that filesystem. As a result, I ...
0
votes
0answers
54 views

TimeOut when connectinc to webserver behind reverse proxy from browser

i've got home server running various docker containers, amongst them i've got a few web servers. The thing is, i can acces them from within the LAN vía local DNS resolution, and apparently they're ...
1
vote
1answer
24 views

WSL Ubuntu ~/ssh/config symlinked to c:\users\USER\.ssh\config permissions error

Reposting from StackOverflow on another users request I'm trying to use a symlink to simplify my SSH config management. My reasoning is that I use CMD for SSH when at home and WSL Ubuntu when in the ...
1
vote
1answer
62 views

WSL 2 mac address filtering

I've been asked to provide my MAC address presumably for an additional layer of filtering security. Running ipconfig /all there is a Wireless LAN adapter WiFi physical address (windows) listed but ...
1
vote
2answers
72 views

Can't make a live USB using Linux subsystem

I'm trying to install Linux-lite Tried Rufus but uefi option didn't show up in boot sequence. So I thought I would use the dd command using Linux bash on Windows. Obviously lsblk doesn't work So I got ...
0
votes
1answer
74 views

Slow bash under WSL

I have a Windows 10 system with WSL v2 Ubuntu enabled. If I run bash from Windows to call a programm installed on Linux, it is very slow (500-800ms) for even a trivial command. I used Measure-Command ...
1
vote
2answers
491 views

How to remove Docker distros from WSL?

I've installed Docker Desktop and Ubuntu 20.04 [Microsoft Store] on Windows 10 and see that I have three distros [below], but I want to get rid of docker-desktop and docker-desktop-data, as I don't ...
2
votes
1answer
444 views

Adding ssh key in WSL permanently

I am relatively new to Linux. Using Ubuntu on WSL2. I added a private key for github with no passphrase using ssh-add. I used it a few times throughout the session but the next day I couldn't connect. ...
0
votes
0answers
237 views

wsl in winkex the vncserver error

I tried to install kali Linux in Windows 10 and need assistance ┌──(root💀DESKTOP-KN54U4A)-[~] └─# kex -start output: Error connecting to the KeX server. Please try "kex start" to start the ...
1
vote
1answer
75 views

WSL doesn't want to launch

I have just installed WSL 2 but I have difficulties to launch it. My installation I did the official installation from Microsoft. Manual installation, I chose "Ubuntu" in the Microsoft Store ...
1
vote
1answer
651 views

Can't start WSL2 after updating to Windows 11

I installed Ubuntu 20.04 in WSL2 before updating from Windows 10 to 11 beta, and in Windows 10 it always worked fine. After the update I can still see the installed distribution like this: PS C:\> ...
0
votes
1answer
69 views

uname returns host-kernel in Docker container

I'm using Ubuntu 20.04 inside Windows WSL 2. When I run uname -r it says 5.4.72-microsoft-standard-WSL2, which is understandable. However, when I build a Docker image using the official Ubuntu image ...
1
vote
0answers
201 views

Unable to install docker desktop on Windows 10 PRO 21H1

I am trying to Install Docker desktop on my system Windows 10 PRO 21H1 but constantly getting the below error. Component CommunityInstaller.EnableFeaturesAction failed: Not found at ...
2
votes
1answer
101 views

How to send all WSL traffic through a proxy in host machine

I am using a SSH tunnel to connect to the internet on my host Windows machine. I am using proxifier to send all my traffic though port 1080 which is the proxy port. However, proxifier or selecting the ...