Tested working on Fedora Workstation 39, 40, 41, 42, and 43.
(Commands prefixed with a # should be run as the root user or with sudo. Commands prefixed with a $ should be run as a regular/unprivileged user.)
# dnf install xrdp(with Xorg session support:# dnf install xrdp xorgxrdp)- If using GNOME:
# $EDITOR /etc/pam.d/xrdp-sesmanand comment and uncomment the appropriate lines. - If using Xfce:
$ echo startxfce4 > $HOME/.xsessionand$ chmod +x $HOME/.xsession. - Optionally, rename the shared drives mount:
# $EDITOR /etc/xrdp/sesman.iniand setFuseMountName=shared-drives # $EDITOR /etc/xrdp/xrdp.iniand set:port=vsock://-1:3389([Globals]section)vmconnect=true(uncomment)security_layer=rdpbitmap_compression=false- If you chose to install the
xorgxrdppackage: uncomment the whole[Xorg]section.
$ systemctl enable xrdp xrdp-sesman- Shut down the virtual machine (do NOT reboot) and close the Virtual Machine Connection window.
- On your host, in PowerShell (as admin or as a user in the "Hyper-V Administrators" group):
Set-VM -VMName "Name of your Fedora VM" -EnhancedSessionTransportType HvSocket - Connect to your VM by reopening the Virtual Machine Connection window, and boot it.
You can now enable Enhanced Session Mode.
Hey @vikingau
I am not sure this will help, but I will try to explain my findings.
You say you have trouble with Fedora 43 (KDE Plasma). I'll assume that one is also using Wayland as graphics-backend which I don't think anyone has truly solved yet.
I have a solution that's not really a solution. You can't really call the resulting operating system Fedora Desktop anymore as Fedora Desktop is supported using Wayland, but the solution is really to run Xorg..
So if I want to run "pretend Fedora 43 Desktop" I install the Fedora 43 base-installation (no package-groups selected, but "Custom Fedora Operating System" or similar.
After that the solution is basically to install Xorg and Gnome and repeat the steps provided here by HarmfulBreeze.
I have automated this in my repo for i3, follow instructions for RHEL9 (tested on Fedora 43) if you're interested. Or just follow any other guide to install Xorg+(Gnome/KDE) and apply the instructions given above.
Best,