ユーザ用ツール

サイト用ツール


01_linux:01_net:42_centos7_serial

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
01_linux:01_net:42_centos7_serial [2019/12/13 05:19] matsui01_linux:01_net:42_centos7_serial [2020/11/19 05:33] (現在) matsui
行 6: 行 6:
  
 <code> <code>
-# cp /etc/default/grub.`date +%Y%m%d`+# cp /etc/default/grub /etc/default/grub.`date +%Y%m%d`
 # diff /etc/default/grub.`date +%Y%m%d` /etc/default/grub # diff /etc/default/grub.`date +%Y%m%d` /etc/default/grub
 5,6c5,8 5,6c5,8
行 15: 行 15:
 > GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" > GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
 > GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb biosdevname=0 net.ifnames=0" > GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb biosdevname=0 net.ifnames=0"
-> GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS1,115200n8"+> GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8"
 </code> </code>
  
 +==== HP DL360などS1のものは下記のようにする ====
 +
 +  GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS1,115200n8"
  
 ===== grub.cfg 再作成 ===== ===== grub.cfg 再作成 =====
行 30: 行 33:
 done done
 </code> </code>
 +
 +==== UEFI ====
 +UEFIだと以下のようにする
 +
 +UEFI(Unified Extensible Firmware Interface)とは、マザーボードに保存されているプログラムです。
 +時代遅れとなった BIOS に代わり開発されたのが UEFI であり、UEFI は BIOS の後継です。
 +
 +<code>
 +# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
 +</code>
 +===== gettyの設定 =====
 +
 +<code>
 +# cp /lib/systemd/system/serial-getty@.service  /etc/systemd/system/serial-getty@ttyS1.service 
 +# ln -s /etc/systemd/system/serial-getty@ttyS1.service /etc/systemd/system/getty.target.wants/
 +# systemctl daemon-reload
 +# systemctl start  serial-getty@ttyS1.service
 +# systemctl enable serial-getty@ttyS1.service
 +</code>
 +
 +とりあえず1回だけシリアルコンソール表示したい場合、サービスを起動させればそれでOK
 +<code>
 +# systemctl start getty@ttyS0
 +</code>
 +===== securettyの追加 =====
 +
 +<code>
 +# vi /etc/securetty
 +
 +ttyS1
 +</code>
 +
 {{tag>centos7 ipmi}} {{tag>centos7 ipmi}}
01_linux/01_net/42_centos7_serial.1576214367.txt.gz · 最終更新: 2019/12/13 05:19 by matsui