Wayland virtual desktops

Run private GNOME Shell/Mutter desktops with PipeWire capture.

On this page

Private GNOME Wayland desktops

The Wayland virtual backend runs a private headless GNOME Shell/Mutter compositor, a TMD session controller, a private D-Bus/PipeWire environment, and an agent for each desktop. It does not require GDM, a physical monitor, or a console login.

Use the installed root TMD service and an enabled tmd-virtual PAM policy. The desktop owner remains an ordinary user. EGL rendering can use a compatible GPU driver or Mesa software rendering.

Compositor compatibility

This backend uses Mutter's private ScreenCast/RemoteDesktop interfaces. Ubuntu 24.04 / GNOME 46 has runtime coverage; compatibility with other GNOME versions and specific GPU renderers should be validated on the intended host. Do not infer virtual-backend validation from a working Wayland console.

1. Install the desktop components

On Ubuntu:

sudo apt install --no-install-recommends \
  gnome-shell gnome-terminal gnome-settings-daemon dconf-service \
  dbus-daemon pipewire xwayland libegl1 libgl1-mesa-dri

Use distribution-matched drivers for hardware rendering and ensure the owner can access the required render node. Do not run the compositor as root to bypass device permissions.

2. Configure future desktop starts

Merge into [session-management] in /etc/tmd/server/tmd.conf:

[session-management]
virtual-session-backend = wayland
virtual-session-compositor = /usr/bin/gnome-shell
virtual-session-pipewire = /usr/bin/pipewire
virtual-session-pam-service = tmd-virtual
virtual-session-width = 1920
virtual-session-height = 1080

The backend selection applies to all subsequent virtual desktop starts. Existing desktops are not converted in place. virtual-session-init and virtual-session-xserver apply only to X11.

3. Start a desktop

Restarting the server ends any existing virtual desktop applications. Apply the configuration during maintenance, then create a new desktop:

sudo systemctl restart tmdserver
sudo tmdtool create-session gnome-work --owner alice --type virtual
sudo tmdtool describe-session gnome-work --json

For an existing saved definition, use start-session instead of create-session. Wait for active and connect to https://tmd.example.com:8191/#gnome-work.

Capture, input, and clipboard

TMD uses the private compositor's remote desktop interfaces. There is no screen-sharing dialog in the physical user's portal. Video and cursor metadata use the private PipeWire daemon; Xwayland supplies clipboard support.

Check pointer position, held modifiers, cursor shapes over native GNOME controls, clipboard paste, and application screen updates. Hardware rendering of GNOME and hardware encoding of captured frames are separate capabilities.

Lifecycle and limitations

  • Choose the boot policy with set-session-autostart, as for X11 virtual desktops.
  • Agent recovery retains the compositor and applications. Compositor, controller, or private PipeWire failure ends the virtual desktop.
  • Virtual audio and viewer-driven resizing are not implemented; the virtual output uses its initial configured size.
  • GNOME uses a separate persistent tmd-virtual dconf database. Other files in the owner's home remain shared.
  • The initial session controller does not implement desktop session save/restore, power/idle management, or session inhibitors.
  • Windows and macOS do not offer this backend.

To return to X11, set virtual-session-backend = x11, retain the Xfce startup configuration, and apply it before the next desktop start. See Session lifecycle.