Updating the screen resolution in centos7 in Hyper-V

I am unable to update my display resolution of Centos7 which was installed in the Hyper-v of Windows 8.1.

Earlier I have faced the same problem in VirtualBox but it was resolved after installing VirtualBox Guest Additions.

In hyper-v, after installing the Linux integration tools I can't use the mouse it and some other problem also happened. Can you give me any idea to get rid of this. I have tried to use the following commands

grubby --update-kernel=ALL --args="video=hyperv_fb:1280x1024"
sudo grubby --update-kernel=ALL --args="video=hyperv_fb:1280x1024"
system-config-display --reconfig --set-resolution=1920x1200

but nothing helped me.

1

1 Answer

There is a known problem with VMs on Hyper-V unable to set the screen to a high resolution, with no way of changing it either from KDE System Settings or Hyper-V virtual machine properties.

The problem is with the frame buffer driver of Hyper-V. CentOS provides a tool called grubby for managing grub.cfgwhich is much easier to work with than editing /etc/default/grub and running update-grub.

To set the desired screen resolution under Hyper-V, open a terminal and execute:

sudo grubby --update-kernel=ALL --args="video=hyperv_fb:2560x1440"

then reboot. Replace 2560x1440 with the desired screen resolution.

If you find that you are still unable under Hyper-V to reach the desired resolution, the other solution is to install xrdpand use remote desktop. See the articleInstall xrdp on CentOS 7 / RHEL 7.

9

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like