在网络控制的比较严格的情况下,远程桌面等连接虚拟机的方式可能会受到限制。virsh有一个现有的命令,可以在需要的时候应应急
[root@pc ~]# virsh help console
NAME
console - connect to the guest console
SYNOPSIS
console <domain> [--devname <string>] [--force] [--safe]
DESCRIPTION
Connect the virtual serial console for the guest
OPTIONS
[--domain] <string> domain name, id or uuid
--devname <string> character device name
--force force console connection (disconnect already connected sessions)
--safe only connect if safe console handling is supported
但是默认的情况下,执行virsh console dom_name的时候,会发现hang住,没有任何反应。