KVM Virtualization Note (v)------KVM Virtual Machine Console login configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.