Change Resolution of the XCP-NG console itself
-
Good Afternoon all,
Some of our racks that are using XCP-NG have small 19" monitors with 1366x768 resolution or even older 4:3 monitors with 1280x1024. Once XCP boots past the loader I get "input out of range please change to monitor resolution xxx" I tried to manually define the resolution in GRUB to no success. Any come across this issue as well as a solution?
-
I found this link from the xenserver page which sounds like a similar issue. I tested this on a 4:3 monitor here and it worked. It basically changes the resolution to 1024x768 which is pretty universal. The steps from the link are
-
SSH into Host
-
/opt/xensource/libexec/xen-cmdline --set-xen vga=mode-0x0317
-
/opt/xensource/libexec/xen-cmdline --set-dom0 vga=791
-
Reboot system
You could change the resolution to anything you need. I found this to be a pretty good universal resolution.
-
-
@thetechhipster The change did not work for me (using UEFI boot)...
-
@Andrew I'm using the same. I only tested it on one of the monitors here. I have a few more in the field I will test it on later. Before doing this I would always get a "resolution out of bounds" error on the monitors. (one 4:3 1024 and one 16:9 1366)
-
Old topic but figured I'd put this information here in case anyone else runs into a similar issue.
This fix only works for BIOS/Legacy boot not UEFI because UEFI doesn't use VGA directly. There's not a solution for UEFI at this point but there should be one when XCP-ng moves to Xen 4.17+ in 8.3 release.
Bit more information regarding the future potential fix is documented in xen commit 927aee5
-
Sorry for grave digging, but I found this thread quite on top while googling for the issue, so I thought it might help others stranding here.
Found a solution on https://forums.lawrencesystems.com/t/xcp-ng-vms-display-resolution-locked/10988/14 - albeit it refers to Windows guests, I'm pretty positive that it should work for any guest with UEFI boot configured:
- At VM start (tiano bios logo) press esc.
- Go to device manager menu
- Go to OVMF Platform configuration
- Change Preferred
- Select the resolution you want
- F10 to save
- restart the VM
- At reboot you should be fine.
-
It is documented already: https://docs.xcp-ng.org/vms/#manage-screen-resolution
If you search "resolution" in our doc, you'll find it.
-
At VM start, during Tiano firmware logo display, press ESC.
I often find the boot delay too short, which is annoying. Is it possible for xcpng to set a slightly longer default?
-
I'm not aware of such possibility. However, with XO Lite & XO 6, the console display time is a lot faster, so it should help.
-
Perhaps it would be possible to rebuild the bundled Tianocore image?
-
My original post was regarding the console for XCP not anything to do with VM's. The monitor would show "out of range" after boot and never let me do anything locally. For windows I just use Bios for now. UEFI is too much of an issue. Especially for scaling when I login remotely to the VM using Splashtop or similar. It never scaled properly unless I used the Bios verison. Forza is right. It is really fast to try and get into the Bios screen. A checkbox or option to "boot into bios" like vmware would be extremely helpful for those rare occasions, instead of trying to "beat the clock".
-
@thetechhipster Ah, the xsconsole resolution probably could be changed from the grub/kernel command line.
-
Indeed, I read it too quickly
-
I initially did try grub directly but never got the results I needed. (Could be user error) It's nice to change the resolution down because a lot of our installs have service monitors...ie monitors in the corner that were dusted off and used.
I would like to see that "boot to firmware" option either in the boot loader hierarchy or as a select-able toggle. It would help on those few times I need to adjust things but my trigger finger is too atrophied to nail that esc.