Change Screen Resolution on Ubuntu 18.04 in Hyper-V VM

I really love using Hyper-V both for windows and also linux operating systems. For me, creating a new virtual machine is just like buying a new PC :) In this post, I am going to show you how to easily change screen resolution on an Ubuntu vm that resides inside Hyper-V virtualization environment.


Just follow those simple steps to change the screen resolution:

  1. Open a terminal window
  2. Type: sudo vi /etc/default/grub
  3. Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT,
  4. Append video=hyperv_fb:1280x720 so the line should be like;
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1280x720"
  5. Write changes to the file and exit using ESC + :wq
  6. Run sudo update-grub command to update grub configuration.
  7. Reboot the machine (You can use sudo /sbin/shutdown -r now command)
  8. Voila! Your VM now should start with the new resolution you provided.


© 2021 metinsaylan