- pty控制台:
<console type='pty'>
<target type='virtio' />
<alias name='console1'/>
</console>
- 没有输出当我执行命令时
virsh ttyconsole vm_name
- 日志(/var/log/libvirt/qemu/vm_name.log):
char device redirected to /dev/pts/2 (label charconsole1)
- 当 l exec 时
virsh console vm_name console1
,命令卡住了。只输出:
Connected to domain vm_name
Escape character is ^] (Ctrl + ]) (i had pressed enter button)
- 我尝试过一些方法(RHEL6 virsh 控制台域),喜欢编辑 /boot/grub/menu.lst 和 /etc/inittab.但是这不能解决问题。