1.查看运行的虚拟机
[root@room9pc01 ~]# virsh list
Id 名称 状态
----------------------------------------------------
3 rh7_node06 running
4 rh7_node22 running
5 rh7_node02 running
6 rh7_node04 running
2.查看所有的虚拟机(包括当前的电脑的关闭与运行的虚拟机)
[root@room9pc01 ~]# virsh list --all
Id 名称 状态
----------------------------------------------------
3 rh7_node06 running
4 rh7_node22 running
5 rh7_node02 running
6 rh7_node04 running
- classroom 关闭
- desktop 关闭
- rh7_node08 关闭
- rh7_node09 关闭
- server