How to Change Screen Resolution in Ubuntu on Hyper-V? – After installing Linux/Ubuntu with Hyper-V Manager, we encounter some mistakes when we want to change the screen resolution.
How to Change Screen Resolution in Ubuntu on Hyper-V?
After installing Ubuntu on Hyper-V, we experience screen resolution problems even if we connect to the Ubuntu virtual machine by clicking View/Fullscreen.
Microsoft is continuing to support the installations of Linux distributions on Hyper-V. But in some cases, we may have to do manual operations such as changing the Ubuntu screen resolution.
In our previous article, we implemented Ubuntu 17.10 installation using Hyper-V on Windows 10 operating system. In this article, we will go through how to change screen resolution in Ubuntu on Hyper-V step by step.
You can also browse the following articles to perform various installations of Hyper-V on Windows.
- How to Install Hyper-V on Windows 10?
- How to Enable Hyper-V using Powershell?
- How to Configure Hyper-V using CMD?
How to Fix Display Resolution in Ubuntu Virtual Machine on Hyper-V?
Under normal circumstances, increasing the screen resolution of Ubuntu is quite simple. From Ubuntu’s settings, you can set the desired resolution from Display. But after installing Ubuntu with Hyper-V we are experiencing screen resolution problem through GUI.
On Hyper-V we will use the Terminal to handle the Ubuntu 17.10 virtual machine screen resolution issue. Follow these steps in order to get rid of the Ubuntu resolution problem.
Run Ubuntu in Hyper-V and then switch the virtual machine to full-screen mode via View/Full Screen.
As you can see in the image below, there is a Ubuntu virtual machine screen resolution problem in Hyper-V. We will use the command prompt to solve the Ubuntu screen resolution problem.
You can also see the screen resolution of the virtual machine from Ubuntu Settings. We will set the screen resolution here to 1024×768.
On the Ubuntu desktop, click Right Key / Open Terminal. On Hyper-V, we will handle the Ubuntu screen resolution with command prompt, open the resolution configuration by executing the following command on the terminal.
[email protected]:~$ sudoedit /etc/default/grub
Type your root password and press Enter.
We will resolve the Ubuntu screen resolution by adding additional code to the GRUB_CMDLINE_LINUX_DEFAULT = “quiet splash” option in the image below.
Use the arrow keys to move to the option shown below.
As you see in the image below, add the command video=hyperv_fb:1024×768 at the command prompt. If you want to set a higher screen resolution, you can assign the desired value here as well.
Press Ctrl + X to save the settings you made.
Press Y to accept the changes.
Press Enter without changing the file name.
After changing the Ubuntu screen resolution, update the GRUB settings by executing the following command to make the settings active.
[email protected]:~$ sudo update-grub
Restart your Ubuntu virtual machine for the changes to take effect.
[email protected]:~$ sudo reboot
Opening Ubuntu 17.10 virtual machine on Hyper-V…
After the Ubuntu virtual machine is turned on, connect to the virtual machine as Full Screen. As a result, you can see that the screen resolution of the Ubuntu virtual machine is resolved as shown below.
You can also check that your screen resolution changes by clicking on Displays in the left pane of Ubuntu Settings to test the Ubuntu screen resolution.
How to Change Screen Resolution in Ubuntu on Hyper-V? ⇒ Video
You can watch the video below to fix Ubuntu screen size or increase the Ubuntu screen resolution in Hyper-V, and you can also subscribe to our YouTube channel to support us…
How to Change Screen Resolution in Ubuntu on Hyper-V? – In this article, we have discussed the resolution of the Ubuntu 17.10 operating system screen resolution problem on the Hyper-V virtualization program step by step. Thanks for following us!
If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!
Also, you can add to browser bookmarks by pressing the CTRL+D to read this article later!