Gordan Jandreoski

Gordan Jandreoski

var blog = { "dev", "cloud", "tech", "geek", null};

Newsletter Subscribe


How to Change Ubuntu Screen Resolution Running on Hyper-V VM

Gordan JandreoskiGordan Jandreoski

Linux tips and tricks

Recently I needed to prepare one development workstation running Ubuntu. In my environment I'm running Hyper-V on Windows 2012 R2 Server; so I wanted to create "Generation 2" VM and install Ubuntu 15.10.

The whole process was extremely easy because in the past years Microsoft has put lot of effort in supporting Linux on Hyper-V (LIS are already included as part of the Linux distribution).
For more info on what features are supported check


The only problem I encounter was the resolution. Since, I was building dev day-to-day work machine it was to small for me. To change the resolution follow this steps:

Open Terminal and type

sudo nano /etc/default/grub

Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:[1920×1080] so the whole line sholud look like this

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920×1080"

Note that the maximum resolution is 1920×1080.

Next save the file and run

sudo update-grub

and then reboot the machine.

That is all; next time the VM boots you will have your desired resolution set.