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