ia64/xen-unstable

changeset 7796:55af8b55abd8

The following patch is work in progress to add more meat to the xm.1 man
page. Expect more content to trickle in over time.

Signed-off-by: Sean Dague <sean@dague.net>
author emellor@leeni.uk.xensource.com
date Sat Nov 12 18:32:19 2005 +0100 (2005-11-12)
parents a06405d12a10
children 5ee1f7f3fc9b
files docs/man/xm.pod.1
line diff
     1.1 --- a/docs/man/xm.pod.1	Sat Nov 12 18:25:12 2005 +0100
     1.2 +++ b/docs/man/xm.pod.1	Sat Nov 12 18:32:19 2005 +0100
     1.3 @@ -8,41 +8,148 @@ xm <subcommand> [args]
     1.4  
     1.5  =head1 DESCRIPTION
     1.6  
     1.7 -The B<xm> program is the main interface for managing Xen guest domains. The program can be used to create, pause, and shutdown domains. It can also be used to list current domains, enable or pin VCPUs, and attach or detach virtual block devices. The B<xm> program relies upon B<xend>. The daemon must be running in order for the program to work.
     1.8 +The B<xm> program is the main interface for managing Xen guest
     1.9 +domains. The program can be used to create, pause, and shutdown
    1.10 +domains. It can also be used to list current domains, enable or pin
    1.11 +VCPUs, and attach or detach virtual block devices.
    1.12 +
    1.13 +The basic structure of every xm command is almost always:
    1.14 +
    1.15 +  xm <SubCommand> <DomId> [OPTIONS]
    1.16  
    1.17 -Domain name <DomName> can be substituted in the subcommands for Domain id <DomId>.
    1.18 +Where I<SubCommand> is one of the sub commands listed below, I<DomId>
    1.19 +is the numeric domain id, or the domain name (which will be internally
    1.20 +translated to domain id), and I<OPTIONS> are sub command specific
    1.21 +options.  There are a few exceptions to this rule in the cases where
    1.22 +the sub command in question acts on all domains, the entire machine,
    1.23 +or directly on the xen hypervisor.  Those exceptions will be clear for
    1.24 +each of those sub commands.
    1.25 +
    1.26 +=head1 NOTES
    1.27 +
    1.28 +All B<xm> opperations rely upon the Xen control daemon, aka B<xend>.
    1.29 +For any xm commands to run xend must also be running.  For this reason
    1.30 +you should start xend as a service when your system first boots using
    1.31 +xen.
    1.32 +
    1.33 +Most B<xm> commands require root privledges to run due to the
    1.34 +communications channels used to talk to the hypervisor.  Running as
    1.35 +non root will return an error.
    1.36  
    1.37  =head1 DOMAIN SUBCOMMANDS
    1.38  
    1.39 +The following sub commands manipulate domains directly, as stated
    1.40 +previously most commands take DomId as the first parameter.
    1.41 +
    1.42  =over 4
    1.43  
    1.44  =item I<console> <DomId>
    1.45  
    1.46 -Attach to domain DomId's console.
    1.47 +Attach to domain DomId's console.  If you've set up your Domains to
    1.48 +have a traditional log in console this will look much like a normal
    1.49 +text log in screen.
    1.50 +
    1.51 +This uses the back end xenconsole service which currently only
    1.52 +works for para-virtual domains.  
    1.53 +
    1.54 +The attached console will perform much like a standard serial console,
    1.55 +so running curses based interfaces over the console B<is not
    1.56 +advised>.  Vi tends to get very odd when using it over this interface.
    1.57 +
    1.58 +=item I<create> [-c] <ConfigFile> [Name=Value]..
    1.59 +
    1.60 +The create sub command requires a ConfigFile and can optional take a
    1.61 +series of name value pairs that add to or override variables defined
    1.62 +in the config file.  See L<xmdomain.cfg> for full details of that file
    1.63 +format, and possible options used in either the ConfigFile or
    1.64 +Name=Value combinations.
    1.65 +
    1.66 +ConfigFile can either be an absolute path to a file, or a relative
    1.67 +path to a file located in /etc/xen.
    1.68 +
    1.69 +Create will return B<as soon> as the domain is started.  This B<does
    1.70 +not> mean the guest OS in the domain has actually booted, or is
    1.71 +available for input.
    1.72 +
    1.73 +B<OPTIONS>
    1.74 +
    1.75 +=over 4 
    1.76  
    1.77 -=item I<create> <CfgFile>
    1.78 +=item I<-c>
    1.79 +
    1.80 +Attache console to the domain as soon as it has started.  This is
    1.81 +useful for determining issues with crashing domains.
    1.82 +
    1.83 +=back
    1.84 +
    1.85 +B<EXAMPLES>
    1.86 +
    1.87 +=over 4
    1.88 +
    1.89 +=item Config file in /etc/xen
    1.90 +
    1.91 +xm create Fedora4
    1.92  
    1.93 -Create a domain based on B<xmdomain.cfg> configuration file.
    1.94 +This creates a domain with the file /etc/xen/Fedora4, and returns as
    1.95 +soon as it is run.
    1.96 +
    1.97 +=item Creating a domain without ConfigFile
    1.98 +
    1.99 + xm create /dev/null ramdisk=initrd.img \
   1.100 +    kernel=/boot/vmlinuz-2.6.12.6-xenU \
   1.101 +    name=ramdisk nics=0 vcpus=1 \
   1.102 +    memory=64 root=/dev/ram0
   1.103 +
   1.104 +This creates the domain without using a config file (more specifically
   1.105 +using /dev/null as an empty config file), kernel and ramdisk as
   1.106 +specified, setting the name of the domain to "ramdisk", also disabling
   1.107 +virtual networking.  (This example comes from the xm-test test suite.)
   1.108 +
   1.109 +=back
   1.110  
   1.111  =item I<destroy> <DomId>
   1.112  
   1.113 -Terminate domain DomId immediately.
   1.114 +Immediately terminate the domain DomId.  This doesn't give the domain
   1.115 +OS any chance to react, and it the equivalent of ripping the power
   1.116 +cord out on a physical machine.  In most cases you will want to use
   1.117 +the B<shutdown> command instead.
   1.118  
   1.119  =item I<domid> <DomName>
   1.120  
   1.121 -Converts a domain name to a domain id.
   1.122 +Converts a domain name to a domain id using xend's internal mapping.
   1.123  
   1.124  =item I<domname> <DomId>
   1.125  
   1.126 -Converts a domain id to a domain name.
   1.127 +Converts a domain id to a domain name using xend's internal mapping.
   1.128  
   1.129  =item I<help> [--long]
   1.130  
   1.131 -Displays command's help message. The long option prints out the complete set of B<xm> subcommands.
   1.132 +Displays the short help message (i.e. common commands).
   1.133 +
   1.134 +The I<--long> option prints out the complete set of B<xm> subcommands,
   1.135 +grouped by function.
   1.136 +
   1.137 +=item I<list> [--long] [DomId, ...]
   1.138 +
   1.139 +Prints information about running domains.
   1.140 +
   1.141 +An example format for the list is as follows:
   1.142  
   1.143 -=item I<list> [DomId, ...]
   1.144 + Name                              ID Mem(MiB) VCPUs State  Time(s)
   1.145 + Domain-0                           0       98     1 r-----  5068.6
   1.146 + Fedora3                          164      128     1 r-----     7.6
   1.147 + Fedora4                          165      128     1 ------     0.6
   1.148 + Mandrake2006                     166      128     1 -b----     3.6
   1.149 + Mandrake10.2                     167      128     1 ------     2.5
   1.150 + Suse9.2                          168      100     1 ------     1.8
   1.151  
   1.152 -List information about domains.
   1.153 +Name is the name of the domain.  ID the domain numeric id.  Mem is the
   1.154 +size of the memory allocated to the domain.  VCPUS is the number of
   1.155 +VCPUS allocated to domain.  State is the run state (see below).  Time
   1.156 +is the total run time of the domain as accounted for by Xen.
   1.157 +
   1.158 +The State field lists 6 states for a Xen Domain, and which ones the
   1.159 +current Domain is in.
   1.160  
   1.161  =item I<mem-max> <DomId> <Mem>
   1.162  
   1.163 @@ -227,6 +334,8 @@ List virtual network interfaces for a do
   1.164  
   1.165  =head1 VNET COMMANDS
   1.166  
   1.167 +The Virtual Network interfaces for Xen 
   1.168 +
   1.169  =over 4
   1.170  
   1.171  =item I<vnet-list> [-l|--long]
   1.172 @@ -243,12 +352,15 @@ Delete a vnet.
   1.173  
   1.174  =back
   1.175  
   1.176 +=head1 EXAMPLES
   1.177 +
   1.178  =head1 SEE ALSO
   1.179  
   1.180  B<xmdomain.cfg>(5)
   1.181  
   1.182  =head1 AUTHOR
   1.183  
   1.184 +  Sean Dague <sean at dague dot net>
   1.185    Daniel Stekloff <dsteklof at us dot ibm dot com>
   1.186  
   1.187  =head1 BUGS