Linux Virsh console cannot log in to virtual machine

Source: Internet
Author: User
Tags to domain
Using console to log on to the virtual machine but without success, the card master

Through the online query, but many are CENTOS6 configuration centos7 and files
No/etc/grub.conf file

[[email protected] ~]# virsh console linux1Connected to domain linux1Escape character is ^][[email protected] ~]# cat /etc/securetty | tail -n 1  ##在该文件中添加一行即可ttyS0[[email protected] ~]# cat /etc/inittab | grep ttyS0   ##在该文件中加入如下一行,我把该行放到了S0:12345:respawn:/sbin/agetty ttyS0 115200[[email protected] ~]# cat /etc/grub2.cfg | grep ttyS0 ##修改grub.conf文件,在kernel所在的行最后添加 console=ttyS0 ,我是随便找了一个修改的 7中有好几个kernelkernel /vmlinuz-2.6.18-308.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet console=ttyS0修改完成后,重启虚拟机!问题即可解决!

Linux Virsh console cannot log in to virtual machine

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.