SOL 只是把主機的序列埠轉播出來 —— 主機沒有把畫面送到序列埠,SOL 就是一片空白,這不是連線失敗。要看到完整畫面需要兩層設定:BIOS 的 Console Redirection(POST / BIOS 選單 / 開機載入器)與作業系統的序列主控台(kernel 訊息與登入提示)。 SOL only relays the host's serial port. If the host sends nothing to that port the screen stays blank — that is not a failed connection. Two layers are involved: BIOS console redirection (POST, BIOS menu, boot loader) and the operating system's serial console (kernel messages and the login prompt).SOL はホストのシリアルポートを中継しているだけです。ホストがそのポートへ何も出力していなければ画面は真っ白のままで、これは接続の失敗ではありません。関係する層は二つあります。BIOS のコンソールリダイレクション(POST・BIOS メニュー・ブートローダ)と、OS 側のシリアルコンソール(カーネルメッセージとログインプロンプト)です。
以 AMI (Aptio) 為例,路徑是 Advanced → Serial Port Console Redirection。該畫面通常列出 COM1、COM2、SOL 等多個項目 —— 要設定的是 SOL 那一個(有些主機板寫成 COM2 (SOL)),先把它的 Console Redirection 設為 Enabled,再進入 Console Redirection Settings:
On AMI (Aptio) the path is Advanced → Serial Port Console Redirection. That screen usually lists several entries — COM1, COM2, SOL — and the one to configure is SOL (some boards label it COM2 (SOL)). Set its Console Redirection to Enabled, then open Console Redirection Settings:AMI (Aptio) の場合、場所は Advanced → Serial Port Console Redirection です。この画面には COM1・COM2・SOL など複数の項目が並びますが、設定するのは SOL の項目です(COM2 (SOL) と表記する製品もあります)。まずその Console Redirection を Enabled にし、続いて Console Redirection Settings を開きます。
Terminal Type [VT100+] Bits per second [115200] Data Bits [8] Parity [None] Stop Bits [1] Flow Control [None] VT-UTF8 Combo Key Support [Enabled] Recorder Mode [Disabled] Resolution 100x31 [Enabled] Legacy OS Redirection Resolution [80x24] Putty KeyPad [VT100] Redirection After BIOS POST [Always Enable]
| 欄位Setting項目 | 建議值Value推奨値 | 設錯會怎樣What goes wrong if it is off間違えるとどうなるか |
|---|---|---|
| Terminal Type | VT100+ |
VT100 沒有色彩與功能鍵;VT-UTF8 只有在主機端也是 UTF-8 時才對得上,否則方框字。瀏覽器端的 SOL 終端機兩者都吃得下,VT100+ 最不容易出錯。Plain VT100 has no colour or function keys; VT-UTF8 only lines up when the host is UTF-8 too, otherwise you get replacement boxes. The in-browser terminal accepts both, and VT100+ is the safest.素の VT100 には色もファンクションキーもありません。VT-UTF8 はホスト側も UTF-8 のときだけ噛み合い、違えば文字化けします。ブラウザ内の端末はどちらも扱えますが、VT100+ が最も無難です。 |
| Bits per second | 115200 |
必須與 BMC 的 SOL 速率相同。查法:ipmitool -I open sol info 1 | grep 'Bit Rate'。不一致的症狀是「有畫面但整片亂碼」。Must match the BMC's SOL rate — check with ipmitool -I open sol info 1 | grep 'Bit Rate'. A mismatch shows up as a screen full of garbage.BMC の SOL 速度と一致している必要があります。確認は ipmitool -I open sol info 1 | grep 'Bit Rate'。食い違うと画面一面が文字化けします。 |
| Data Bits / Parity / Stop Bits | 8 / None / 1 |
8N1 是 console= 與 serial-getty 的預設值。三格任一不同,字元就會錯位。8N1 is what console= and serial-getty default to. Any of the three differing corrupts every character.8N1 は console= と serial-getty の既定値です。三つのどれかが違うだけで文字がずれます。 |
| Flow Control | None |
設成 Hardware RTS/CTS 但 SOL 這條路上沒有對應的線控,輸出送幾行就停住 —— 看起來像「連上之後畫面凍住」。Set to Hardware RTS/CTS with nothing on the SOL side to answer it, output stops after a few lines — it looks like the session froze right after connecting.Hardware RTS/CTS にしても SOL 側に応じる相手がいないため、数行で出力が止まります。接続直後に画面が固まったように見えます。 |
| VT-UTF8 Combo Key Support | Enabled |
讓終端機用組合鍵送出 F1–F12 與方向鍵。關掉的話 BIOS 選單裡按不動 F2 / F10 這類鍵。Lets a terminal send F1–F12 and arrows as key combinations. Disabled, you cannot press F2 / F10 in the BIOS menu.端末から F1–F12 や方向キーを組み合わせキーとして送れるようにします。無効だと BIOS メニューで F2 / F10 が効きません。 |
| Recorder Mode | Disabled |
這是給「把輸出抄成純文字紀錄」用的:只送文字、拿掉游標定位。開著的話 BIOS 選單不會重繪,畫面會像一直往下捲的亂流水帳。This is for capturing output as a plain-text log: text only, no cursor positioning. Left on, the BIOS menu never repaints and the screen just scrolls endlessly.これは出力をプレーンテキストのログとして取り込むための設定で、文字だけを送りカーソル移動を行いません。有効のままだと BIOS メニューが再描画されず、画面が延々と流れ続けます。 |
| Resolution 100x31 | Enabled |
BIOS 用 100×31 而不是 80×24。若你的終端機固定 80 欄,右側會被切掉 —— 那就把這格關掉,或在主控台工具列按「符合視窗」。Draws the BIOS at 100×31 instead of 80×24. If your terminal is fixed at 80 columns the right edge is cut off — either turn this off or use the console's "fit to window" button.BIOS を 80×24 ではなく 100×31 で描画します。端末が 80 桁固定だと右端が切れるので、この項目を無効にするか、コンソールのツールバーの「ウィンドウに合わせる」を使ってください。 |
| Legacy OS Redirection Resolution | 80x24 |
只影響 legacy(非 UEFI)開機載入器的畫面大小,維持預設即可。Only affects the screen size for a legacy (non-UEFI) boot loader; the default is fine.レガシー(非 UEFI)ブートローダの画面サイズにのみ影響します。既定のままで構いません。 |
| Putty KeyPad | VT100 |
只影響 PuTTY 數字鍵盤送出的碼。用瀏覽器內的 SOL 主控台時無影響,維持 VT100。Only changes what PuTTY's numeric keypad sends. It makes no difference to the in-browser console; leave it at VT100.PuTTY のテンキーが送るコードが変わるだけです。ブラウザ内のコンソールには影響しないので VT100 のままにします。 |
| Redirection After BIOS POST | Always Enable |
最常設錯的一格。Disabled 或 Boot Loader 會讓轉播在 POST 結束(或載入器交棒)後停掉,症狀是「看得到 BIOS,開機之後就沒畫面了」 —— 很容易被誤判成作業系統那邊沒設好。The one that is most often wrong. Disabled or Boot Loader stops the relay once POST finishes (or once the loader hands over), so you see the BIOS and then nothing after boot — which is easily mistaken for a missing OS-side setting.最も間違えやすい項目です。Disabled や Boot Loader にすると、POST 終了時(またはローダが制御を渡した時点)で中継が止まります。BIOS は見えるのに起動後は何も出ないという症状になり、OS 側の設定漏れと誤解されがちです。 |
其他廠牌名稱不同,設定的是同一件事:HPE iLO 是 BIOS/Platform Configuration → Serial Port Options → Virtual Serial Port;Dell iDRAC 是 Serial Communication(把 Serial Communication 設為 On with Console Redirection、Serial Port Address 對到 Serial Device 2);Supermicro 在 Advanced → Serial Port Console Redirection,項目名為 SOL/COM2。
Other vendors name it differently but configure the same thing: HPE iLO — BIOS/Platform Configuration → Serial Port Options → Virtual Serial Port; Dell iDRAC — Serial Communication (set it to On with Console Redirection and point Serial Port Address at Serial Device 2); Supermicro — Advanced → Serial Port Console Redirection, the entry named SOL/COM2.メーカーによって名称は異なりますが、設定している内容は同じです。HPE iLO は BIOS/Platform Configuration → Serial Port Options → Virtual Serial Port、Dell iDRAC は Serial Communication(On with Console Redirection にし、Serial Port Address を Serial Device 2 に向けます)、Supermicro は Advanced → Serial Port Console Redirection の SOL/COM2 という項目です。
BIOS 只負責 POST 到開機載入器那一段。要看到 kernel 訊息與登入提示,作業系統也要往同一個序列埠輸出。 The BIOS only covers POST through the boot loader. For kernel messages and a login prompt the OS has to write to the same serial port.BIOS が面倒を見るのは POST からブートローダまでです。カーネルメッセージとログインプロンプトを見るには、OS も同じシリアルポートへ出力する必要があります。
dmesg | grep -iE 'ttyS|SPCR' # SPCR: console: uart,io,0x3f8,115200 → 0x3f8 = ttyS0 / 0x2f8 = ttyS1
SPCR 宣告的未必就是 BMC 實際轉播的那一個。連著 SOL 時逐埠送測試字,哪個出現才是對的:echo test > /dev/ttyS0、echo test > /dev/ttyS1;或看 /proc/tty/driver/serial,rx 有在增加的那個就是。
What SPCR declares is not always what the BMC relays. With SOL connected, send a marker to each port and see which one appears: echo test > /dev/ttyS0, echo test > /dev/ttyS1 — or read /proc/tty/driver/serial and pick the one whose rx counter moves.SPCR が宣言している値が、BMC が実際に中継しているポートとは限りません。SOL を接続した状態で各ポートへ目印を送り、どれが画面に出るかを見ます。echo test > /dev/ttyS0、echo test > /dev/ttyS1。あるいは /proc/tty/driver/serial を読み、rx のカウンタが増えているポートを選びます。
systemctl enable --now serial-getty@ttyS1.service
# GRUB:/etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet console=tty0 console=ttyS1,115200n8" update-grub # Proxmox VE (systemd-boot/ZFS):改 /etc/kernel/cmdline 後 proxmox-boot-tool refresh
保留 console=tty0,機房實體螢幕才不會失去輸出。console= 只掛 SOL 那一個 ttyS —— 掛兩個以上時核心會挑最後一個當主控台,很容易挑錯。用 cat /proc/consoles 確認。改完要重新開機才生效。
Keep console=tty0 so the physical monitor still gets output. List only the SOL port in console= — with more than one the kernel takes the last as its console, which is easy to get wrong. Confirm with cat /proc/consoles. A reboot is required.console=tty0 は残しておきます。そうすればサーバルームの物理モニタにも出力が残ります。console= には SOL のポートだけを書いてください。二つ以上書くとカーネルは最後のものをコンソールとして扱うため、意図しない側になりがちです。cat /proc/consoles で確認できます。反映には再起動が必要です。
| 症狀Symptom症状 | 先看這裡Check this firstまずここを確認 |
|---|---|
| 連上但一片空白,按 Enter 也沒反應Connected but blank; Enter does nothing接続できるが真っ白で、Enter を押しても反応しない | 主機根本沒往那個埠輸出:先做 OS 步驟 2,再確認 BIOS 開的是 SOL 那一個埠而不是 COM1。Nothing is writing to that port: do OS step 2, then confirm the BIOS entry you enabled is the SOL one, not COM1.そもそもそのポートへ何も書かれていません。まず OS の手順 2 を行い、次に BIOS で有効にした項目が COM1 ではなく SOL の方であることを確認します。 |
| 看得到 BIOS,開機後就沒畫面BIOS shows, then nothing after bootBIOS は見えるのに起動後は何も出ない | Redirection After BIOS POST 不是 Always Enable;若那格是對的,才輪到 OS 的 console=。Redirection After BIOS POST is not Always Enable; only if that is right does the OS console= come into question.Redirection After BIOS POST が Always Enable になっていません。そこが正しい場合に初めて OS 側の console= が疑わしくなります。 |
| 有開機訊息但沒有登入提示Boot messages appear but no login prompt起動メッセージは出るがログインプロンプトが出ない | 核心主控台掛對埠了,但那個埠沒有 serial-getty:systemctl enable --now serial-getty@ttySN。The kernel console is on the right port but nothing serves a login there: systemctl enable --now serial-getty@ttySN.カーネルコンソールのポートは合っていますが、そのポートでログインを受け付けるものがありません。systemctl enable --now serial-getty@ttySN を実行します。 |
| 整片亂碼Everything is garbage画面一面が文字化けする | 速率沒對齊:Bits per second、ipmitool sol info 1 的 Bit Rate、console=ttyS1,115200n8 三處要一致。Rates disagree: Bits per second, the Bit Rate from ipmitool sol info 1, and console=ttyS1,115200n8 must all match.速度が揃っていません。Bits per second、ipmitool sol info 1 の Bit Rate、console=ttyS1,115200n8 の三つを一致させます。 |
| 送幾行就凍住Freezes after a few lines数行で固まる | Flow Control 設成 Hardware 了,改 None。Flow Control is set to Hardware; set it to None.Flow Control が Hardware になっています。None にしてください。 |
| 方框字、怪符號Replacement boxes and odd glyphs文字化けの四角や見慣れない記号が出る | 開機訊息是 systemd 的狀態圖示(核心參數加 systemd.show_status=auto 或改用 quiet);BIOS 畫面則是 Terminal Type 選了 VT-UTF8。In boot messages it is systemd's status glyphs (add systemd.show_status=auto, or use quiet); on the BIOS screen it is Terminal Type set to VT-UTF8.起動メッセージなら systemd のステータス記号です(カーネルパラメータに systemd.show_status=auto を加えるか quiet を使います)。BIOS 画面なら Terminal Type が VT-UTF8 になっています。 |
| 畫面被切掉 / 四周留黑Edges cut off, or a small screen with black margins端が切れる/周囲に黒い余白が出る | 序列連線無法自動傳視窗大小。按主控台工具列的符合視窗(送 stty),或把 BIOS 的 Resolution 100x31 關掉。A serial line cannot negotiate window size. Use the console's fit to window button (it sends stty), or turn the BIOS Resolution 100x31 off.シリアル回線はウィンドウサイズを通知できません。コンソールのツールバーのウィンドウに合わせる(stty を送ります)を使うか、BIOS の Resolution 100x31 を無効にしてください。 |
同一份教學(作業系統的部分)也內建在 App 裡:開啟 BMC 主控台後按設定教學。BMC 主控台為 Beta,只有鍵盤與文字畫面,不含電源控制或滑鼠。 The OS half of this guide is also built into the app — open a BMC console and press Setup guide. The BMC console is Beta: keyboard and text screen only, no power control and no mouse.この手引きの OS 側の内容はアプリにも組み込まれています。BMC コンソールを開いて設定ガイドを押してください。BMC コンソールは Beta で、キーボードとテキスト画面のみです。電源制御やマウスには対応していません。