Installation guide

# virsh nodeinfo
CPU model x86_64
CPU (s) 8
CPU frequency 2895 Mhz
CPU socket(s) 2
Core(s) per socket 2
Threads per core: 2
Numa cell(s) 1
Memory size: 1046528 kb
This displays the node information and the machines that support the virtualization process.
Disp layin g t h e g u est s
To display the guest list and their current states with virsh:
# virsh list
Other options available include:
the --inactive option to list inactive guests (that is, guests that have been defined but are not
currently active), and
the --all option lists all guests. For example:
# virsh list --all
Id Name State
----------------------------------
0 Domain-0 running
1 Domain202 paused
2 Domain010 inactive
3 Domain9600 crashed
The output from virsh list is categorized as one of the six states (listed below).
The running state refers to guests which are currently active on a CPU.
Guests listed as blocked are blocked, and are not running or runnable. This is caused by a
guest waiting on I/O (a traditional wait state) or guests in a sleep mode.
The paused state lists domains that are paused. This occurs if an administrator uses the pause
button in virt-manager, xm pause or virsh suspend. When a guest is paused it consumes
memory and other resources but it is ineligible for scheduling and CPU resources from the
hypervisor.
The shutdown state is for guests in the process of shutting down. The guest is sent a shutdown
signal and should be in the process of stopping its operations gracefully. This may not work with
all guest operating systems; some operating systems do not respond to these signals.
Domains in the dying state are in is in process of dying, which is a state where the domain has
not completely shut-down or crashed.
crashed guests have failed while running and are no longer running. This state can only occur if
the guest has been configured not to restart on crash.
Disp layin g virt u al CPU in f o rmat io n
To display virtual CPU information from a guest with virsh:
Chapt er 2 6 . Man aging guest s wit h virsh
263