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

init script for alpine not working

1  Asked on January 18, 2021 by karlsebal


Filter rows of a file by list of a second file

1  Asked on January 18, 2021 by sh-yang


Have to restart network service after reboot (centos 7)

1  Asked on January 17, 2021 by raoulpetite


query regarding puppet stdlib module

0  Asked on January 16, 2021 by rajnish-kumar-soni


Bash – Running a bash script from within a ksh script

1  Asked on January 16, 2021 by mo12


Pop OS doesn’t boot up because of pci-e bus error

1  Asked on January 16, 2021 by user6516763


How do I reformat a hybrid-mbr sd card?

0  Asked on January 12, 2021 by dave-mankoff


bash Noob: What’s wrong with this line?

1  Asked on January 12, 2021 by ottoeisen


How can I save the last command to a file?

4  Asked on January 12, 2021 by mattlbeck


Sourcing /root/.zshrc in Docker using current user

3  Asked on January 9, 2021 by mihai-galos


Ask a Question

Get help from others!

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