Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

NOTE: CentOS Enterprise Linux 5 is built from the Red Hat Enterprise Linux source code. Other than logo and name changes CentOS Enterprise Linux 5 is compatible with the equivalent Red Hat version. This document applies equally to both Red Hat and CentOS Enterprise Linux 5.

15.16. Displaying the Virtual Machines

You can use virsh to display the virtual machine list and the current state:

virsh list domain-name [ ——inactive  |  ——all]

The ——inactive option lists inactive domains (domains that have been defined but are not currently active). The —all domain lists all domains, whether active or not. Your output should resemble the this example:

ID                 Name                 State
————————————————
0                   Domain0             running
1                   Domain202           paused
2                   Domain010           inactive
3                   Domain9600          crashed

Here are the six domain states:

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


 
 
  Published under the terms of the GNU General Public License Design by Interspire