[libvirt] [PATCH 3/3] parallels: add domain configuration example

Dmitry Guryanov dguryanov at parallels.com
Mon Aug 13 15:50:14 UTC 2012


Signed-off-by: Dmitry Guryanov <dguryanov at parallels.com>
---
 docs/drvparallels.html.in                          |   39 ++++++++++++++++++++
 docs/schemas/domaincommon.rng                      |    1 +
 .../domain-parallels-vm-simple.xml                 |   26 +++++++++++++
 3 files changed, 66 insertions(+), 0 deletions(-)
 create mode 100644 tests/domainschemadata/domain-parallels-vm-simple.xml

diff --git a/docs/drvparallels.html.in b/docs/drvparallels.html.in
index 8e1430b..0a86451 100644
--- a/docs/drvparallels.html.in
+++ b/docs/drvparallels.html.in
@@ -25,4 +25,43 @@ parallels://example.com/system          (remote access, TLS/x509)
 parallels+tcp://example.com/system      (remote access, SASl/Kerberos)
 parallels+ssh://root@example.com/system (remote access, SSH tunnelled)
 </pre>
+
+    <h2><a name="example">Example guest domain XML configuration</a></h2>
+
+    <p>
+    Parallels driver require at least one hard disk for new domains
+    at this time. It is used for defining directory, where VM should
+    be created.
+    </p>
+
+<pre>
+<domain type='parallels'>
+  <name>demo</name>
+  <uuid>54cdecad-4492-4e31-a209-33cc21d64057</uuid>
+  <description>some description</description>
+  <memory unit='KiB'>1048576</memory>
+  <currentMemory unit='KiB'>1048576</currentMemory>
+  <vcpu placement='static'>2</vcpu>
+  <os>
+    <type arch='x86_64'>hvm</type>
+  </os>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>destroy</on_reboot>
+  <on_crash>destroy</on_crash>
+  <devices>
+    <disk type='file' device='disk'>
+      <source file='/storage/vol1'/>
+      <target dev='hda'/>
+    </disk>
+    <video>
+      <model type='vga' vram='33554432' heads='1'>
+        <acceleration accel3d='no' accel2d='no'/>
+      </model>
+    </video>
+  </devices>
+</domain>
+
+</pre>
+
 </body></html>
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index c85d763..1b94155 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -179,6 +179,7 @@
         <value>hyperv</value>
         <value>vbox</value>
         <value>phyp</value>
+        <value>parallels</value>
       </choice>
     </attribute>
   </define>
diff --git a/tests/domainschemadata/domain-parallels-vm-simple.xml b/tests/domainschemadata/domain-parallels-vm-simple.xml
new file mode 100644
index 0000000..4e21583
--- /dev/null
+++ b/tests/domainschemadata/domain-parallels-vm-simple.xml
@@ -0,0 +1,26 @@
+<domain type='parallels'>
+  <name>demo</name>
+  <uuid>54cdecad-4492-4e31-a209-33cc21d64057</uuid>
+  <description>some description</description>
+  <memory unit='KiB'>1048576</memory>
+  <currentMemory unit='KiB'>1048576</currentMemory>
+  <vcpu placement='static'>2</vcpu>
+  <os>
+    <type arch='x86_64'>hvm</type>
+  </os>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>destroy</on_reboot>
+  <on_crash>destroy</on_crash>
+  <devices>
+    <disk type='file' device='disk'>
+      <source file='/storage/vol1'/>
+      <target dev='hda'/>
+    </disk>
+    <video>
+      <model type='vga' vram='33554432' heads='1'>
+        <acceleration accel3d='no' accel2d='no'/>
+      </model>
+    </video>
+  </devices>
+</domain>
-- 
1.7.1




More information about the libvir-list mailing list