[Date Prev][Date Next] [Thread Prev][Thread Next]
[libvirt] [PATCH] Some virsh(1) man page fixes
- From: Mark McLoughlin <markmc redhat com>
- To: libvir-list <libvir-list redhat com>
- Subject: [libvirt] [PATCH] Some virsh(1) man page fixes
- Date: Thu, 25 Sep 2008 11:13:39 +0100
Just looking at virsh(1), I noticed a reference to xm that should have
referred to virsh.
Found some other things as I fixed:
- Explanation of run states was after the bit about the freecell
- State codes like 'r' for running aren't displayed with virsh
- Reference to "xm pause" instead of "virsh suspend"
- "virsh create" explanation confusing and references "xm create";
fixed it up to what I think was the original intention
- Some of the command sections were over-indented
- References to xmdomain.cfg
- Make "see also" reference virt-install, virt-top, virt-mem and
virt-df manpages rather than xmdomain.cfg and xentop
RCS file: /data/cvs/libvirt/docs/virsh.pod,v
retrieving revision 1.17
diff -u -p -r1.17 docs/virsh.pod
--- docs/virsh.pod 1 Aug 2008 14:30:41 -0000 1.17
+++ docs/virsh.pod 25 Sep 2008 10:12:48 -0000
@@ -148,65 +148,62 @@ B<virsh> list
Name is the name of the domain. ID the domain numeric id.
- State is the run state (see below).
-=item B<freecell> optional I<cellno>
-Prints the available amount of memory on the machine or within a
-NUMA cell if I<cellno> is provided.
+State is the run state (see below).
+The State field lists 6 states for a domain, and which ones the
+current domain is in.
-The State field lists 6 states for a Xen Domain, and which ones the
-current Domain is in.
-=item B<r - running>
The domain is currently running on a CPU
-=item B<b - blocked>
The domain is blocked, and not running or runnable. This can be caused
because the domain is waiting on IO (a traditional wait state) or has
gone to sleep because there was nothing else for it to do.
-=item B<p - paused>
The domain has been paused, usually occurring through the administrator
-running B<xm pause>. When in a paused state the domain will still
+running B<virsh suspend>. When in a paused state the domain will still
consume allocated resources like memory, but will not be eligible for
-scheduling by the Xen hypervisor.
+scheduling by the hypervisor.
-=item B<s - shutdown>
The domain is in the process of shutting down, i.e. the guest operating system
has been notified and should be in the process of stopping its operations
-=item B<c - crashed>
The domain has crashed, which is always a violent ending. Usually
this state can only occur if the domain has been configured not to
-restart on crash. See L<xmdomain.cfg> for more info.
+restart on crash.
-=item B<d - dying>
The domain is in process of dying, but hasn't completely shutdown or
+=item B<freecell> optional I<cellno>
+Prints the available amount of memory on the machine or within a
+NUMA cell if I<cellno> is provided.
=head1 DOMAIN COMMANDS
The following commands manipulate domains directly, as stated
previously most commands take domain-id as the first parameter. The
I<domain-id> can be specified as an short integer, a name or a full UUID.
=item B<autostart> optional I<--disable> I<domain-id>
Configure a domain to be automatically started at boot.
@@ -219,7 +216,7 @@ Connect the virtual serial console for t
=item B<create> I<FILE>
-Create a domain from an XML <file> an easy way to create one if you have a pre-existing xen guest created via B<xm> create <XMLFILE>.
+Create a domain from an XML <file>. An easy way to create the XML <file> is to use the B<dumpxml> command to obtain the definition of a pre-existing guest.
@@ -303,9 +300,8 @@ command run from the console. The comma
executed the reboot action, which may be significantly before the
domain actually reboots.
-For xen vm the behavior of what happens to a domain when it reboots is set by the
-I<on_reboot> parameter of the xmdomain.cfg file when the domain was
+The exact behavior of a domain when it reboots is set by the
+I<on_reboot> parameter in the domain's XML definition.
=item B<restore> I<state-file>
@@ -360,9 +356,8 @@ to perform graceful shutdown, so there i
succeed, and may take a variable length of time depending on what
services must be shutdown in the domain.
-For a xen guest vm the behavior of what happens to a domain when it reboots is set by the
-I<on_shutdown> parameter of the xmdomain.cfg file when the domain was
+The exact behavior of a domain when it shuts down is set by the
+I<on_shutdown> parameter in the domain's XML definition.
=item B<start> I<domain-name>
@@ -404,8 +399,6 @@ and I<cpulist> is a comma separated list
Output the IP address and port number for the VNC display. If the information
is not available the processes will provide an exit code of 1.
=head1 DEVICES COMMANDS
The following commands manipulate devices associated to domains.
@@ -414,8 +407,6 @@ To better understand the values allowed
reading the documentation at L<http://libvirt.org/format.html> on the
format of the device sections to get the most accurate set of accepted values.
=item B<attach-device> I<domain-id> I<FILE>
Attach a device to the domain, using a device definition in an XML file.
@@ -456,8 +447,6 @@ I<type> can be either I<network> to indi
It is recommended to use the I<mac> option to distinguish between the interfaces
if more than one are present on the domain.
=head1 VIRTUAL NETWORKS COMMANDS
The following commands manipulate networks. Libvirt has the capability to
@@ -467,8 +456,6 @@ see the documentation at L<http://libvir
of the command for virtual networks are similar to the one used for domains,
but the way to name a virtual network is either by its name or UUID.
=item B<net-autostart> I<network> optional I<--disable>
Configure a virtual network to be automatically started at boot.
@@ -528,29 +515,23 @@ Undefine the configuration for an inacti
Convert a network name to network UUID.
The hypervisor to connect to by default. Set this to a URI, in the same
format as accepted by the B<connect> option.
=head1 SEE ALSO
-L<xm(1)>, L<xmdomain.cfg(5)>, L<xentop(1)> , L<http://www.libvirt.org/>
+L<virt-install(1)>, L<xm(1)>, L<virt-top(1)>, L<virt-mem(1)>, L<virt-df(1)>, L<http://www.libvirt.org/>
Andrew Puch <apuch @ redhat.com>
Daniel Veillard <veillard @ redhat.com>
- Based on the xm man paged by
+ Based on the xm man page by:
Sean Dague <sean at dague dot net>
Daniel Stekloff <dsteklof at us dot ibm dot com>
[Date Prev][Date Next] [Thread Prev][Thread Next]