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


为了尽快向用户提供最新的信息,本文档可能会包括由机器自动从英文原文翻译的内容。如需更多信息,请参阅此说明。