KVM-Generated virtual machines if you want to perform virtual machine console operations via the character interface, you will need to modify the relevant configuration file to implement it. The steps are as follows:
(1), add ttyS0 license, allow root login
[Email protected] qemu]# echo "ttyS0" >>/etc/securetty
[[email protected] qemu]# echo "ttyS0" >>/etc/securetty[[email protected] qemu]# cat/etc/securetty consolevc/1vc/ 2vc/3vc/4vc/5vc/6vc/7vc/8vc/9vc/10vc/11tty1tty2tty3tty4tty5tty6tty7tty8tty9tty10tty11ttys0[[email protected] qemu]#
(2) Modify the grub.conf file, add the following content in the grub.conf console=ttys0
[Email protected] qemu]# vi/etc/grub.conf
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7A/B6/wKioL1axlKqwKbwFAADIjhEYORM522.png "title=" 1.png " alt= "Wkiol1axlkqwkbwfaadijheyorm522.png"/>
(3) Modify the Inittab file, add s0:12345:respawn:/sbin/agetty ttyS0 115200 in the/etc/inittab
Note: However, I have not succeeded in measuring, and will continue to test.
This article is from the "Breght Moon" blog, make sure to keep this source http://liqingbiao.blog.51cto.com/3044896/1740971
KVM Virtualization Note (v)------KVM Virtual Machine Console login configuration