Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
15.16. 顯示虛擬主機
您可以使用 virsh 來顯示虛擬主機列表與目前狀態:
virsh list domain-name [ ——inactive | —— -all]
——inactive
選項列出非啟用的網域(已定義但尚未啟用的網域)。— -all
domain 列出所有的網域,不論啟用與否。輸出因該如下列範例:
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