Centos Stream 8 kvm console
记录下 centos8 开启kvm console连接
第一种:
[root@vm1 ~]# systemctl enable serial-getty@ttyS0.service
[root@vm1 ~]# systemctl start serial-getty@ttyS0.service
[root@vm1 ~]# reboot
virsh # console centos-stream8
Connected to domain centos-stream8
Escape character is ^]
CentOS Stream 8
Kernel 4.18.0-277.el8.x86_64 on an x86_64
Activate the web console with: systemctl enable --now cockpit.socket
localhost login:
第二种:
[root@vm1 ~]# grubby --update-kernel=ALL --args="console=ttyS0,115200n8"
[root@vm1 ~]# reboot