I have created an azure virtual machine with the following specifications:

  • Ubuntu 18.04 LTS
  • F16s_v2 Standard (16 vCPU and 32 GiB RAM)
  • SSD unit

Since I need to connect via Remote Desktop, I followed this guide to install xfce and xrdp. Once finished, I connected to the server with Microsoft Remote Desktop but I noticed an excessive slowness in interactivity. I don't think the problem is my internet connection because:

  1. By connecting to other Azure Windows VM I don't have the same problem;
  2. I asked to a colleague to do a test from his home and he experienced the same problem;

What could be the problem?


Solution 1:

I'm using xrdp w/ KDE and these compositor settings appear to have helped quite a bit:

scale method: crisp
rendering backend: OpenGL 2.0
Tearing prevention: Only when cheap
Keep window thumbnail: never
Allow options to block composting: yes

KDE compositor settings for xrdp headless vm

Solution 2:

I disabled the compositor, as suggested here: https://github.com/neutrinolabs/xrdp/issues/501#issuecomment-262905321

Hello, I have experiment same problem with xfce and ubuntu 16.04. I have disable compositor in xfce windows settings. Now it's work fine.

It made a huge difference, now everything works fine.

Solution 3:

I installed Ubuntu server XRDP. Went through Windows and terribly slowed down. I solved this problem. In the /etc/xrdp/xrdp.ini file, change crypt_level=high to crypt_level=None