From 10cc08ee32c2b142370c0532b3c6582433417c09 Mon Sep 17 00:00:00 2001 From: Dave Allan Date: Mon, 6 Feb 2012 17:17:03 -0500 Subject: [PATCH] Clarify the purpose of domxml-from-native Someone mentioned to me that they interpreted this section of the KVM driver page as suggesting that new guests should be created by creating a qemu commandline and converting it to XML with domxml-from-native. I don't think that's the intent of domxml-from-native, so I added that clarification. --- docs/drvqemu.html.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/drvqemu.html.in b/docs/drvqemu.html.in index fa5496c877..fc76829e6d 100644 --- a/docs/drvqemu.html.in +++ b/docs/drvqemu.html.in @@ -432,9 +432,16 @@ mount -t cgroup none /dev/cgroup -o devices

Converting from QEMU args to domain XML

- The virsh domxml-from-native provides a way to convert an - existing set of QEMU args into a guest description using libvirt Domain XML - that can then be used by libvirt. + The virsh domxml-from-native provides a way to + convert an existing set of QEMU args into a guest description + using libvirt Domain XML that can then be used by libvirt. + Please note that this command is intended to be used to convert + existing qemu guests previously started from the command line to + be managed through libvirt. It should not be used a method of + creating new guests from scratch. New guests should be created + using an application calling the libvirt APIs (see + the libvirt applications page for some + examples) or by manually crafting XML to pass to virsh.

$ cat > demo.args <<EOF