New XCP-ng "theme" in shell


  • XCP-ng Team

    Users of the 8.0.0 beta can now update and will get the new prompt and new console.



  • @olivierlambert said in New XCP-ng "theme" in shell:

    Feel free to explain your use cases, I'm interested 🙂

    To observe Host Performance Information, VMs' performance info, stop and start VMs, especially before and after a host reboot.

    Especially being in the server room. There I use a physical console with a keyboard/video switch, not a workstation with a browser. Also, while working in a server room I don't seat near the display all the time and I must have a look from a side or from a larger distance.

    Besides, it's usually faster for me to ssh somewhere than to make a series of tunnels to access the destination with a browser or XCP-ng Center. So also when ssh-ing, xsconsole is handy.

    Having a legible xsconsole is important for me.

    Especially on some new host, on which xsconsole use only a small fraction of the physical display and the characters are very small.

    Do you know how I can configure Dom0 to have normal tty with 24 rows and 80 columns, so that xsconsole occupy all the physical display?


  • Admin

    OK, but why not using xe CLI? I mean, it's faster and you can get exactly what you need without moving the cursor in ncurse info?

    Regarding the size, feel free to take a look at the source, it's written in Python 🙂 https://github.com/xenserver/xsconsole



  • @olivierlambert said in New XCP-ng "theme" in shell:

    OK, but why not using xe CLI?

    Sometimes I use xe, sometimes XCP-ng Center, sometimes xsconsole.

    I mean, it's faster and you can get exactly what you need without moving the cursor in ncurse info?

    Typing tens of characters is not faster than pressing a few keys (like arrow, arrow, enter).
    Especially standing at a not familiar keyboard in a server room.

    Regarding the size, feel free to take a look at the source, it's written in Python 🙂 https://github.com/xenserver/xsconsole

    This question is not only pertaining xsconsole.

    I tried various things, but the most what I achieved was during the boot phase. After this, the CLI resolution reverts to very small characters again 😞



  • Unless it's an environmental decision to make the xsconsole as dim and washed out as possible, to save power, my humble suggestion would be to multiply the fgBright values by 1.249 to get 999,431,372, if my math is correct, and set fgNormal to something like 930,930,930

    fgDark could either remain at its current values or be set to fbBright


  • Admin

    Feel free to try on your install and use screenshot to show the diff 🙂



  • I did do it on my install, that's why I'm suggesting it.
    The default values made me thing I had a semi-transparent film all over my display.

    My install is on a physical machine (a laptop) so I don't know how I'd take a proper screenshot.
    I don't think a phone photo would show the difference.



  • @olivierlambert I think this is probably the most sensible of the schemas so far.
    The dark background reduces glare, text is high-contrast, and the red actually draws the eye as a highlight or accent color. Looks sharp!



  • @olivierlambert
    This one look the best 🙂


  • Admin

    Thanks for your input!

    I think it might be the one then 🙂 Also, if there is a big problem with it, we can always update the package!


Log in to reply