[libvirt] [PATCH 0/2] about Virsh Command Reference

Hi, We now have libvirt advanced at 0.9.3, but there is almost no progress has been made on Virsh Command Reference. I'm now starting on updating Virsh Command Reference to get it synced with libvirt/virsh, but since I'm not a native-English speaker, there must be grammers, typos, etc. in the documents written by me, so any comments on these are appreciated. Besides, comments on other errors, such as example usages, are also welcome. In this series, docs for two cmmands are updated. I'll post more patches for other commands subsequently. Hu Tao (2): update documentation for command attach-disk update documentation for command detach-disk source/attach-disk.xml | 292 +++++++++++++++++++++++++++++++++++++++++++++++- source/detach-disk.xml | 233 +++++++++++++++++++++++++++++++++++++- 2 files changed, 517 insertions(+), 8 deletions(-) -- 1.7.3.1

--- source/attach-disk.xml | 292 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 288 insertions(+), 4 deletions(-) diff --git a/source/attach-disk.xml b/source/attach-disk.xml index 0922623..4e3d37e 100644 --- a/source/attach-disk.xml +++ b/source/attach-disk.xml @@ -9,16 +9,300 @@ </text> </description> - <options /> + <options> + <parameter requirement="required"> + <value type="string" requirement="required">domain</value> + <description> + <text> + The name of the domain to which a disk device is attached. + </text> + </description> + </parameter> + <parameter requirement="required"> + <keyword requirement="optional">--source</keyword> + <value type="string" requirement="required">source</value> + <description> + <text> + Source of disk device. + </text> + <text> + The word "--source" itself is optional. + </text> + </description> + </parameter> + <parameter requirement="required"> + <keyword requirement="optional">--target</keyword> + <value type="string" requirement="required">target</value> + <description> + <text> + Target of disk device, can be one of vdX, sdX or hdX, where + X is a, b, c, etc. Target determines the type of bus the disk + is connected. For vdX, the disk is connected to a virtio controller, + for sdX, the disk is connected to a scsi controller, for hdX, the + disk is connected to an IDE controller. + </text> + <text> + The world "--target" itself is optional. + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--driver</keyword> + <value type="string" requirement="required">driver</value> + <description> + <text> + Driver of disk device + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--subdriver</keyword> + <value type="string" requirement="required">subdriver</value> + <description> + <text> + Subdriver of disk device + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--cache</keyword> + <value type="string" requirement="required">cache</value> + <description> + <text> + Cache mode of disk device, can be one of <italic>none</italic>, + <italic>writeback</italic>, <italic>writethrough</italic> or + <italic>default</italic> + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--type</keyword> + <value type="string" requirement="required">type</value> + <description> + <text> + Target device type + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--mode</keyword> + <value type="string" requirement="required">mode</value> + <description> + <text> + Mode of device reading and writing, can be <value>readonly</value> or <value>shareable</value>. + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--persistent</keyword> + <description> + <text> + With this option, the domain xml file is updated to add an + element for the attached disk. + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--serial</keyword> + <value type="string" requirement="required">serial</value> + <description> + <text> + Serial of disk + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--shareable</keyword> + <description> + <text> + Shareable between domains + </text> + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--address</keyword> + <value type="string" requirement="required">address</value> + <description> + <text> + Address of disk device, in the style of pci:0000.00.00.0, scsi:00.00.0 + or ide:00.00.0 + </text> + </description> + </parameter> + </options> <availability from="0.3.0" /> <notes /> - <examples type="usage" /> + <examples type="usage"> + <example> + <terminal>virsh # <bold>attach-disk</bold> <value>domain-name</value> <italic>--source</italic> <value>/path/to/disk/image/file</value> <italic>--target</italic> <value>sdb</value></terminal> + <text> + Attaches to a domain named <value>domain-name</value> a scsi disk + whose corresponding image file is located at <value>/path/to/disk/image/file</value>. + The domain must be running. + </text> + </example> + <example> + <terminal>virsh # <bold>attach-disk</bold> <value>domain-name</value> <value>/path/to/disk/image/file</value> <value>sdb</value></terminal> + <text> + The same as above one. <italic>--source</italic> and <italic>--target</italic> + can be omitted. + </text> + </example> + <example> + <terminal>virsh # <bold>attach-disk</bold> <value>domain-name</value> <value>/path/to/disk/image/file</value> <value>vda</value> <italic>--address</italic> <value>pci:0000.00.11.0</value> <italic>--persistent</italic></terminal> + <text> + Attaches a virtio disk to domain-name using the specified pci address, + the domain config file is updated to reflect the change. + </text> + </example> - <examples type="fullcontext" /> - <reference type="seealso" /> + </examples> + + <examples type="fullcontext"> + <example> + <text> + We start with a domain defined as: + </text> + <terminal><domain type='kvm' id='5'> +<name>example-domain</name> + <uuid>6853c36f-af03-4968-a31d-1f3a9c3f699a</uuid> + <memory>1048576</memory> + <currentMemory>1048576</currentMemory> + <vcpu>1</vcpu> + <os> + <type arch='x86_64' machine='pc-0.12'>hvm</type> + <boot dev='hd'/> + </os> + <features> + <acpi/> + <apic/> + <pae/> + </features> + <clock offset='utc'/> + <on_poweroff>destroy</on_poweroff> + <on_reboot>restart</on_reboot> + <on_crash>destroy</on_crash> + <devices> + <emulator>/usr/local/bin/qemu-system-x86_64</emulator> + <disk type='file' device='disk'> + <driver name='qemu' type='raw' cache='writeback'/> + <source file='/mnt/data/libvirt-images/vm2.img'/> + <target dev='vda' bus='virtio'/> + <alias name='virtio-disk0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> + </disk> + <interface type='network'> + <mac address='52:54:00:9a:88:73'/> + <source network='default'/> + <target dev='vnet0'/> + <alias name='net0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> + </interface> + <input type='mouse' bus='ps2'/> + <graphics type='vnc' port='5900' autoport='yes'/> + <video> + <model type='cirrus' vram='9216' heads='1'/> + <alias name='video0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> + </video> + <memballoon model='virtio'> + <alias name='balloon0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> + </memballoon> + </devices> +</domain></terminal> + <text> + Firstly, define and run the domain: + </text> + <terminal>virsh # define example-domain.xml +Domain example-domain defined from example-domain.xml +virsh # start example-domain +Domain example-domain started</terminal> + <text> + To attach another virtio disk to the domain, we run the command: + </text> + <terminal>virsh attach-disk example-domain /path/to/another/image vdb --driver qemu --subdriver qcow2</terminal> + <text> + We can see it appears in the domain by running these commands from guest OS: + </text> + <terminal># fdisk -l +Disk /dev/vdb doesn't contain a valid partition table + +Disk /dev/vda: 8589 MB, 8589934592 bytes +16 heads, 63 sectors/track, 16644 cylinders +Units = cylinders of 1008 * 512 = 516096 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / 512 bytes +Disk identifier: 0x00057a9e + + Device Boot Start End Blocks Id System +/dev/vda1 * 3 15604 7863296 83 Linux +Partition 1 does not end on cylinder boundary. +/dev/vda2 15604 16645 524288 82 Linux swap / Solaris +Partition 2 does not end on cylinder boundary. + +Disk /dev/vdb: 8589 MB, 8589934592 bytes +16 heads, 63 sectors/track, 16644 cylinders +Units = cylinders of 1008 * 512 = 516096 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / 512 bytes +Disk identifier: 0x00000000 + +# lspci +00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) +00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] +00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] +00:01.2 USB Controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01) +00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) +00:02.0 VGA compatible controller: Cirrus Logic GD 5446 +00:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20) +00:04.0 RAM memory: Red Hat, Inc Virtio memory balloon +00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device +00:08.0 SCSI storage controller: Red Hat, Inc Virtio block device</terminal> + <text> + The corresponding xml element of the attached disk is(we can + check it out by running <italic>virsh dumpxml example-domain</italic>): + </text> + <terminal> <disk type='block' device='disk'> + <driver name='qemu' type='qcow2'/> + <source dev='/path/to/another/image'/> + <target dev='vdb' bus='virtio'/> + <alias name='virtio-disk1'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> + </disk></terminal> + <text> + We can see that libvirt assigns automatically an address for the + attached disk. + </text> + </example> + </examples> + + <reference type="seealso"> + <item> + <link type="internal" href="detach-disk" /> + <name>detach-disk</name> + <description> + detach a disk device from a domain + </description> + </item> + <item> + <link type="internal" href="attach-device" /> + <name>attach-device</name> + <description> + attach device from an XML file + </description> + </item> + <item> + <link type="internal" href="detach-device" /> + <name>detach-device</name> + <description> + detach device from an XML file + </description> + </item> + </reference> </command> -- 1.7.3.1

--- source/detach-disk.xml | 233 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 229 insertions(+), 4 deletions(-) diff --git a/source/detach-disk.xml b/source/detach-disk.xml index 53f71e4..16d282c 100644 --- a/source/detach-disk.xml +++ b/source/detach-disk.xml @@ -9,16 +9,241 @@ </text> </description> - <options /> + <options> + <parameter requirement="required"> + <value type="string" requirement="required">domain</value> + <description> + The name of the domain from which a disk device is detached. + </description> + </parameter> + <parameter requirement="required"> + <keyword requirement="optional">--target</keyword> + <value type="string" requirement="required">target</value> + <description> + the disk device to be detached. "--target" itself is optional. + </description> + </parameter> + <parameter requirement="optional"> + <keyword requirement="required">--persistent</keyword> + <description> + with this option, the domain xml file is updated to remove the + element for the detached disk. + </description> + </parameter> + </options> <availability from="0.3.0" /> <notes /> - <examples type="usage" /> + <examples type="usage"> + <example> + <terminal>virsh # <bold>detach-disk</bold> <value>example-domain</value> <italic>--target</italic> <value>sdb</value></terminal> + <text> + Detaches <value>sdb</value> from <value>example-domain</value>. + </text> + </example> + </examples> - <examples type="fullcontext" /> - <reference type="seealso" /> + <examples type="fullcontext"> + <example> + <text> + We are running a domain which is defined as: + </text> + <terminal><domain type='kvm' id='2'> + <name>example-domain</name> + <uuid>6853c36f-af03-4968-a31d-1f3a9c3f699a</uuid> + <memory>1048576</memory> + <currentMemory>1048576</currentMemory> + <blkiotune> + <weight>800</weight> + </blkiotune> + <vcpu>2</vcpu> + <cputune> + <vcpupin vcpu='0' cpuset='1'/> + </cputune> + <os> + <type arch='x86_64' machine='pc-0.12'>hvm</type> + <boot dev='hd'/> + </os> + <features> + <acpi/> + <apic/> + <pae/> + </features> + <clock offset='utc'/> + <on_poweroff>destroy</on_poweroff> + <on_reboot>restart</on_reboot> + <on_crash>restart</on_crash> + <devices> + <emulator>/usr/local/bin/qemu-system-x86_64</emulator> + <disk type='file' device='disk'> + <driver name='qemu' type='raw' cache='writeback'/> + <source file='/mnt/data/libvirt-images/vm2.img'/> + <target dev='vda' bus='virtio'/> + <alias name='virtio-disk0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> + </disk> + <disk type='block' device='disk'> + <driver name='qemu' type='qcow2'/> + <source dev='/mnt/data/libvirt-images/example-vm.img'/> + <target dev='vdb' bus='virtio'/> + <alias name='virtio-disk1'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> + </disk> + <controller type='ide' index='0'> + <alias name='ide0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> + </controller> + <interface type='network'> + <mac address='52:54:00:9a:88:73'/> + <source network='default'/> + <target dev='vnet0'/> + <alias name='net0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> + </interface> + <serial type='tcp'> + <source mode='bind' host='127.0.0.1' service='4555'/> + <protocol type='telnet'/> + <target port='0'/> + <alias name='serial0'/> + </serial> + <console type='tcp'> + <source mode='bind' host='127.0.0.1' service='4555'/> + <protocol type='telnet'/> + <target type='serial' port='0'/> + <alias name='serial0'/> + </console> + <input type='tablet' bus='usb'> + <alias name='input0'/> + </input> + <input type='mouse' bus='ps2'/> + <graphics type='vnc' port='5900' autoport='yes'/> + <sound model='ac97'> + <alias name='sound0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> + </sound> + <video> + <model type='cirrus' vram='9216' heads='1'/> + <alias name='video0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> + </video> + <watchdog model='i6300esb' action='dump'> + <alias name='watchdog0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> + </watchdog> + <memballoon model='virtio'> + <alias name='balloon0'/> + <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> + </memballoon> + </devices> +</domain></terminal> + <text> + There are two disks defined: vda and vdb. + </text> + <terminal># fdisk -l + +Disk /dev/vdb doesn't contain a valid partition table + +Disk /dev/vda: 8589 MB, 8589934592 bytes +16 heads, 63 sectors/track, 16644 cylinders +Units = cylinders of 1008 * 512 = 516096 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / 512 bytes +Disk identifier: 0x00057a9e + + Device Boot Start End Blocks Id System +/dev/vda1 * 3 15604 7863296 83 Linux +Partition 1 does not end on cylinder boundary. +/dev/vda2 15604 16645 524288 82 Linux swap / Solaris +Partition 2 does not end on cylinder boundary. + +Disk /dev/vdb: 8589 MB, 8589934592 bytes +16 heads, 63 sectors/track, 16644 cylinders +Units = cylinders of 1008 * 512 = 516096 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / 512 bytes +Disk identifier: 0x00000000 + +# lspci + +00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) +00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] +00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] +00:01.2 USB Controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01) +00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) +00:02.0 VGA compatible controller: Cirrus Logic GD 5446 +00:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20) +00:04.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01) +00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device +00:06.0 RAM memory: Red Hat, Inc Virtio memory balloon +00:07.0 System peripheral: Intel Corporation 6300ESB Watchdog Timer +00:08.0 SCSI storage controller: Red Hat, Inc Virtio block device </terminal> + <text> + To detach disk vdb, we run the command: + </text> + <terminal>virsh # detach-disk example-domain vdb +Disk detached successfully</terminal> + <text> + To verify that vdb is detached, we check it out from guest OS: + </text> + <terminal># fdisk -l + +Disk /dev/vda: 8589 MB, 8589934592 bytes +16 heads, 63 sectors/track, 16644 cylinders +Units = cylinders of 1008 * 512 = 516096 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / 512 bytes +Disk identifier: 0x00057a9e + + Device Boot Start End Blocks Id System +/dev/vda1 * 3 15604 7863296 83 Linux +Partition 1 does not end on cylinder boundary. +/dev/vda2 15604 16645 524288 82 Linux swap / Solaris +Partition 2 does not end on cylinder boundary. + +# lspci + +00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) +00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] +00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] +00:01.2 USB Controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01) +00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) +00:02.0 VGA compatible controller: Cirrus Logic GD 5446 +00:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20) +00:04.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01) +00:06.0 RAM memory: Red Hat, Inc Virtio memory balloon +00:07.0 System peripheral: Intel Corporation 6300ESB Watchdog Timer +00:08.0 SCSI storage controller: Red Hat, Inc Virtio block device</terminal> + <text> + We can see that vdb and <italic>00:05.0 SCSI storage controller</italic> to which vdb was connected are gone. + </text> + </example> + </examples> + + <reference type="seealso"> + <item> + <link type="internal" href="attach-disk" /> + <name>attach-disk</name> + <description> + attach a disk device to a domain + </description> + </item> + <item> + <link type="internal" href="attach-device" /> + <name>attach-device</name> + <description> + attach device from an XML file + </description> + </item> + <item> + <link type="internal" href="detach-device" /> + <name>detach-device</name> + <description> + detach device from an XML file + </description> + </item> + </reference> </command> -- 1.7.3.1

On Tue, Jul 26, 2011 at 11:03:52AM +0800, Hu Tao wrote:
Hi,
We now have libvirt advanced at 0.9.3, but there is almost no progress has been made on Virsh Command Reference. I'm now starting on updating Virsh Command Reference to get it synced with libvirt/virsh, but since I'm not a native-English speaker, there must be grammers, typos, etc. in the documents written by me, so any comments on these are appreciated. Besides, comments on other errors, such as example usages, are also welcome.
In this series, docs for two cmmands are updated. I'll post more patches for other commands subsequently.
Hu Tao (2): update documentation for command attach-disk update documentation for command detach-disk
source/attach-disk.xml | 292 +++++++++++++++++++++++++++++++++++++++++++++++- source/detach-disk.xml | 233 +++++++++++++++++++++++++++++++++++++- 2 files changed, 517 insertions(+), 8 deletions(-)
-- 1.7.3.1
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
ping

On 16/08/2011, at 1:04 PM, Hu Tao wrote:
On Tue, Jul 26, 2011 at 11:03:52AM +0800, Hu Tao wrote:
Hi,
We now have libvirt advanced at 0.9.3, but there is almost no progress has been made on Virsh Command Reference. I'm now starting on updating Virsh Command Reference to get it synced with libvirt/virsh, but since I'm not a native-English speaker, there must be grammers, typos, etc. in the documents written by me, so any comments on these are appreciated. Besides, comments on other errors, such as example usages, are also welcome.
In this series, docs for two cmmands are updated. I'll post more patches for other commands subsequently.
Hu Tao (2): update documentation for command attach-disk update documentation for command detach-disk
source/attach-disk.xml | 292 +++++++++++++++++++++++++++++++++++++++++++++++- source/detach-disk.xml | 233 +++++++++++++++++++++++++++++++++++++- 2 files changed, 517 insertions(+), 8 deletions(-)
ping
Apologies Hu, I just don't have time to spend on this. Is anyone else interested in picking this stuff up? Regards and best wishes, Justin Clift -- Aeolus Community Manager http://www.aeolusproject.org

On 08/16/2011 07:34 AM, Justin Clift wrote:
On 16/08/2011, at 1:04 PM, Hu Tao wrote:
On Tue, Jul 26, 2011 at 11:03:52AM +0800, Hu Tao wrote:
Hi,
We now have libvirt advanced at 0.9.3, but there is almost no progress has been made on Virsh Command Reference.
For future reference, it would help to put [libvirt-virshcmdref] in the subject line, to make it obvious that the patch is in relation to libvirt-virshcmdref.git instead of the primary libvirt.git.
I'm now starting on updating Virsh Command Reference to get it synced with libvirt/virsh, but since I'm not a native-English speaker, there must be grammers, typos, etc. in the documents written by me, so any comments on these are appreciated. Besides, comments on other errors, such as example usages, are also welcome.
In this series, docs for two cmmands are updated. I'll post more patches for other commands subsequently.
Hu Tao (2): update documentation for command attach-disk update documentation for command detach-disk
source/attach-disk.xml | 292 +++++++++++++++++++++++++++++++++++++++++++++++- source/detach-disk.xml | 233 +++++++++++++++++++++++++++++++++++++- 2 files changed, 517 insertions(+), 8 deletions(-)
I've gone ahead and pushed these two patches - they looked okay to me, and are strictly better than what was there before.
Is anyone else interested in picking this stuff up?
Documentation is indeed important, even if it tends to lag. I'm not sure if I have the right environment set up (I only pushed the source files, but it looks like the practice has also been to store generated files in the virshcmdref repository). When I tried to rebuild things on Fedora 14 with 'make', I got an error: Aug 16, 2011 8:06:01 a.m. org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:196) --------- java.lang.NullPointerException at gnu.xml.transform.SAXSerializer.getValue(libgcj.so.11) at org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:283) at org.apache.fop.fo.FObj.processNode(FObj.java:122) ... so if someone is more familiar with publican, help would be welcome. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

On Tue, Aug 16, 2011 at 08:13:07AM -0600, Eric Blake wrote:
On 08/16/2011 07:34 AM, Justin Clift wrote:
On 16/08/2011, at 1:04 PM, Hu Tao wrote:
On Tue, Jul 26, 2011 at 11:03:52AM +0800, Hu Tao wrote:
Hi,
We now have libvirt advanced at 0.9.3, but there is almost no progress has been made on Virsh Command Reference.
For future reference, it would help to put [libvirt-virshcmdref] in the subject line, to make it obvious that the patch is in relation to libvirt-virshcmdref.git instead of the primary libvirt.git.
I'm now starting on updating Virsh Command Reference to get it synced with libvirt/virsh, but since I'm not a native-English speaker, there must be grammers, typos, etc. in the documents written by me, so any comments on these are appreciated. Besides, comments on other errors, such as example usages, are also welcome.
In this series, docs for two cmmands are updated. I'll post more patches for other commands subsequently.
Hu Tao (2): update documentation for command attach-disk update documentation for command detach-disk
source/attach-disk.xml | 292 +++++++++++++++++++++++++++++++++++++++++++++++- source/detach-disk.xml | 233 +++++++++++++++++++++++++++++++++++++- 2 files changed, 517 insertions(+), 8 deletions(-)
I've gone ahead and pushed these two patches - they looked okay to me, and are strictly better than what was there before.
Is anyone else interested in picking this stuff up?
Documentation is indeed important, even if it tends to lag. I'm not sure if I have the right environment set up (I only pushed the source files, but it looks like the practice has also been to store generated files in the virshcmdref repository). When I tried to rebuild things on Fedora 14 with 'make', I got an error:
Aug 16, 2011 8:06:01 a.m. org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:196)
---------
java.lang.NullPointerException at gnu.xml.transform.SAXSerializer.getValue(libgcj.so.11) at org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:283) at org.apache.fop.fo.FObj.processNode(FObj.java:122) ...
so if someone is more familiar with publican, help would be welcome.
First you need to clone & build this module, using 'autobuild.sh' http://libvirt.org/git/?p=libvirt-publican.git;a=summary Install the resulting RPMs, and then you should be able to build the command ref and app dev guides, again using autobuild.sh. I have a nightly build of this stuff working on F15 so you shouldn't need anything special that's not in the distro Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
participants (4)
-
Daniel P. Berrange
-
Eric Blake
-
Hu Tao
-
Justin Clift