Hyper-V + Ubuntu + RDP: Enhanced session with 24.10?

I’m working on migrating my VMs in any form possible (e.g. converting / recreating) them on Hyper-V from VMware, and I’ve encountered a snag with the Enhanced Session with Ubuntu 24.10, and I’m out of my depth here.

Essentially, the guides you can find online to have an enhanced session will require you to use X11 (xrdp), which causes problems with some software (issue below). Has anyone found a way to force Hyper-V to detect the Gnome Remote Desktop RDP service? and/or to force it to use the “Enhanced Session” mode?


Issue I’m finding: When in X11, Android Studio (based on JetBrains) does not start as it requires sudo to use KVM for the emulator, yet even if I grant the user privileges to the KVM group, the emulator does not work without sudo. Rather than spending time troubleshooting X11, I am looking to use Wayland for RDP.


EDIT: Been testing a couple of things, not working yet, but at least I get Hyper-V to acknowledge that there is something for an Enhanced Session.

sudo apt install socat
sudo grdctl --system rdp set-port 3390
sudo systemctl daemon-reload
socat VSOCK-LISTEN:3389,reuseaddr,fork tcp:localhost:3390

EDIT 2: This now may be an issue with the authentication itself - Previously there were Connection reset by peer errors if you had a username and passport to open the RDP session, but without no username or password there are no error messages - however nothing happens.

Note to self: Hyper-V relies on Vsocks. GRDCTL does not work by default with vsock. Need to figure out a way to force GRDCTL to use a vsock.
Edit: poor guy didn’t get a response :frowning: xrdp - How to use enhanced session of Hyper-V on Ubuntu 22.04 desktop? - Ask Ubuntu

I use xrdp on ubuntu , debian and what i can say is, i run from gnome … except for xfce. did you try with xfce ?

Trying to avoid using XRDP because of the reliance on X11, as I mentioned in my post. With all distributions moving to Wayland, I figured it made sense to just rely on it, and not touch X11 at all.

Any specific reason for Hyper-V
Can’t you use something else as hypervisor, like Proxmox or Xcp-NG?

Running Windows. I can always get running VMware, but this is an experiment I’m trying to work through.