GNOME Remote Desktop: Headless system-level RDP fails NLA handshake with Windows mstsc — black screen
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| GNOME Remote Desktop |
Fix Released
|
Unknown
|
|||
| gnome-remote-desktop (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bug Description
- Source package: gnome-remote-
- Release: Ubuntu 25.10
- Package version: 49.0-0ubuntu1.1
- Expected: GDM login screen appears via RDP when connecting from Windows mstsc.exe to port 3389
-Actual:Black screen for ~30 seconds then disconnect. Server logs show NLA handshakefailur
On Ubuntu 25.10 (GNOME 49, gnome-remote-
XFCE4 + xrdp on the same machine works perfectly on port 3390, confirming network connectivity and RDP client functionality are not the issue.
## Environment
- **OS**: Ubuntu 25.10 (Questing), kernel 6.17.0-14-generic
- **Hardware**: Hyper-V VM (Microsoft Corporation Virtual Machine), AMD Ryzen 5 7430U
- **GPU**: Virtual — `/dev/dri/card1` only (no card0), no VGA device on lspci
- **No TPM**: GRD falls back to GKeyFile for credential storage
- **No physical display**: Headless server, no monitor attached
### Package versions
| Package | Version |
|------
| gnome-remote-
| gdm3 | 49.0.1-1ubuntu2.1 |
| gnome-shell | 49.0-1ubuntu1.2 |
| mutter-common | 49.0-2ubuntu5.3 |
| libfreerdp3-3 | 3.16.0+
| libwinpr3-3 | 3.16.0+
### GRD configuration
```
$ sudo grdctl --system status --show-credentials
Overall:
Unit status: active
RDP:
Status: enabled
Port: 3389
TLS certificate: /var/lib/
TLS key: /var/lib/
Username: ubuntu
Password: ubuntu
```
## Steps to reproduce
1. Install Ubuntu 25.10 server in a Ubuntu Multipass Hyper-V VM (headless, no physical display)
2. Install GNOME desktop: `apt-get install -y gdm3 gnome-remote-
3. Generate TLS certificates:
```bash
sudo openssl req -newkey rsa:2048 -nodes \
-keyout /var/lib/
-x509 -days 365 \
-out /var/lib/
-subj "/CN=$(hostname)"
sudo chown gnome-remote-
sudo chmod 600 /var/lib/
```
4. Configure system RDP:
```bash
sudo grdctl --system rdp set-tls-cert /var/lib/
sudo grdctl --system rdp set-tls-key /var/lib/
sudo grdctl --system rdp set-credentials ubuntu ubuntu
sudo grdctl --system rdp enable
sudo systemctl enable --now gnome-remote-
sudo systemctl set-default graphical.target
```
5. Verify GDM greeter is running (gnome-shell process under gdm-greeter user) and port 3389 is listening
6. From Windows 10 or 11, open `mstsc.exe`, connect to `<vm-ip>:3389` with username `ubuntu`, password `ubuntu`
### Expected result
GDM login screen appears via RDP, allowing user authentication to a GNOME Wayland session.
### Actual result
Windows RDP client shows a black screen for ~30 seconds, then disconnects. No login screen ever appears.
## Server-side logs
Every connection attempt produces the same NLA failure sequence in `journalctl -u gnome-remote-
```
[ERROR]
[ERROR]
[ERROR]
[ERROR]
[ERROR]
[ERROR]
[WARN][
[ERROR]
[RDP] Network or intentional disconnect, stopping session
[DaemonSystem] Aborting handover, removing remote client with remote id /org/gnome/
[ERROR]
```
Earlier attempts (before creating `/etc/winpr3/SAM`) also showed:
```
[ERROR]
```
GRD startup consistently shows:
```
Init TPM credentials failed because No TPM device found, using GKeyFile as fallback
```
## Workarounds attempted (all failed)
### 1. SAM file for FreeRDP NTLM auth
Created `/etc/winpr3/SAM` with NTLM hash via `winpr-hash3 -u ubuntu -p ubuntu -f sam`. Eliminated the "SAM database" error but NLA handshake still fails with `Connection reset by peer`.
### 2. TLS certificates generated with winpr-makecert3
Replaced openssl-generated certs with `winpr-makecert3 -rdp -silent` certificates (RDP-specific key usage extensions). No change — same NLA failure.
### 3. Disable/re-enable RDP cycle
```bash
sudo grdctl --system rdp disable
sudo grdctl --system rdp set-credentials ubuntu ubuntu
sudo grdctl --system rdp enable
sudo systemctl restart gnome-remote-
```
No change.
### 4. loginctl enable-linger
Enabled user session lingering: `sudo loginctl enable-linger ubuntu`. No change.
### 5. User-level RDP certificates
Generated separate per-user TLS certificates and configured via `grdctl rdp set-credentials`. Failed with "BIO_new failed for certificate" / "Object does not exist at path /org/freedeskto
### 6. Clean service restart ordering
Stopped both services, restarted GDM first (waited for greeter to fully launch), then started GRD. GRD started cleanly with "RDP server started" — same NLA failure on connection.
### 7. Multiple credential combinations
Tested `rdpuser/changeme`, `ubuntu/ubuntu` — same result regardless of credentials, because the NLA handshake fails before credentials are even checked.
### 8. gsettings for gnome-remote-
Enabled RDP via gsettings in addition to grdctl:
```bash
sudo -u gnome-remote-
sudo -u gnome-remote-
sudo -u gnome-remote-
sudo -u gnome-remote-
```
No change — same NLA failure.
### 9. Full ezone.co.uk guide
Followed the complete guide from https:/
## Additional context
### GDM greeter does launch successfully
After fixing a separate nsswitch.conf issue (kanidm NSS module blocking `gdm-greeter` DynamicUser resolution — fixed by adding `systemd` to the passwd NSS chain), the GDM greeter launches correctly:
```
$ ps -ef | grep gnome-shell
gdm-gre+ 1168728 ... /usr/bin/
```
GDM debug logs confirm full greeter lifecycle:
```
Gdm: GdmSessionWorker: state ACCREDITED
Gdm: GdmSessionWorker: state SESSION_OPENED
pam_unix(
```
### xrdp works on same machine
XFCE4 + xrdp on port 3390 works perfectly from the same Windows client, confirming:
- Network path is clear
- Windows RDP client is functional
- Unix password authentication works (`ubuntu/ubuntu`)
### The connection appears to partially establish
The Windows client briefly connects (shows black), the `update_
### Server supports only NLA Security
One log entry shows: `server supports only NLA Security` followed by `Protocol security negotiation failure`. There is no `grdctl` option to disable NLA or allow fallback to RDP Security or TLS Security, which means Windows clients that fail NLA have no alternative path.
## Related bugs
- [LP #2089611](https:/
- [LP #1983199](https:/
- [RH #2189376](https:/
- [GNOME Discourse](https:/
## Suggested fixes
1. **Allow security negotiation fallback**: Add a `grdctl` option to allow TLS or RDP security in addition to NLA, so clients that fail NTLM can still connect
2. **Fix NTLM/NLA with GKeyFile credentials**: When TPM is unavailable and credentials are stored in GKeyFile, ensure FreeRDP's server-side NTLM can resolve them during the NLA handshake
3. **Document headless VM setup**: The interaction between GDM DynamicUser, nsswitch.conf, and GRD system mode is undocumented and breaks in non-trivial configurations
| description: | updated |
| Changed in gnome-remote-desktop: | |
| importance: | Undecided → Unknown |
| status: | New → Unknown |
| Changed in gnome-remote-desktop: | |
| status: | Unknown → New |
| Changed in gnome-remote-desktop: | |
| status: | New → Fix Released |
| tags: | added: dcr-freezer |

Attaching debdiff for gnome-remote- desktop 49.0-0ubuntu1.2