I've been running Linux in Hyper-V for some time, as an alternative to remotely connecting or dual-booting.
A perpetual problem with this, however, is that Hyper-V's hyperv_fb
driver only supports monitor resolutions up to 1600x1200, and doesn't support resizing.
(Microsoft has guest extensions, but they are gradually maintained for fewer and fewer variants of Linux; currently it appears only RHEL is actively maintained, with the latest Ubuntu release supporting 18.04. It is now 2020.)
I've tried a number of different approaches to connecting remotely to a Hyper-V machine over the years, and most break after some period of time. I have a relatively stable solution for connecting to a Docker container with RDP, but if I want to run programs using lots of memory, I don't necessarily want to dedicate that much memory to the main Docker host VM.
The following short script is based on instructions I found for making it possible to SSH