console†

virshで仮想マシンにconsoleで接続するなら virsh で「console <ドメイン>」なのだが、

[root@i ~]# virsh
Welcome to virsh, the virtualization interactive terminal.
 
Type:  'help' for help with commands
       'quit' to quit
 
virsh # console centos7.0
Connected to domain centos7.0
Escape character is ^]                  <-- ここで止まってしまう

と何も仮想マシンに設定しないとここで止まってしまう。
解消するには、仮想マシンのサービスを有効にする

systemctl enable serial-getty@ttyS0.service
 
systemctl start serial-getty@ttyS0.service

これでconsoleコマンドで接続が可能になる

[root@i ~]# virsh
Welcome to virsh, the virtualization interactive terminal.
 
Type:  'help' for help with commands
       'quit' to quit
 
virsh # console centos7.0
Connected to domain centos7.0
Escape character is ^]
 
CentOS Linux 7 (Core)
Kernel 3.10.0-1160.25.1.el7.x86_64 on an x86_64
 
localhost login:
最新の60件
2026-10-09 2026-10-08 2026-10-07 2026-10-06 2026-10-05 2026-10-04 2026-10-02 2026-10-01 2026-09-30 2026-09-28 2026-09-27 2026-09-26 2026-09-22 2026-09-17 2026-09-11 2026-09-06 2026-08-31 2026-08-27 2026-08-24 2026-08-20 2026-08-19 2026-08-18 2026-08-17 2026-08-16 2026-08-15 2026-08-13 2026-08-12 2026-08-11 2026-08-09 2026-07-30 2026-07-25 2026-07-24 2026-07-20 2026-07-18 2026-07-17 2026-07-16 2026-07-08 2026-07-06 2026-07-04 2026-07-02

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-06-09 (水) 16:04:24