small tips.
on the Fedora 19 VM ( not a KVM host )
add consle=ttyS0,115200 in /etc/sysconfig/grub file and then update grub.cfg
# cat /etc/sysconfig/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 vconsole.keymap=us $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root rhgb quiet console=ttyS0,115200"
GRUB_DISABLE_RECOVERY="true"
# grub2-mkconfig > /boot/grub2/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.11.1-200.fc19.x86_64
Found initrd image: /boot/initramfs-3.11.1-200.fc19.x86_64.img
Found linux image: /boot/vmlinuz-3.10.7-200.fc19.x86_64
Found initrd image: /boot/initramfs-3.10.7-200.fc19.x86_64.img
Found linux image: /boot/vmlinuz-3.9.5-301.fc19.x86_64
Found initrd image: /boot/initramfs-3.9.5-301.fc19.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-f3c8f32e33ea5b487a97554afaf10441
Found initrd image: /boot/initramfs-0-rescue-f3c8f32e33ea5b487a97554afaf10441.img
done
|
on the Feroa19 VM, add “ttyS0” in /etc/securetty file.
# echo ttyS0 >> /etc/securetty
|
reboot the VM. You will connect to the Fedora 19 VM over virsh console.
on the VM
# reboot
|
on the KVM host, connect to the VM over virsh console.
[root@localhost ~]# virsh console f19-vm1
ドメイン f19-vm1 に接続しました
エスケープ文字は ^] です
[ 0.022000] Failed to access perfctr msr (MSR c0010001 is ffffffffffffffff)
[ OK ] Started Show Plymouth Boot Screen.
[ OK ] Reached target Paths.
[ OK ] Reached target Basic System.
<snip>
|
Please confirm the VM has a serial port.
[root@localhost ~]# virsh dumpxml f19-vm1 | grep serial
<controller type='virtio-serial' index='0'>
<alias name='virtio-serial0'/>
<serial type='pty'>
<alias name='serial0'/>
</serial>
<target type='serial' port='0'/>
<alias name='serial0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
|