8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

systemd KVM console

Posted at

KVM のゲストで debian や Ubuntu を使用しているのですが、それぞれ jessie や vivid に dist-upgrade したらKVM のホストから sudo virsh console hoge で接続出来なくなった。

双方共に systemd に移行した為、従来の設定方法では getty が ttyS0 を見てくれない模様。

各ゲストで下記のコマンドを実行する事で KVM ホストから接続できるようになった。

# /etc/systemd/system/getty.target.wants/ にシンボリックリンクを作成
sudo systemctl enable serial-getty@ttyS0.service
# agetty を起動
sudo systemctl start serial-getty@ttyS0.service

参照:http://0pointer.de/blog/projects/serial-console.html

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?