How to Change Screen Resolution in Ubuntu on Hyper-V

This article will discuss changing the screen resolution for Linux-based Ubuntu or other derivatives running in Hyper-V virtualization software on Windows platforms.

How to Change Screen Resolution in Ubuntu on Hyper-V

How to Fix Ubuntu Screen Resolution in Hyper-V

After installing Linux/Ubuntu with Hyper-V Manager, we encountered some errors when changing the screen resolution. When we want to adjust the display settings of Linux virtual machines such as Ubuntu, we click on the View / Fullscreen option. If the screen size still does not change after doing this, it will be necessary to apply some codes.

Microsoft maintains its support for Linux distribution installations. However, in some cases, we may have to manually resolve issues such as changing screen resolution.

In a recent post, we configured Microsoft’s Hyper-V software to install the Linux/Ubuntu operating system on a Windows 10 Desktop.o

This article will examine how to solve the full-screen problem by adjusting the display settings to the maximum level.

You can also browse our articles below to perform other installation methods of Hyper-V on compatible Windows systems.

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 the terminal to troubleshoot Linux virtual machine screen resolution. Follow these steps 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

There is a problem with the guest machine screen size, as seen in the picture below.

Virtual Machine Full Screen Error

Step 3

You can also see the screen resolution of the virtual machine in Ubuntu Settings. We’ll adjust the screen resolution to 1024×768 here.

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 must add code to GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” in the image below.

Use the arrow buttons to navigate the choice in the picture below.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Step 7

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

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 using the following command to activate the settings.

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 virtual machine.

Starting Ubuntu Virtual Machine

Step 13

Open the Ubuntu virtual PC in full-screen mode to see the problem solved, as shown below.

Ubuntu Full Screen View

Step 14

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

Linux Resolution Setting

Video

To help us, please subscribe to our YouTube channel and watch the video below to configure the Ubuntu screen size in Hyper-V.

Conclusion

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 Software in Ubuntu
♦ How to Setup Wine on Ubuntu
♦ How to Create a Virtual PC in Hyper-V
♦ How to Install VMware on Ubuntu
♦ How to Reset Root Password in Ubuntu

8 Comments

Add a Comment

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