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

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.