-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL xrdp issue (works in 2.0.4, doesn't work in 2.0.9) #1163
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
GNOME desktop works for me without problem in WSL 2.0.9 when I connect using Windows Remote Desktop, so I can confirm you that it is not the problem of WSL version. I'm on Windows 22H2 Education and installed Ubuntu 22.04.3 inside WSL2. I followed this discussion for the configuration, so the |
I appreciate your feedback @Heng-Zhou. However, I have a working desktop on 2.0.4. I upgrade to 2.0.9 (or 2.0.14) and it doesn't work. I will do some additional testing when time permits. |
Thank you @blakeduffey. Can you share details about specifically is failing ? We don't support xrdp so to root cause this we'd need to know what exactly is causing gnome to fail in your configuration. I'd recommend looking at straces / logs to see if you can pin point what's going wrong. |
@OneBlue - thanks so much for following up. To test this fresh I've done the following: Uninstall WSL That gives me the following:
Install Ubuntu via Export the Ubuntu distro via I've then imported that image as UbuntuGNOME, UbuntuKDE, and UbuntuXfce (just for comparison purposes) I follow my distro-specific steps to setup GNOME, KDE, and Xfce on the 3 separate instances (and bounce xrdp on each). FWIW I feel confident I could do it with the other desktops I've tested including budgie, cinnamon, MATE, Enlightenment, LXDE and LXQT. Then I shut everything down I bring them up, one at a time, and connect via mstsc (localhost:3390) to verify I can get the desktop I shut all the instances down via I update to 2.0.14 (as of today) via So Xfce worked I'm actually typing this as I do it - the only thing that has changed is I updated WSL from 2.0.4 to 2.0.14. |
Thank you @blakeduffey. Unfortunately we don't have internal knowledge of KDE or gnome so if nothing jumps out in their straces / logs, you might need to contact their respective maintainers to help figure out what the issue is. I can also see that msrdc has been updated in 2.0.10 so transferring to wslg so they can help us figure out if this is related. |
@OneBlue - I appreciate the info. I haven't been upgrading as regularly as normal due to the recent issues with wsl-vpnkit. Whatever this change is, it seems to impact multiple desktop environments (budgie, GNOME, KDE). Xfce seems to still work on 2.0.14. Appreciate your hard work. |
Thanks much for the redirect. I'm happy to provide any details as would be useful. |
I would love to get someone to chime in on this? I can provide logs, etc. I feel like this some kind of rendering/redraw problem - I can connect to the GNOME instance (for example) and I get a partial desktop (I see the Home folder on a black screen). |
So I decided to try to reset everything and try again. I've uninstalled all the WSL bits and installed wsl 2.0.4. WSL version: 2.0.4.0 I've installed Ubuntu 22.04 and the GNOME desktop. I can connect to xrdp via remote desktop, no problem. I shutdown the instances and update wsl to 2.0.14. wsl --shutdown WSL version: 2.0.14.0 I restart the Ubuntu instance and connect again: Literally nothing has changed in the 5 minutes except upgrading wsl from 2.0.4 to 2.0.14. I see this using other desktops (KDE, budgie, etc). |
@blakeduffey you don't happen to have somewhere on the logs something about dxgkrnl and/or ioctl failed, do you? EDIT: Debian
|
I ran: I get this kind of results: /var/log/dmesg:[ 1.379728] kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 /var/log/kern.log:Jan 29 17:14:10 MACHINENAME kernel: [500584.569045] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 /var/log/syslog:Jan 29 17:14:10 MACHINENAME kernel: [500584.569045] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 so yes |
@blakeduffey when possible, can you recheck if those errors appear on WSL 2.0.4? |
@Segment0895 - I will try that today and report back. |
So I uninstalled WSL 2.1.1, installed WSL 2.04 The Ubuntu instance is unchanged, I just left if. When I try to connect to the instance now via RDP: When I run I am continuing to see: /var/log/dmesg.0:[ 1.379728] kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 /var/log/kern.log:Jan 29 17:14:10 MACHINENAME kernel: [500584.569045] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 /var/log/syslog:Jan 29 17:14:10 MACHINENAME kernel: [500584.569045] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 (the above are just snippets) |
Recheck your screenshot, was the one posted the one you wanted to post?
Thanks
|
@Segment0895 - it was not :) I thought I fixed it before anyone saw it. I've replaced. |
Ok, one theory down.
I'm out of ideas for now.
Thanks for your feedback! Maybe someone else can pick it up from here.
|
@Segment0895 - I neglected to look at the dates. Those log entries look to be from a couple days ago (and may not be relevant to the testing re: 2.0.4) - let me verify. Please come back ! :) |
So I tested again (wsl --shutdown and restart) Connecting to RDP I do see: /var/log/kern.log:Jan 31 14:58:37 MACHINENAME kernel: [ 0.325213] hv_vmbus: registering driver dxgkrnl /var/log/syslog:Jan 31 14:58:37 MACHINENAME kernel: [ 0.325213] hv_vmbus: registering driver dxgkrnl So I think these logs appear whether the problem exists or not |
Confirm it also happens with XFCE. On XFCE it just happens when opening an app such as the terminal.
ADDED:
|
Just so this thread doesn't completely fade into oblivion This issue persists on wsl version 2.2.2.0 Versions of WSL up to 2.0.4 - I was able to install a desktop environment and connect via xrdp (I have documentation for Budgie, Cinnamon, MATE, Xfce, Enlightenment, GNOME, KDE, LXDE and LXQT). After 2.0.4 (and up to 2.2.2.0) - this no longer works. |
Encountered the same issue on xrdp with Ubuntu 22.04. I haven't tried myself, but, maybe updating the Ubuntu version to 24.04 could solve this? Saw someone from YouTube doing the exact steps as I am, and his xrdp worked. wsl --version
|
Windows Version
Microsoft Windows [Version 10.0.19045.3693]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
xrdp
Repro Steps
I've developed steps for using a full desktop environment (via mstsc and xrdp). Over the past few months I've tested
Budgie
Cinnamon
Enlightenment
GNOME
KDE
LXDE
LXQT
MATE
Xfce
I periodically re-test (to make sure my steps work). I have confirmed that works in 2.0.4 does NOT work in 2.0.9+
EUD-WSLwithdesktop-081223-1524-4.pdf
I just installed a fresh 22.04 instance on wsl 2.0.4 with GNOME. I was immediately able to RDP to the desktop (via mstsc and xrdp). I can see the dock and use apps.
After I update wsl to 2.0.9 - I can connect to xrdp and login, but I don't get a desktop. If I install fresh under 2.0.9, I see the same behavior.
Expected Behavior
Consistent xrdp behavior between 2.0.4 and 2.0.9+
Actual Behavior
Inconsistent xrdp behavior between 2.0.4 and 2.0.9+
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: