From: Sean Dague Subject: [PATCH] add more details to xm.1 man page Date: Fri, 11 Nov 2005 16:49:45 -0500 Message-ID: <20051111214945.GH13047@underhill.no-ip.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1951900553==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1951900553== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y9PDtDHaFrXNoMPU" Content-Disposition: inline --y9PDtDHaFrXNoMPU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 Diffstat output: xm.pod.1 | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--= ----- 1 files changed, 128 insertions(+), 16 deletions(-) diff -r 1444adb1c407 docs/man/xm.pod.1 --- a/docs/man/xm.pod.1 Fri Nov 11 17:04:17 2005 +0100 +++ b/docs/man/xm.pod.1 Fri Nov 11 16:46:00 2005 -0500 @@ -8,41 +8,148 @@ =20 =3Dhead1 DESCRIPTION =20 -The B program is the main interface for managing Xen guest domains. Th= e program can be used to create, pause, and shutdown domains. It can also b= e used to list current domains, enable or pin VCPUs, and attach or detach v= irtual block devices. The B program relies upon B. The daemon mus= t be running in order for the program to work. - -Domain name can be substituted in the subcommands for Domain id = . +The B 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 basic structure of every xm command is almost always: + + xm [OPTIONS] + +Where I is one of the sub commands listed below, I +is the numeric domain id, or the domain name (which will be internally +translated to domain id), and I are sub command specific +options. There are a few exceptions to this rule in the cases where +the sub command in question acts on all domains, the entire machine, +or directly on the xen hypervisor. Those exceptions will be clear for +each of those sub commands. + +=3Dhead1 NOTES + +All B opperations rely upon the Xen control daemon, aka B. +For any xm commands to run xend must also be running. For this reason +you should start xend as a service when your system first boots using +xen. + +Most B commands require root privledges to run due to the +communications channels used to talk to the hypervisor. Running as +non root will return an error. =20 =3Dhead1 DOMAIN SUBCOMMANDS =20 +The following sub commands manipulate domains directly, as stated +previously most commands take DomId as the first parameter. + =3Dover 4 =20 =3Ditem I =20 -Attach to domain DomId's console. - -=3Ditem I - -Create a domain based on B configuration file. +Attach to domain DomId's console. If you've set up your Domains to +have a traditional log in console this will look much like a normal +text log in screen. + +This uses the back end xenconsole service which currently only +works for para-virtual domains. =20 + +The attached console will perform much like a standard serial console, +so running curses based interfaces over the console B. Vi tends to get very odd when using it over this interface. + +=3Ditem I [-c] [Name=3DValue].. + +The create sub command requires a ConfigFile and can optional take a +series of name value pairs that add to or override variables defined +in the config file. See L for full details of that file +format, and possible options used in either the ConfigFile or +Name=3DValue combinations. + +ConfigFile can either be an absolute path to a file, or a relative +path to a file located in /etc/xen. + +Create will return B as the domain is started. This B mean the guest OS in the domain has actually booted, or is +available for input. + +B + +=3Dover 4=20 + +=3Ditem I<-c> + +Attache console to the domain as soon as it has started. This is +useful for determining issues with crashing domains. + +=3Dback + +B + +=3Dover 4 + +=3Ditem Config file in /etc/xen + +xm create Fedora4 + +This creates a domain with the file /etc/xen/Fedora4, and returns as +soon as it is run. + +=3Ditem Creating a domain without ConfigFile + + xm create /dev/null ramdisk=3Dinitrd.img \ + kernel=3D/boot/vmlinuz-2.6.12.6-xenU \ + name=3Dramdisk nics=3D0 vcpus=3D1 \ + memory=3D64 root=3D/dev/ram0 + +This creates the domain without using a config file (more specifically +using /dev/null as an empty config file), kernel and ramdisk as +specified, setting the name of the domain to "ramdisk", also disabling +virtual networking. (This example comes from the xm-test test suite.) + +=3Dback =20 =3Ditem I =20 -Terminate domain DomId immediately. +Immediately terminate the domain DomId. This doesn't give the domain +OS any chance to react, and it the equivalent of ripping the power +cord out on a physical machine. In most cases you will want to use +the B command instead. =20 =3Ditem I =20 -Converts a domain name to a domain id. +Converts a domain name to a domain id using xend's internal mapping. =20 =3Ditem I =20 -Converts a domain id to a domain name. +Converts a domain id to a domain name using xend's internal mapping. =20 =3Ditem I [--long] =20 -Displays command's help message. The long option prints out the complete s= et of B subcommands. - -=3Ditem I [DomId, ...] - -List information about domains. +Displays the short help message (i.e. common commands). + +The I<--long> option prints out the complete set of B subcommands, +grouped by function. + +=3Ditem I [--long] [DomId, ...] + +Prints information about running domains. + +An example format for the list is as follows: + + Name ID Mem(MiB) VCPUs State Time(s) + Domain-0 0 98 1 r----- 5068.6 + Fedora3 164 128 1 r----- 7.6 + Fedora4 165 128 1 ------ 0.6 + Mandrake2006 166 128 1 -b---- 3.6 + Mandrake10.2 167 128 1 ------ 2.5 + Suse9.2 168 100 1 ------ 1.8 + +Name is the name of the domain. ID the domain numeric id. Mem is the +size of the memory allocated to the domain. VCPUS is the number of +VCPUS allocated to domain. State is the run state (see below). Time +is the total run time of the domain as accounted for by Xen. + +The State field lists 6 states for a Xen Domain, and which ones the +current Domain is in. =20 =3Ditem I =20 @@ -227,6 +334,8 @@ =20 =3Dhead1 VNET COMMANDS =20 +The Virtual Network interfaces for Xen=20 + =3Dover 4 =20 =3Ditem I [-l|--long] @@ -243,12 +352,15 @@ =20 =3Dback =20 +=3Dhead1 EXAMPLES + =3Dhead1 SEE ALSO =20 B(5) =20 =3Dhead1 AUTHOR =20 + Sean Dague Daniel Stekloff =20 =3Dhead1 BUGS -Sean --=20 __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________ --y9PDtDHaFrXNoMPU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFDdRH5SamXem9TdyYRAktlAJ4jKWWNFJ1S6DIq3vgB8982UVcd1QCggqzy V8wgLh/MQQwv1fraYY8V9+4= =fVe6 -----END PGP SIGNATURE----- --y9PDtDHaFrXNoMPU-- --===============1951900553== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1951900553==--