How to change Resolution of Ubuntu in Hyper-V Manager

If you have installed Ubuntu 24.04 on Hyper-V Manager on Windows 11 operating system you might face issue with resolution of Ubuntu VM. By default, the resolution is set to 1024*768 for new ubuntu installation.

To change the resolution to Full-HD / 4K / any other you need to open the terminal and run the below commands.


sudo nano /etc/default/grub

Go to ‘ GRUB_CMDLINE_LINUX_DEFAULT= “quiet splash” ‘

After ‘splash’ type below command
video=hyperv_fb:2560×1440

Save by pressing “CTRL+O”

Exit by pressing ” CTRL+X “


Now run the below command
sudo update-grub
sudo reboot

After reboot turn-off the Ubuntu VM.

Open Powershell on your host computer ( Windows 11 )

Type the below command, change the bold font according to your PC
set-vmvideo -vmname ubuntu -horizontalresolution:2560 -verticalresolution:1440 -resolutiontype single

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.