One useful command is # xm list
which lists all domains running in rows
of the following format:
name domid memory vcpus state cputime
The meaning of each field is as follows:
- name
- The descriptive name of the virtual machine.
- domid
- The number of the domain ID this virtual machine is
running in.
- memory
- Memory size in megabytes.
- vcpus
- The number of virtual CPUs this domain has.
- state
- Domain state consists of 5 fields:
- r
- running
- b
- blocked
- p
- paused
- s
- shutdown
- c
- crashed
- cputime
- How much CPU time (in seconds) the domain has used so
far.
The xm list command also supports a long output format when the
-l switch is used. This outputs the full details of the
running domains in xend's SXP configuration format.
You can get access to the console of a particular domain using
the # xm console
command (e.g. # xm console myVM
).