Fixing RDP Resolution Issues in Ubuntu Desktop Hosted on Hyper-V

Sanchit PanditSanchit Pandit
2 min read

Step 1: Install Hyper-V Linux Integration Services (LIS)

Run the following commands to install the required packages and reboot your VM:

sudo apt update
sudo apt install linux-azure
sudo reboot

Step 2: Enable Enhanced Session Mode in Hyper-V

  1. Open Hyper-V Manager.

  2. Select your Ubuntu Desktop VM.

  3. Click SettingsIntegration Services.

  4. Ensure Guest Services is enabled.

  5. On your Hyper-V host, run this command in powershell to enable Enhanced Session Mode:

     Set-VM -VMName "YourUbuntuVMName" -EnhancedSessionTransportType HvSocket
    
  1. Restart the VM and try connecting again.

Step 3: Verify Resolution

After rebooting, check the available resolutions:

Step 4: RDP Client Configuration

In your RDP client, ensure these settings:

  • Select Full Screen in display settings.

  • For Microsoft Remote Desktop, ensure Resolution: Full Screen is enabled.

If above steps did not work, try steps given below:

Step 5: Force Resolution with Kernel Parameters (GRUB Settings)

  1. Open the GRUB configuration file:

     sudo nano /etc/default/grub
    
  1. Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT and append this:

     GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
    
  1. Save the file by pressing CTRL + X, then Y, and Enter.

  2. Update GRUB and reboot:

     sudo update-grub
     sudo reboot
    
  1. After reboot, go to SettingsDisplay on your Ubuntu Desktop and set the desired resolution for the instance.
0
Subscribe to my newsletter

Read articles from Sanchit Pandit directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Sanchit Pandit
Sanchit Pandit

As a seasoned system administrator with a passion for technology and problem-solving, I bring 6 Years of hands-on experience in managing and maintaining IT infrastructure. My journey in the field began with a deep curiosity for computers and systems, which has evolved into a fulfilling career dedicated to ensuring the smooth operation of critical business systems.