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.

[email protected]:~$ 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.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

   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.

video=hyperv_fb:1024x768

   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.

[email protected]:~$ sudo update-grub

 
sudo update-grub

   Step 11

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

[email protected]:~$ 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

How to Configure Resolution in Hyper-V ⇒ Video

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

2 Comments

  1. Avatar for Robert MacK Robert MacK September 5, 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)

    Reply
    • Avatar for tolqabaqci tolqabaqci September 6, 2019

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

      Reply

Add a Comment

Your email address will not be published. Required fields are marked *

shares
error: