Installation guide

263
used memory: 512000 kb
Displaying host information
To display information about the host:
# virsh nodeinfo
An example of virsh nodeinfo output:
# 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.
Editing a storage pool definition
The virsh pool-edit command takes the name or UUID for a storage pool and opens the XML
definition file for a storage pool in the users default text editor.
The virsh pool-edit command is equivalent to running the following commands:
# virsh pool-dumpxml pool > pool.xml
# vim pool.xml
# virsh pool-define pool.xml
Note
The default editor is defined by the $VISUAL or $EDITOR environment variables, and default is
vi.
Displaying the guests
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