Some Linux system images have lower VNC display resolutions by default. For example, the VNC resolution for CentOS is only 720 * 400. You can set the VNC resolution to 1024 * 768 by modifying the parameter grub
.
If Windows system images have very low VNC resolutions, some applications may fail to be properly displayed or opened. To avoid these issues, you need to modify the resolutions of Windows system images.
This document describes how to adjust the VNC display resolution of a CVM.
Note:
The steps below describe how to modify the VNC resolution of a Windows instance on the Windows Server 2012 operating system.
More recent Linux images such as CentOS 7, CentOS 8, Ubuntu, and Debian 9.0 adopt a default VNC resolution of 1024 * 768, which can be used without any modifications. The guide below introduces how to modify the VNC resolutions of Linux instances on the CentOS 6 and Debian 7.8 operating systems.
A CentOS 6 image has a VNC resolution of 720 * 400 by default. To set its resolution to 1024 * 768, modify the launch parameter grub
as follows:
/etc/grub.conf
file.vi /etc/grub.conf
vga=792
to the parameter grub
, as shown below:reboot
Both Debian 7.8 and Debian 8.2 images have VNC resolutions of 720 * 400 by default. To set their resolutions to 1024 * 768, modify the launch parameter grub
as follows:
grub
file.vi /etc/default/grub
vga=792
to the end of the parameter value GRUB_CMDLINE_LINUX_DEFAULT
.grub.cfg
file.grub-mkconfig -o /boot/grub/grub.cfg
reboot
The table below compares the Linux instance's resolution and VGA parameters:
Resolution | 640 * 480 | 800 * 600 | 1024 * 768 |
---|---|---|---|
VGA | 786 | 789 | 792 |
Was this page helpful?