Setting Ubuntu 24.04 in Hyper-V:
wget https://raw.githubusercontent.com/Hinara/linux-vm-tools/refs/heads/master/ubuntu/24.04/install.sh
sudo chmod +x install.sh sudo ./install.sh
reboot when needed and run again
In Windows powershell with admin rights: Set-VM -VMName <your_vm_name> -EnhancedSessionTransportType HvSocket
Disable automatic login in Ubuntu