From 11a47211b822d97d49557d17dcb2da50c54b819e Mon Sep 17 00:00:00 2001 From: Erik Skultety Date: Thu, 7 Sep 2017 15:48:14 +0200 Subject: [PATCH] virsh: man: Document the --validate option for create and define cmds Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1368753 Signed-off-by: Erik Skultety Reviewed-by: Martin Kletzander --- tools/virsh.pod | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index c13f96f22e..01453be600 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -636,13 +636,15 @@ the I<--force> flag may be specified, requesting to disconnect any existing sessions, such as in a case of a broken connection. =item B I [I<--console>] [I<--paused>] [I<--autodestroy>] -[I<--pass-fds N,M,...>] +[I<--pass-fds N,M,...>] [I<--validate>] -Create a domain from an XML . An easy way to create the XML - is to use the B command to obtain the definition of a -pre-existing guest. The domain will be paused if the I<--paused> option -is used and supported by the driver; otherwise it will be running. -If I<--console> is requested, attach to the console after creation. +Create a domain from an XML . Optionally, I<--validate> option can be +passed to validate the format of the input XML file against an internal RNG +schema (identical to using L tool). An easy way to create +the XML is to use the B command to obtain the definition of a +pre-existing guest. The domain will be paused if the I<--paused> option is used +and supported by the driver; otherwise it will be running. If I<--console> is +requested, attach to the console after creation. If I<--autodestroy> is requested, then the guest will be automatically destroyed when virsh closes its connection to libvirt, or otherwise exits. @@ -658,10 +660,12 @@ B vi domain.xml (or make changes with your other text editor) virsh create domain.xml -=item B I +=item B I [I<--validate>] -Define a domain from an XML . The domain definition is registered -but not started. If domain is already running, the changes will take +Define a domain from an XML . Optionally, the format of the input XML +file can be validated against an internal RNG schema with I<--validate> +(identical to using L tool). The domain definition is +registered but not started. If domain is already running, the changes will take effect on the next boot. =item B I [[I<--live>] [I<--config>] |