提交 11a47211 编写于 作者: E Erik Skultety

virsh: man: Document the --validate option for create and define cmds

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1368753Signed-off-by: NErik Skultety <eskultet@redhat.com>
Reviewed-by: NMartin Kletzander <mkletzan@redhat.com>
上级 bc92770a
...@@ -636,13 +636,15 @@ the I<--force> flag may be specified, requesting to disconnect any existing ...@@ -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. sessions, such as in a case of a broken connection.
=item B<create> I<FILE> [I<--console>] [I<--paused>] [I<--autodestroy>] =item B<create> I<FILE> [I<--console>] [I<--paused>] [I<--autodestroy>]
[I<--pass-fds N,M,...>] [I<--pass-fds N,M,...>] [I<--validate>]
Create a domain from an XML <file>. An easy way to create the XML Create a domain from an XML <file>. Optionally, I<--validate> option can be
<file> is to use the B<dumpxml> command to obtain the definition of a passed to validate the format of the input XML file against an internal RNG
pre-existing guest. The domain will be paused if the I<--paused> option schema (identical to using L<virt-xml-validate(1)> tool). An easy way to create
is used and supported by the driver; otherwise it will be running. the XML <file> is to use the B<dumpxml> command to obtain the definition of a
If I<--console> is requested, attach to the console after creation. 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 If I<--autodestroy> is requested, then the guest will be automatically
destroyed when virsh closes its connection to libvirt, or otherwise destroyed when virsh closes its connection to libvirt, or otherwise
exits. exits.
...@@ -658,10 +660,12 @@ B<Example> ...@@ -658,10 +660,12 @@ B<Example>
vi domain.xml (or make changes with your other text editor) vi domain.xml (or make changes with your other text editor)
virsh create domain.xml virsh create domain.xml
=item B<define> I<FILE> =item B<define> I<FILE> [I<--validate>]
Define a domain from an XML <file>. The domain definition is registered Define a domain from an XML <file>. Optionally, the format of the input XML
but not started. If domain is already running, the changes will take file can be validated against an internal RNG schema with I<--validate>
(identical to using L<virt-xml-validate(1)> tool). The domain definition is
registered but not started. If domain is already running, the changes will take
effect on the next boot. effect on the next boot.
=item B<desc> I<domain> [[I<--live>] [I<--config>] | =item B<desc> I<domain> [[I<--live>] [I<--config>] |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册