
Am 27.01.22 um 17:08 schrieb Scott Bradnick:
This is a new package I've put together to do the required setup which will allow the enabling of "View -> Enhanced session" for Hyper-V VM consoles. Initially they will present a dialog for screen resolution and an xrdp login screen. I've also built a JeOS image with it enabled by default for an XFCE desktop so it all works 'out of the box'.
Nice! I've done this manually so far, so I had a look at the setup:
install -m 0644 hv_sock.conf "%{buildroot}/%{_modulesloaddir}/hv_sock.conf"
Somehow I didn't need that, but Leap 15.3 doesn't ship with the module out of the box, not even with kernel-azure. I had to install the kernel-*-extra package. For the specfile you might just add Requires: kmod(hv_sock.ko) to ensure that the module is there. Then in xrdp.ini:
bulk_compression=true
Likely not needed across virtual sockets, so I turned it off. (Don't know if it makes a difference though.) Got some responsiveness improvement by making both xrdp and Xvnc real-time processes, but I guess that might be seen as risky in general. (The former via CPUSchedulingPolicy= in a drop-in configuration, the latter by a CAP_SYS_NICE-enabled wrapper that called sched_setscheduler and then exec'ed into Xvnc. Nothing to be proud of.) Best regards, Aaron