Change screen resolution of Xenserver Console for a CentOS VM

Unix & Linux Asked by Max Cuttins on January 3, 2022

I need to increase screen resolution to 1024×800 for my XEN console.

I tried to place


at the end of kernel line the file /boot/grub/grub.conf but it seems that most of the boot arguments are ignored during startup. Probably inside XenSever /boot is not really used in order to launch CentOS.

I even tried to add boot option in the boot option tab (VM -> Property -> Boot Option) but doesn’t work.

2 Answers

In Gentoo I was able to solve this problem by adding


at the end of the file /etc/default/grub

It is important that you add the prefix gfx- in front of the actual resolution. Otherwise this won't work.

If you want to find out which resolutions are possible, you might want to start with


Actually my Xen command line configuration looks like this:

GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=2048M,max:2048M vga=gfx-1920x1080x16"

However, the first parameters are not necessary for the display resolution

Answered by code-chicken on January 3, 2022

Beyound the SSH X11Forwading way I succeeded in XDMCP!

Use Xnest or Xephyr in Domain0:

Xnest :1 -geometry 1280x800 -query 10.0.1.x

Xephyr :1 -screen 1280x1024 -query 192.168.1.x

The only thing you have to do is to enable remote login in your VM or DomainU by manually editing /etc/gdm/custom.cfg or using the gdmsetup GUI program. Here CentOS 5 DomainU is taken as an example. In Ubuntu things will be a little different.

This approach is very different to VNC which is like Microsoft's RDP (screen capture) while XDMCP utilizes your Domain0's graphic power to assist DomainU system. That is comparable to Xen VGA pass-through in terms of performance.

Remember X11 was specifically designed to be used over network connections rather than on an integral or attached display device. X features network transparency: the machine where an application (the client application, for instance Firefox in your VM or DomainU) runs can differ from the user's local machine (the display server, that is the X11 in your Domain0). This approach allows both 2D and 3D operations to be fully accelerated on the user's local X server.

Answered by cjrcl on January 3, 2022

Add your own answers!

Related Questions

Bash tail -f with while-read and pipe hangs

1  Asked on November 23, 2021 by eric-larson


how to close a port on CentOS 7 server?

1  Asked on November 23, 2021 by user3486308


GNU date: truncate provided date-time and set provided hours

2  Asked on November 23, 2021 by basin


Using subversion on an CIFS mounted share

0  Asked on November 23, 2021 by monatsend


Install Unity 3d Without X

1  Asked on November 23, 2021


Why do we use linux bridge?

2  Asked on November 23, 2021 by jehutyy


TestDisk always return corrupted files

1  Asked on November 23, 2021 by user408830


GUI for NFTables, like fwbuilder

3  Asked on November 21, 2021 by andr-schild


Allow user to run PHP-FPM without password using sudoers

1  Asked on November 21, 2021 by sen-mccabe


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir