Feb 10

Changing Linux screen resolution in Hyper-V virtual machine

There is no way to change screen resolution of Linux machine which is running on Hyper-V virtual machine.
Even if you have installed hyper-v Linux integration software you can’t change the resolution from display settings. Here is alternative method of how to do it quickly. let’s check how to change Linux screen resolution in Hyper-V virtual machine

1) Open the terminal

2) edit the grub file

following example was done at Ubuntu

sudo vim /etc/default/grub

3) Set resolution

Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT (line is highlight on image) and add video=hyperv_fb:[the resolution you need]
ex:- video=hyperv_fb:1200×700
you may need to change the above value several time to achieve better screen size. 1200×700 is the value which is worked on my 1366×768 resolution windows server.

defualt grub file of ubuntu















4) write and quite (wq) from the editor

5) Execute following command


sudo update-grub

and reboot the Linux machine

Leave Your Thought Here