-
gwr
I'm setting up this server, and need to do some stuff on the KVM console. When the OS boots up (even into the installer) something switches the display into 1920x1080 mode and that makes it hard to see in the KVM viewer. Is there some loader or kernel option to tell it to keep VGA resolution?
-
richlowe
there's a loader option but I don't know what it is.
-
richlowe
there are also options to just use bigger fonts
-
gwr
The KVM viewer doesn't make it easy to scale down the stupid window.
-
gwr
And I haven't got serial setup and working yet.
-
richlowe
there's a 'framebuffer' command
-
richlowe
that loader.help talks about, which seems like what you'd want?
-
gwr
In the loader menu, I selected console "text". The graphics option is "off". Not sure why this is doing what it is...
-
richlowe
that's for the OS etc, I believe
-
gwr
Where is loader.help?
-
richlowe
//boot
-
richlowe
I don't know how you get at it from in loader
-
richlowe
tsoome would be the better person to check with, but it looks like we use the native EDID resolution
-
richlowe
which looks like it gave you something huge
-
richlowe
but 'framebuffer off' might do the trick? I don't know if you can do it interactively
-
richlowe
that's the bit you need tsoome for
-
richlowe
there's a toggle_framebuffer forth word, but I don't know if it's for the user or an implementation detail
-
richlowe
but it looks like it flips the framebuffer off and redraws the screen
-
tsoome
we pick the default recommended resolution from EDID, but you can use: framebuffer set XxY
-
richlowe
thanks toomas, I was trying to work out the stack stuff that toggle_framebuffer wanted
-
richlowe
I don't know what N would be :)
-
tsoome
framebuffer off is really only good with bios boot to attempt to get to text mode
-
gwr
Hm, it's already switched to 1920x1080 before the loader menu is presented.
-
richlowe
yeah, because EDID says so probably
-
gwr
This is while booting from USB.
-
richlowe
that is, the screen it believes to be the screen has that resolution
-
gwr
Maybe I should try just unplugging the monitor?
-
tsoome
yep, thats because your monitor is suggesting it.
-
richlowe
I'd do what toomas says and break out and turn it down with `framebuffer`
-
richlowe
'cos then you'll notice if the console goes somewhere weird
-
tsoome
framebuffer command can be used from loader prompt, or you can add it to /boot/loader.rc.local
-
richlowe
yeah, I meant the prompt since this is install media
-
gwr
Hi tsoome. Is there an easy way to tell it to keep the default or some small resolution?
-
richlowe
this _is_ the default, otherwise what he just said :)
-
gwr
Well, the default when the firmware is running is something small like 800x600 (not sure what exactly).
-
richlowe
otherwise if you unplug the monitor you'll get 800x600.
-
gwr
As soon as we run the loader, it changes.
-
tsoome
framebuffer list will list the available resolutions
-
richlowe
or if you run framebuffer 800x600 at the ok prompt
-
jbk
gwr: have you tried setting up SOL?
-
richlowe
uh, 800x600 framebuffer?
-
jbk
if the IPMI port is configured, that might be easier
-
richlowe
whichever way
-
gwr
Gah.. I can't even _read_ the output of the framebuffer command, tiny dark gray text on a huge black background :)
-
gwr
What can I type _blind_ ?
-
tsoome
framebuffer set 800x600
-
tsoome
ou, this is omnios?
-
gwr
OK. Resolution set, but text is still dark gray.
-
gwr
Yes, OmniOS
-
tsoome
omnios does its own magic, they set some fixed resolution in attempt to present the screen in some way
-
jbk
is there an echo command? ESC[37m
-
gwr
OK, at least that I can zoom in and see things.
-
gwr
Thanks.
-
jbk
gwr: you said IIRC the system has an IPMI port, right?
-
tsoome
set tem.fg_color=white
-
gwr
I'd rather keep a monitor on there for a while, as it can be tricky to get into the BIOS and such via the KVM (one is often too late to get in)
-
jbk
so keep the monitor on it
-
jbk
go in, configure the IPMI port
-
jbk
enable SOL (whatever they call it)
-
gwr
I'm using the IPMI
-
gwr
I don't see an enable SOL, as yet. Maybe I haven't found it.
-
jbk
what MB is it?
-
jbk
they all use different terms
-
jbk
i have a monitor on my home server, but it just collects dust
-
gwr
AsRock Rack X570D4U
-
tsoome
set screen-font= should list you some options for glyph sizes but 800x600 does not give too many options there (large glyphs will end up with too small terminal size)
-
gwr
The IPMI KVM has the convenience of working from a comfortable position (not next to the server :)
-
jbk
it's under advanced in the setup
-
jbk
SOL gives you the convenience of copy/paste and kmdb from a comfortable position :)
-
jbk
and doesn't issues with browser compatability/quirks
-
jbk
or things like screen resolution issues :)
-
tsoome
Advanced -> Super IO -> SOL :)
-
gwr
Is there a BIOS option to mirror stuff to the serial port?
-
gwr
SOL doesn't seem to be working. I can connect via ipmitool, but it acts like a disconnected serial port.
-
gwr
I'll chase that down later.
-
jbk
try booting w/ console as 'ttyb'
-
jbk
loader should mirror
-
jbk
but then illumos will only write to one console (whatever is passed to it from loader)
-
jbk
i think once that ticket about an smf temp disable exit code is integrated, distros could make things i think more seamless
-
gwr
Wow.. the damn colors. The dark blue for all the settings in the loader menu are dark blue on black (so basically invisible).
-
gwr
This KVM must show things darker than a normal monitor? Dunno...
-
tsoome
-
gwr
I may have to go do this via the physical console.
-
gwr
That FAQ is for different (older) motherboards.
-
gwr
COM1 is wired out the back, COM2 goes to the BMC/IPMI
-
jbk
basically they can enable console-login:tty{a,b} + wscons, then whatever device is passed in as the console, that particular instance can temp disable itself
-
jbk
i have a change that does non-temp disable, but then if you boot w/ console set to something different, a bit of a pain
-
tsoome
I use tem.bg_color=white tem.fg_color=black
-
tsoome
can't see white on black too well...
-
gwr
I tried tem.fg_color=255 and that was a little better. "white" is apparently not 100%
-
gwr
Is "ipmitool -I lanplus ..." the right way to connect to that SOL?
-
gwr
I booted with console=ttyb but ipmitool is still connected to something unresponsive
-
jbk
... sol activate
-
jbk
yeah.. though did you configure it in the BIOS setup?
-
jbk
sometimes the settings are a bit confusing w/ it
-
gwr
I don't see anything under the BIOS settins for SOL other than enable/disable, and the port/irq. (2f8/3)
-
gwr
So _this_ is an interesting discovery: If at the loader menu, I toggle the "graphics console" on and then off, I get back to a resolution and colors that are actually visible in the KVM.
-
gwr
I guess "graphics" mode is on even though the console setting is "text" ?
-
tsoome
do you have 'Legacy Console Redirection Settings' ? next to SOL menu?
-
tsoome
the "text" is really unfortunate name
-
gwr
No such BIOS setting.
-
tsoome
or windows emergency management services?
-
gwr
Nope nothing like that. This mode makes KVM work though.
-
gwr
(meaning I can see what I'm doing now :)
-
tsoome
My AMI does provide SPCR only when windows EMS is enabled, but my system does not have BMC
-
gwr
I want to split the default (0s1) partiton, and I'm concerned about misalignment.
-
gwr
Anyone remember the various ways to specify the new partition size in format? (so the size will be 4K aligned)
-
gwr
Suffixes: mb, gb, tb ... and "e"? and "b"? What's "e"?
-
tsoome
b is block
-
jbk
e is the end block
-
jclulow
e means you're specifying the final block yeah
-
gwr
Huh. Not in the format man page :)
-
gwr
Or maybe I'm looking at and old copy.
-
jbk
that man page can probably drink :)
-
gwr
Someday I should take another whack at "megabyte aligned partitions everywhere"
-
tsoome
btw: this page is suggesting to check serial port speed (claims 38 to be default)
truenas.com/community/resources/how…herboards-alternative-to-jviewer.51
-
gwr
The whole "simulated geometry" thing (with odd-aligned "sectors" per whatever) really screws things.
-
jclulow
format isn't simulating a geometry here really you're just picking block offsets
-
gwr
How can I be sure of that? :)
-
jclulow
prtvtoc on the raw device should tell you what bytes per block size and just the offsets
-
gwr
thx
-
gwr
If I setup machines more than once every few years, I might remember that stuff :)
-
jclulow
Out of interest why are you using slices?
-
gwr
It's a bootalbe NVMe that was setup that way by the installer. I'd like to carve out some space to use as a ZIL
-
jclulow
Ah ok
-
rmustacc
If you still are having trouble with ipmi I can double check another x570d4u bios config at some point.
-
rmustacc
Though someone may have unplugged the system I was thinking of.
-
gwr
This look right?
-
gwr
partition> print
-
gwr
Current partition table (unnamed):
-
gwr
Total disk sectors available: 500101741 + 16384 (reserved sectors)
-
gwr
Part Tag Flag First Sector Size Last Sector
-
gwr
0 system wm 256 256.00MB 524543
-
gwr
1 usr wm 524544 172.00GB 361234687
-
gwr
2 unassigned wm 0 0 0
-
gwr
3 usr wm 361234688 64.00GB 495452415
-
gwr
4 unassigned wm 0 0 0
-
gwr
5 unassigned wm 0 0 0
-
gwr
6 unassigned wm 0 0 0
-
gwr
8 reserved wm 500101775 8.00MB 500118158
-
gwr
pmartition>
-
gwr
That seems to work.
-
richlowe
I haven't used format in years, because zfs
-
gwr
When installing into a pre-configured rpool, do I need to take any manual steps to get the loader installed?
-
gwr
This is the OmniOS installer.
-
jbk
one way to find out :)