Redhat Screen Resolution in Hyper-V

In this article we will address one of the common problems that you may find when running Redhat or CentOS as a Hyper-V guest. Typically you would be able to set the screen resolution of your Hyper-V Guest using the GUI however if you are running a Server with no GUI, setting the screen resolution becomes a problem. Most of the published solutions are using the GUI to accomplish this task, and if you’ve come here, you are probably aware that they are not applicable for Redhat and CentOS Server VMs. In order to pass your video resolution settings to grub, we will use the tool grubby to update our kernel parameters using the code below.

# Use "grubby" to update all current and future kernels.
grubby --update-kernel=ALL --args="video=hyperv_fb:1024x768"

# A reboot is required to apply the changes:
Did you find this article useful? Why not share it with your friends?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.