15.16. 显示虚拟机信息
你可以用 virsh 来显示虚拟机列表和当前状态:
virsh list domain-name [ ——inactive | —— -all]
——inactive
选项列出不活动的域(已经被定义但当前不活动的域)。— -all
选项列出所有的域,包括活动和不活动的。输出应该和下例中的类似:
ID Name State ———————————————— 0 Domain0 running 1 Domain202 paused 2 Domain010 inactive 3 Domain9600 crashed
这里有六个域状态:
running lists domains currently active on the CPU blocked lists domains that are blocked paused lists domains that are suspended shutdown lists domains that are in process of shutting down shutoff lists domains that are completely down. crashed lists domains that are crashed