Solve the problem that the virsh console cannot connect to the KVM virtual machine.

Source: Internet
Author: User

Solve the problem that the virsh console cannot connect to the KVM virtual machine.

As shown in this case, the link to the KVM virtual machine through the virsh console is stuck on this interface, and no operations can be performed.

You can solve this problem by using the following methods.


1. Modify/etc/securetty and add ttyS0 to the end.

Echo ttyS0>/etc/securetty

2. Modify/etc/inittab to add S0: 12345: respawn:/sbin/agetty/ttyS0 115200.

Echo "S0: 12345: respawn:/sbin/agetty/ttyS0 115200">/etc/inittab

3. Modify/etc/grub. conf, as shown in, add console = ttyS0 at the end of the kernel line


Try again after restart. The connection is normal.

Welcome to my personal website

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.