シリアル通信設定
# vi /etc/default/grub
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
GRUBの更新
Ubuntu
# update-grub
CentOS
# grub2-mkconfig -o /boot/grub2/grub.cfg
シリアルサービスを有効化
systemctl enable --now serial-getty@ttyS0
再起動
ホスト設定
# virsh edit <ゲスト>
<device>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
...
