Some of the domain commands may actually take
quite a long time to complete. The only way to determine whether the command
is successfully completed is to print out the list periodically and check it. The two
most fundamental operations that we use xm for are to create a domain and to list the
state of all the domains in the current Xen environment. The state field in the list of
domains has one of the five possible states for a domain:
r??”running: Lists domains currently active on a CPU.
b??”blocked: Lists domains that are blocked. This happens when the vcpu is
waiting for an external event to happen for this domain.
p??”paused: Lists domains that are suspended. The paused domain will
still consumes allocated resources such as memory, but is not eligible for
scheduling by the Xen hypervisor.
s??”shutdown: Lists domains that are in process of shutting down.
c??”crashed: Lists domains that are crashed.
??? ??? ??? ??? ???
Chapter 4
[ 57 ]
The normal listing of domains is in a table format that is not very easy for other tools
to parse. therefore xm also provides a ??“long option to list the domain information in
an S-Expression format that can be easily parsed by other tools.
Time for Action??”Xen Manager
You need not install xm separately. On Fedora Core, installing Xen will include the
installation of various Xen tools. We have already used xm in the previous chapter to
create domains and list the domains. We will now demonstrate some of the common
tasks performed with xm.
Pages:
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67