[PATCH 1/2] docs: formatdomain: Add examples for nbd source

Han Han hhan at redhat.com
Thu Sep 17 10:02:51 UTC 2020


Peter, could you please review and merge this patch first?
It is actually independent from the 2/2 rejected patch.

On Wed, Sep 16, 2020 at 1:49 PM Han Han <hhan at redhat.com> wrote:

> Signed-off-by: Han Han <hhan at redhat.com>
> ---
>  docs/formatdomain.rst | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>
> diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
> index 18e237c157..49713a12d4 100644
> --- a/docs/formatdomain.rst
> +++ b/docs/formatdomain.rst
> @@ -2409,6 +2409,27 @@ paravirtualized driver is specified via the
> ``disk`` element.
>         </source>
>         <target dev='vde' bus='virtio'/>
>       </disk>
> +     <disk type='network' device='disk'>
> +       <driver name='qemu' type='raw'/>
> +       <source protocol='nbd' tls='yes'>
> +         <host name='example.com' port='10809'/>
> +       </source>
> +       <target dev='vdf' bus='virtio'/>
> +     </disk>
> +     <disk type='network' device='disk'>
> +       <driver name='qemu' type='raw'/>
> +       <source protocol='nbd' name='bar' tls='no'>
> +         <host name='example.com' port='10810'/>
> +       </source>
> +       <target dev='vdg' bus='virtio'/>
> +     </disk>
> +     <disk type='network' device='disk'>
> +       <driver name='qemu' type='raw'/>
> +       <source protocol='nbd' name='bar'>
> +         <host transport='unix' socket='/var/run/nbdsock'/>
> +       </source>
> +       <target dev='vdh' bus='virtio'/>
> +     </disk>
>     </devices>
>     ...
>
> --
> 2.28.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200917/a9796f04/attachment-0001.htm>


More information about the libvir-list mailing list