A. Description of the problem:
The KVM host cannot connect to the client through the console and the card is not moving.
# Virsh Console Vm01
Connected to Domain vm01
Escape character is ^]
Add Virsh console support http://www.linuxidc.com/Linux/2013-02/79556.htm for KVM clients
Second, the solution: the use of VNC or host desktop into the client vm01 to add parameters
1. Add ttyS0 security license to allow root login:
# echo "TtyS0" >>/etc/securetty
2. Add parameters to the kernel in the/etc/grub.conf file:
Console=ttys0
This step should be noted:
CONSOLE=TTYS0 must be placed in kernel this line (about the 16th line), can not be a single line, that is, CONSOLE=TTYS0 is a parameter of kernel, not alone, as follows (to the right pull progress bar, at the end):
# cat-n/etc/grub.conf
# grub.conf generated by Anaconda
#
# Note that you don't have the to rerun grub after making changes to the This file
# notice:you has a/boot partition. This means
# all kernel and INITRD paths is relative to/boot/, eg.
# root (hd0,0)
# kernel/vmlinuz-version RO root=/dev/mapper/volgroup-lv_root
# initrd/initrd-[generic-]version.img
#boot =/dev/vda
Default=0
Timeout=5
Splashimage= (hd0,0)/grub/splash.xpm.gz
Hiddenmenu
Title Red Hat Enterprise Linux (2.6.32-431.el6.x86_64)
Root (hd0,0)
kernel/vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/volgroup-lv_root rd_no_luks LANG=en_US. UTF-8 rd_no_md rd_lvm_lv=volgroup/lv_swap Sysfont=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root keyboardtype=pc keytable=us rd_no_dm rhgb quiet CONSOLE=TTYS0
Initrd/initramfs-2.6.32-431.el6.x86_64.img
3. Add Agetty in/etc/inittab:
S0:12345:respawn:/sbin/agetty ttyS0 115200
4. Restart the client:
# reboot
Third, problem solving
# Virsh Console Vm01
Connected to Domain vm01
Escape character is ^]
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel 2.6.32-431.el6.x86_64 on an x86_64
VM01 Login:root
Password:
Last Login:sun Oct 00:11:47 on Tty1
[[Email protected] ~
KVM basic Commands