Ubuntu on Hyper-V: change monitor resolution

A virtual machine with Ubuntu, this system deployed on Hyper-V. And it is impossible to change the screen resolution using standard tools. But the necessary parameters can be set via the console (all commands are executed as root):

  1. Open grub settings: nano /etc/default/grub
  2. Search next line: GRUB_CMDLINE_LINUX_DEFAULT and add video=hyperv_fb:1920×1080, where 1920×1080 – resoluton we need. We get:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

3. Apply new settings by running the command update-grub
4. Reboot system

# sudo nano /etc/default/grub
# sudo update-grub
# sudo reboot

7 thoughts on “Ubuntu on Hyper-V: change monitor resolution”

  1. Be careful with copy and paste. Instead of:

    GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash video=hyperv_fb:1920×1080″

    Use this:

    GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash video=hyperv_fb:1920×1080″


Leave a Comment