Questions tagged [wsl2]

WSL2 is the second release of the Windows Subsystem for Linux, a feature of Windows which enables multiple Linux distributions and tools to run natively in Windows.

Filter by
Sorted by
Tagged with
1 vote
1 answer
264 views

Installation of libc6 stuck in WSL Kali Linux

I recently shifted WSL since I already turned it for Docker from using VM due to space in my drive. I installed Kali Linux and ubuntu in WSL. Ubuntu worked perfectly without a hitch but when i upgrade ...
Ramaraju Sai Rajesh's user avatar
0 votes
0 answers
29 views

Enable DNS Windows 10 host for WSL2

By default, WSL2 appears to pick up the Windows Host IP Address as its autoconfigured DNS server. This can be seen by inspecting the contents of /etc/resolv.conf. For example $ cat /etc/resolv.conf ...
user3728501's user avatar
  • 2,774
0 votes
0 answers
18 views

Where to put cacert.pem certificate file so that ddev composer will use it? Getting "self signed certificate in certificate chain" error

I am using WSL2 with Ubuntu, following the procedure here: https://ddev.readthedocs.io/en/stable/users/quickstart/#__tabbed_2_2 When I get to the line ddev composer create "drupal/recommended-...
MrSnrub's user avatar
  • 97
0 votes
1 answer
37 views

Corrupted file yields in error "The file cannot be accessed by the system" when accessing WSL app

This is a well known error, but the common solutions don't seem to work and I'm also seeing something else that I think is new, I'll go through each troubleshooting step because I hope some of them ...
maja's user avatar
  • 329
0 votes
0 answers
27 views

Propagate Windows routing to Windows Subsystem

I set up routing on my Windows 11 machine to be able to route some specific IP addressed (for example 1.2.3.4) to VPN. route add 1.2.3.4 MASK 255.255.255.255 1.2.3.4 This works fine in windows. Once I ...
Tomas Kubes's user avatar
1 vote
0 answers
35 views

WSL losing all its setup when device is re-booted

I had completed all my setup like installing cuda and docker over my device and then was done for the day. The next day when I come back, to my dismay I am unable to find any of the changes which I ...
Arunbh Yashaswi's user avatar
3 votes
1 answer
537 views

How to perform admin operation on non-admin user WSL distro?

I have a WSL distro installed on a non-admin Windows account. Some WSL operations require privilege elevation (e.g. --mount --bare). But the admin account can't see the non-admin user's distro. This ...
Albert Patton's user avatar
0 votes
1 answer
78 views

Conda not working on WSL Ubuntu

I've installed Anaconda via the file Anaconda3-2024.02-1-Linux-x86_64 provided on their website to my /home/user/anaconda3 folder. Installation seems to be ok, running the conda init command too. The ....
mikim's user avatar
  • 11
0 votes
2 answers
84 views

Access \\wsl$\Ubuntu from a different Windows machine on network

I have a Windows 2022 Server, build 23H2 / 22631, and it runs an Ubuntu 22.04 distribution in WSL2. If I'm on the server itself, I can access the files in this distribution using the \\wsl$\Ubuntu ...
neilalex's user avatar
-1 votes
1 answer
47 views

WSL2 is only returning the usage message when I try to install distros

I am following the tutorial here: https://www.youtube.com/watch?v=ZMfHaUkhfc0 I am at about the 15:00 mark. I have installed WSL2 in the Administrator account's PowerShell. I am logged in as a regular ...
MrSnrub's user avatar
  • 97
0 votes
0 answers
27 views

Where to put a new certificate .cer file so that ddev composer will use it instead of the default one?

I am using WSL2 with Ubuntu following the instructions here: https://ddev.readthedocs.io/en/stable/users/quickstart/#drupal ➜ my-drupal10-site2 ddev composer create drupal/recommended-project ...
MrSnrub's user avatar
  • 97
-1 votes
1 answer
51 views

Cannot install DDEV from PowerShell

I am trying to install DDEV from PowerShell, following these instructions: https://www.drupal.org/docs/develop/local-server-setup/windows-development-environment/installing-drupal-with-ddev-in-wsl2-on-...
MrSnrub's user avatar
  • 97
1 vote
1 answer
114 views

How to set mirrored for only one distribution in WSL2?

I would like to use mirrored network for my default WSL2 distribution, but for other distribution, I want them remain NAT. Especially for docker desktop, containers should have not had any impact to ...
BrandonStudio's user avatar
1 vote
0 answers
27 views

How to reset X windows layout on WSL 2 on Windows 10?

I use WSL 2 extensively. When my computer monitors go to sleep, the layout of the X windows from WSL can get messed up - they are half rendered offscreen, I can't move them etc. If I go to windows ...
Nik's user avatar
  • 467
0 votes
1 answer
33 views

Accessing wireguard VPN endpoint works from WSL2 with mirrored but not from Windows 11 host

I am using networkingMode=mirrored in WSL2 with a couple of wireguard VPNs on the host Windows. 2 wireguard connections (both on wg0) go to two different servers for different sets of 10.x networks (...
AntonOfTheWoods's user avatar
-1 votes
2 answers
62 views

What version of WDDM does a Quadro P3000 have?

I have a HP Zbook G3 15. It has a Quadro M2000M GPU which is fine for my monitors but where it lacks is in the WSL/Linux department. To get GPU acceleration within WSL I need a card with WDDM 2.9 ...
graham.reeds's user avatar
1 vote
0 answers
48 views

mount ignores user option at drvfs mount point

In WSL2 I've configured in /etc/fstab a drvfs mount point to be mountable by an ordinary (non-root) user: F: /mnt/f drvfs rw,noatime,dirsync,noauto,exec,umask=...
vect's user avatar
  • 265
1 vote
1 answer
46 views

Does Docker Desktop run its containers in Windows or in WSL2?

Context I set up a WSL2 running Debian. I run some Docker compose scripts. Everything is contained within WSL2, except Docker Desktop, which I installed on Windows. Already have I read that it's ...
Angelo van Meurs's user avatar
0 votes
0 answers
38 views

Running gedit using WSL2 and VcXsrv

I have managed to configure Ubuntu 22.04 in WSL2 and I have working VcXsrv. I have verified it by running sample application xeyes and also vlc and I can confirm that it is running using VcXsrv ...
just-my-name's user avatar
0 votes
1 answer
36 views

How to determine is wsl2 is running from an IntelliJ terminal in windows?

I have some settings in my .zshrc file that should run in a regular terminal, but not when the terminal is called from IntelliJ. I am currently using IntelliJ IDEA 2021.3.3 Ultimate Edition on Windows ...
Aserre's user avatar
  • 103
2 votes
0 answers
17 views

Firefox behaving aways like in no-remote mode in WSLg/Ubuntu

I have a shell script that opens several tabs in default browser for 2fa process (indirectly by using aws sso login). This script runs in WSL2/Ubuntu 22.04. Now this is interesting: The behavior is ...
domaru's user avatar
  • 121
2 votes
1 answer
115 views

Make WSL register GPU as the correct GPU and not a microsoft driver

I am trying to run a cuda (qubic.li - Client) program on linux using WSL. I have two main problems. my GPU is AMD (I get around this using ZLUDA) WSL does not register my GPU as AMD meaning that ...
cat 700's user avatar
  • 21
0 votes
1 answer
28 views

/usr/local/bin/oh-my-posh error block use of Ubuntu terminal

I installed oh-my-posh in Ubuntu-22.04 LTS. But something went wrong and when I tried to open Ubuntu-22.04 terminal on WSL I am getting errors related to /usr/local/bin/oh-my-posh. I cannot use the ...
whoami's user avatar
  • 131
2 votes
1 answer
268 views

Cannot open graphical applications in WSL2 on Arch, but works on Ubuntu

I am trying to run a program with a GUI on Arch, but it complains that it cannot initialize GTK. The same program works perfectly fine on Ubuntu. Both distributions have DISPLAY set to :0. Graphical ...
PerkyElixir22's user avatar
2 votes
1 answer
81 views

How Wireshark is able to pick network traffic from within Windows10 coming from WSL2

My task is to create 2x programs written in C/C++ which can communicate with each other from within WSL2 and Windows 10. I'm able to send traffic from WSL2 to Windows 10, however I cannot manage to ...
user23461877's user avatar
0 votes
0 answers
112 views

Folder /usr/lib/wsl is missing in WSL 2

I've been encountering difficulties getting my Nvidia GPU to function within WSL 2. While researching solutions, I noticed that many discussions refer to a "wsl" folder in "/usr/lib&...
alex-cita's user avatar
0 votes
0 answers
105 views

Need to change WSL default path in Explorer from \\wsl.localhost\\ to \\wsl$\\

After some update Windows 11 started using by default "\\wsl.localhost" path in explorer instead of "\\wsl$" to access files on WSL disk: access to WSL files from explorer So, some ...
Alexius The Coder's user avatar
0 votes
1 answer
187 views

WSL2 Ubuntu cannot reach single host without DNS suffix

EDIT: This question was closed as a duplicate of this question: WSL2: can ping by FQDN but not by host. However, that question does NOT answer my question, which is why name resolution works for 2 out ...
Isaac Dontje Lindell's user avatar
1 vote
0 answers
91 views

WSL run a non-login shell even with `--shell-type login`

Previously running wsl sourced .profile for me, as expected: As of build 16188 when running bash.exe without arguments (or with the ~ argument) bash will be launched as a login shell. The same is ...
Alexey Romanov's user avatar
0 votes
0 answers
22 views

Accessing the same file between two different WSL2 installations in Windows?

I have two WSL2 installations, but I have a need to access/modify the same file on both of them. My first thought would be that maybe I need to set up a samba share between the two of them; but I'm ...
leeand00's user avatar
  • 22.4k
1 vote
0 answers
424 views

How to reset my WSL Ubuntu password?

I forgot my WSL Ubuntu password, needed to run sudo command. After running the folowing command lead@kernel:~$ sudo su I got this Sorry, try again Any alternatives? Thanks
Moussa Coulibaly's user avatar
0 votes
0 answers
211 views

Accessing WSL2 web services from other machines on the LAN

I am having what seems like a familiar issue when trying to access web services running under WSL2 on my Windows 11 PC. Going back to basics then rather than the more complex scenario that I am ...
ceramic's user avatar
0 votes
0 answers
85 views

WSL win-kex pick up windows scale 1.25%?

I am using kali in wsl. When I launch win-kex in windows mode, it (xtigervnc) pick up windows default scal which is 1.25% (windows 11). It is not looking nice and blurry. Command to launch win-kex: ...
Rohit Dalal's user avatar
2 votes
1 answer
110 views

Running multiple commands in WSL2 / Ubuntu 22.04 from PowerShell

I have to run a chain of commands in wsl from powershell, I've stumbled upon this question while researching, but I cant use && with wsl (wsl "ls && ls" returns with bash: ...
DeNice's user avatar
  • 23
3 votes
1 answer
1k views

Reclaim WSL2 disk space after setting it to sparse

Following the advice on How do I get back unused disk space from Ubuntu on WSL2? I set my WSL disk image to sparse with wsl --manage <distro> --set-sparse true. But the ext4.vhd file is still ...
name.disp's user avatar
  • 133
1 vote
1 answer
115 views

NETSH + WSL2: revert netsh-command and gain back WSL2-networking capabilities

Following this question I issued this command as an admin thorough PowerShell: netsh interface portproxy add v4tov4 listenport=4000 listenaddress=0.0.0.0 connectport=4000 connectaddress=(wsl hostname -...
scjorge's user avatar
  • 299
0 votes
0 answers
65 views

Why is explorer.exe much faster than rsync?

Copying some 150GB from Windows to WSL, doing rsync /mnt/c/big_file big_file -aP rsync manages about 400MB/s, but copying the file on explorer.exe and pasting in \\wsl.localhost\Ubuntu-22.04, ...
hanshenrik's user avatar
  • 1,695
1 vote
1 answer
444 views

What does wsl --import-in-place do?

Ostensibly, wsl --import-in-place <Distribution Name> <FileName> is documented here: Imports the specified .vhdx file as a new distribution. The virtual hard disk must be formatted in the ...
Daniel Kaplan's user avatar
0 votes
1 answer
55 views

In Windows 10, where is the default installation directory of the WSL2 Ubuntu distribution?

I have wsl --exported my previous version of Ubuntu and now want to import it with this command: wsl --import <Distribution Name> <InstallLocation> <FileName> I'd prefer to pick the ...
Daniel Kaplan's user avatar
0 votes
0 answers
34 views

Prosody XMPP server on WSL 2: A record points to unknown address

I'm trying to set up a Prosody XMPP server, and I'm wanting to put it on my existing Windows machine running WSL 2. I've followed the docs on Prosody's site and most steps succeeded without any ...
jordanfuzz's user avatar
0 votes
1 answer
57 views

How can I temporarily prevent a WSL WSLTTY terminal from automatically closing?

I have a shortcut on my taskbar that opens a WSLTTY terminal. When I click on it, it flickers open and immediately closes. I suspect there is an error message being printed but it closes too fast for ...
Daniel Kaplan's user avatar
0 votes
0 answers
339 views

How do I troubleshoot an unresponsive WSL2 on Windows 10?

Usually, WSL2 runs fine, but maybe once a month or two, it becomes completely unresponsive and I'm not sure why. Usually restarting the entire computer fixes it, but I'd like to know if there is any ...
Daniel Kaplan's user avatar
0 votes
2 answers
150 views

In WSL2 how can I, from the Windows side, access my \\wsl.localhost\Ubuntu as case-insensitive? [closed]

So I'm running an app on the Windows side and I want that app to access a Linux file. I see all the Linux files there at: \\wsl.localhost\Ubuntu But the Windows app is going to use either case for ...
Joe C's user avatar
  • 662
0 votes
2 answers
119 views

WSL - how to connect to VcXserv/Xming when VPN is running in the hosted OS?

For work for a vendor, I need to access a few sites via their VPN. Due to the security, however, their VPN blocks basically all other network traffic. For that, I decided to try the WSL/Linux ...
Zorak's user avatar
  • 165
0 votes
0 answers
40 views

How to run a single command via ssh to WSL2 [duplicate]

I'm trying to run a command from a non-Windows device that looks something like this: ssh me@host 'cat file' > file host is a Windows 11 box that is configured to SSH directly into a WSL2 shell. ...
Michael's user avatar
  • 2,714
0 votes
0 answers
72 views

WSL2 unresponsive after idling

Been running Ubuntu 22.04 LTS (guest-machine) via WSL2 on Windows 11, but it frequently gets unresponsive to mouse/keyboard inputs after idling for a while (e.g. when I have to do some researches on ...
Gui Imamura's user avatar
1 vote
0 answers
114 views

google-chrome when ran from Ubuntu / WSL gives weird visual glitches [duplicate]

I'm working on a fresh install of Windows (Windows 11; 22H2 OS Build 22621.2715). I enabled WSL, installed Ubuntu 22.04.3 from the Microsoft App store and then did the following in Ubuntu: get https://...
neubert's user avatar
  • 7,122
0 votes
1 answer
177 views

Vagrant in WSL2 unable to run Windows 11 'cmd.exe'

Would appreciate help in using Vagrant and Ansible to spin-up and provision virtual servers managed by Hyper-V on Windows 11. Currently, I have the latest version of Vagrant (2.4.0) installed on both ...
Dead Pixel's user avatar
0 votes
0 answers
354 views

Default shell in MobaXterm

I have a Windows Server 2022 which I recently had to reinstall. On this server, I am running WSL with an Ubuntu 20.04 installation. Before my reinstall I used MobaXterm to connect to the Ubuntu shell ...
BluePrint's user avatar
  • 101
0 votes
0 answers
34 views

Created a new project on Ubuntu for windows using npx, but cannot find it after it successfully runs

When installing ubuntu for windows 10, I was following a guide that used npx to bootstrap a project. For example I'll run npx create-react-app my-app When it runs successfully, it'll say something ...
nyphur's user avatar
  • 101

1
2 3 4 5
13