How to Change Screen Resolution in Ubuntu on Hyper-V

After Linux / Ubuntu installation with Microsoft virtualization software, we get some errors when we want to change the screen resolution.

How to Change Screen Resolution in Ubuntu on Hyper-V

How to Fix Ubuntu Screen Resolution in Hyper-V

After installing Ubuntu system, we experience a screen resolution issue after clicking View / Full Screen on the virtual machine.

Microsoft continues to support Linux installations. In some cases, however, we may have to perform manual operations, such as changing the screen resolution.

In our previous article, we installed Ubuntu on Windows 10 using Hyper-V. In this article, we will examine step by step on how to solve the virtual machine full-screen problem.

You can also check out our articles below to perform various installations of Hyper-V on Windows.

Resolution Settings for Linux in Hyper-V

Under normal circumstances, increasing the screen resolution of a virtual computer is quite simple. For example, you can set the desired resolution in the Display section of the Ubuntu system settings.

We will use Terminal to troubleshoot Linux virtual machine screen resolution. Follow these steps in order to get rid of the Ubuntu resolution issue.

   Step 1

Run Ubuntu in Hyper-V and then try to switch the virtual machine to full-screen mode via View / Full Screen.

View / Full Screen

   Step 2

As you can see in the image below, there is a virtual machine screen resolution problem. We will use the command prompt to resolve it.

Virtual Machine Full Screen Error

   Step 3

You can also see the screen resolution of the virtual machine in Ubuntu Settings. Here we will set the screen resolution to 1024×768.

Ubuntu Display

   Step 4

On the Ubuntu desktop, right-button/click Open Terminal. Since we will solve this problem with the command prompt, open the resolution configuration by following the command on the terminal.

user@user-Virtual-Machine:~$ sudoedit /etc/default/grub

sudoedit /etc/default/grub

   Step 5

Type the root password of your Linux system and press Enter.

Entering Root Password

   Step 6

For resolution configuration, you need to add code to GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” in the image below.

Use the arrow buttons to move to the option shown in the image below.


   Step 7

Add the “video=hyperv_fb:1024×768” command to the field in the following image. If you want to set a higher screen resolution, you can also assign the desired value here.

Press Ctrl + X to save your settings.


   Step 8

Press Y to accept the changes.

Approving the Changes in the Terminal

   Step 9

Press Enter without changing the file name.

Confirming File Name

   Step 10

After changing the screen resolution, update the GRUB settings by using the following command to make the settings active.

user@user-Virtual-Machine:~$ sudo update-grub

sudo update-grub

   Step 11

Restart your Ubuntu virtual machine for the changes to take effect.

user@user-Virtual-Machine:~$ sudo reboot

sudo reboot

   Step 12

Opening Ubuntu 17.10 virtual machine …

Starting Ubuntu Virtual Machine

   Step 13

After the Ubuntu virtual pc is turned on, open it as Full Screen. You can see that the problem solved from the image below.

Ubuntu Full Screen View

   Step 14

Also, click Displays on the left panel in Settings to check the display settings and check the value in Resolution.

Linux Resolution Setting


You can watch the video below to set the Ubuntu screen size in Hyper-V and also subscribe to our YouTube channel to support us!

   Final Word

In this article, we have reviewed how to change the screen resolution of the Ubuntu operating system on the HyperV virtualization program. Thanks for following us!

   Related Articles

How to Update Softwares in Ubuntu
♦ How to Setup Wine on Ubuntu
♦ How to Create Virtual PC in Hyper-V
♦ How to Install VMware on Ubuntu
♦ How to Reset Root Password in Ubuntu


  1. Avatar for Robert MacK Robert MacK 5 September 2019

    I followed your article and found that “1024*7468” does not work but “1024×768” does work in Ubuntu 1904. (Actually, I set it to 1680×1050 but that’s another story.)

    I don’t know if earlier versions of Ubuntu supports “*” or “x” but perhaps the “*” (star) was a typo from your side? Anyways, great article (y)

    • Avatar for tolqabaqci tolqabaqci 6 September 2019

      No, not “*”, I think you saw it wrong. Your procedure is correct. This is the correct code: 1024×768.

  2. Avatar for John John 8 November 2019

    Excellent solution thank you. Just made the change to Ubuntu 19.10

  3. Avatar for Jason Jason 11 December 2019

    Awesome, Worked on Deepin 15.11 for me. There was another line there I had to comment out about the default resolution for unsupported adapters, but this got me to the right place.


  4. Avatar for john john 27 February 2020

    Thanks. I have followed the same steps in my Ubuntu VM on windows 10. I put ‘1900×1200’ . But when I got to ‘Screen Display’ the resolution still shows ‘1152×864’. Can you please tell me how can I fix my issue?

  5. Avatar for Heith Heith 1 July 2020

    Great article. It worked perfectly for me, and was written in a way that made it super easy to follow. I upped my resolution to 1920×1080 with no issues. Thanks

  6. Avatar for ioo ioo 27 September 2020

    nope. doesn’t work. resolution is still stuck at teeny tiny 1152×864


Add a Comment

Your email address will not be published.