
For a complete list of the available
xm
commands, run
xm help
. For each command,
there is a more detailed help available that is obtained with the extra parameter
--help
.
More information about the respective subcommands is available in the manual page
of
xm
.
For example, the
xm list --help
displays all options that are available to the list
command. As an example, the
xm list
command displays the status of all virtual
machines.
# xm list
Name
ID
Mem VCPUs
State
Time(s)
Domain-0
0
457
2
r-----
2712.9
OES
7
512
1
-b----
16.3
SLES10
512
1
12.9
The State information tells if a machine is running, and in which state it is. The most
common flags are
r
(running) and b (blocked) where blocked means it is either waiting
for IO, or just sleeping because there is nothing to do. For more details about the state
flags, see
man 1 xm
. The syntax of the
xm
command usually follows the format:
xm
<subcommand> [domain-id] [OPTIONS]
where
subcommand
is the xm command to run,
domain-id
is the ID number assigned
to a domain or the name of the virtual machine, and
OPTIONS
indicates subcommand-
specific options.
Other useful
xm
commands include:
•
xm start
starts a virtual machine
•
xm reboot
reboots a virtual machine
•
xm destroy
immediately terminates a virtual machine
•
xm block-list
displays all virtual block devices attached to a virtual machine
• All
xm
operations require that the Xen control daemon, Xend, be running. For this
reason, you should make sure Xend starts whenever the host boots.
• Most
xm
commands require root privileges to allow interaction with the Xen hyper-
visor. Entering the
xm
command when you are not logged in as root returns an error.
Managing a Virtualization Environment
39
Содержание LINUX ENTERPRISE 11 SP1 - LINUX AUDIT
Страница 1: ...SUSE Linux Enterprise Desktop www novell com 11 SP1 August 18 2010 Virtualization with Xen ...
Страница 6: ......
Страница 11: ...Part I Getting Started with Xen ...
Страница 12: ......
Страница 17: ...Figure 1 2 Desktop Showing Virtual Machine Manager and Virtual Machines Introduction to Xen Virtualization 7 ...
Страница 18: ......
Страница 41: ...Part II Advanced Configurations ...
Страница 42: ......
Страница 54: ......
Страница 87: ...Part III Administration and Best Practices ...
Страница 88: ......
Страница 100: ......
Страница 108: ......
Страница 114: ......
Страница 116: ......
Страница 117: ...Part IV Appendix ...
Страница 118: ......
Страница 122: ......