Categories: UbuntuUbuntu Feed

Change Screen Resolution of An Ubuntu VM in Hyper-V

Recently I created a Ubuntu desktop virtual machine in the Hyper-V platform. After login to the desktop realises that the screen resolution is not correct. I tried to change VM to full-screen mode but it opens in partial screen. When I checked the resolution under the settings found below:

Sponsored
id="caption-attachment-29243" class="wp-caption-text">Current Screen Resolution of Ubuntu on Hyper-V

This how-to guide will help you to change the screen resolution of an Ubuntu VM in Hiper-V. This also allows you to run Ubuntu VM in full-screen mode in Hiper-V.

Changing Screen Resolution in Hyper-V Ubuntu VM

Follow the instructions to change the screen resolution of an Ubuntu VM in Hyper-V:

  1. Login to your system as a sudo or root account.
  2. Open a shell and edit /etc/default/groub configuration file in a text editor
    sudo vim /etc/default/grub 
    

    Update the value of GRUB_CMDLINE_LINUX_DEFAULT variable as below:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1366x768"
    

    Here 1366×768 is the screen resolution of the host machine. You need to change this value as per your host machine resolution

    Sponsored
  3. Now run the following command to update the grub configuration.
    sudo update-grub 
    
  4. Also install the linux-image-extra-virtual package that provides the extra drivers which is not included in base kernel.
    sudo apt install linux-image-extra-virtual 
    
  5. Reboot your system and test

Once the system is rebooted, log in to the Ubuntu desktop and change to full screen. You will see the Ubuntu desktop open in full screen.

Now, check the updated screen resolution of Ubuntu running on the Hyper-V platform.

Updated screen resolution in ubuntu running on hyper-v

Wrap Up

This tutorial helped you to change the screen resolution of an Ubuntu VM running on the Hyper-V platform.

The post Change Screen Resolution of An Ubuntu VM in Hyper-V appeared first on TecAdmin.

Ubuntu Server Admin

Recent Posts

IBM LinuxONE 5 and Ubuntu Server, a great combination from day one

Today, IBM announced the launch of their latest server: the new IBM LinuxONE Emperor 5.…

5 hours ago

Ubuntu Weekly Newsletter Issue 890

Welcome to the Ubuntu Weekly Newsletter, Issue 890 for the week of April 27 –…

21 hours ago

Ubuntu IoT Day in Singapore – Unlock compliant and scalable innovation in edge AI

Singapore | May 27, 2025 | Full-day event How do you build robust, performant edge…

1 day ago

Kolla Ansible OpenStack Installation (Ubuntu 24.04)

Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…

4 days ago

Canonical announces first Ubuntu Desktop image for Qualcomm Dragonwing™ Platform with Ubuntu 24.04

This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…

5 days ago

The long march towards delivering CRA compliance

Time is running out to be in full compliance with the EU Cyber Resilience Act,…

5 days ago