]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Added all example storage XML files
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Feb 2008 15:52:40 +0000 (15:52 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Feb 2008 15:52:40 +0000 (15:52 +0000)
docs/storage/pool-dir.xml [new file with mode: 0644]
docs/storage/pool-fs.xml [new file with mode: 0644]
docs/storage/pool-logical.xml [new file with mode: 0644]
docs/storage/pool-netfs.xml [new file with mode: 0644]
docs/storage/vol-cow.xml [new file with mode: 0644]
docs/storage/vol-qcow.xml [new file with mode: 0644]
docs/storage/vol-qcow2.xml [new file with mode: 0644]
docs/storage/vol-raw.xml [new file with mode: 0644]
docs/storage/vol-sparse.xml [new file with mode: 0644]
docs/storage/vol-vmdk.xml [new file with mode: 0644]

diff --git a/docs/storage/pool-dir.xml b/docs/storage/pool-dir.xml
new file mode 100644 (file)
index 0000000..47a3bfa
--- /dev/null
@@ -0,0 +1,6 @@
+<pool type="dir">
+  <name>virtimages</name>
+  <target>
+    <path>/var/lib/virt/images</path>
+  </target>
+</pool>
diff --git a/docs/storage/pool-fs.xml b/docs/storage/pool-fs.xml
new file mode 100644 (file)
index 0000000..b0417d9
--- /dev/null
@@ -0,0 +1,15 @@
+<pool type="fs">
+  <name>virtimages</name>
+  <source>
+    <device path="/dev/VolGroup00/VirtImages"/>
+  </source>
+  <target>
+    <path>/var/lib/virt/images</path>
+    <permissions>
+      <mode>0700</mode>
+      <owner>0</owner>
+      <group>0</group>
+      <label>system_u:object_r:xen_image_t:s0</label>
+    </permissions>
+  </target>
+</pool>
diff --git a/docs/storage/pool-logical.xml b/docs/storage/pool-logical.xml
new file mode 100644 (file)
index 0000000..c33e903
--- /dev/null
@@ -0,0 +1,9 @@
+<pool type="logical">
+  <name>HostVG</name>
+  <source>
+    <device path="/dev/sda1"/>
+  </source>
+  <target>
+    <path>/dev/HostVG</path>
+  </target>
+</pool>
diff --git a/docs/storage/pool-netfs.xml b/docs/storage/pool-netfs.xml
new file mode 100644 (file)
index 0000000..d1df2e2
--- /dev/null
@@ -0,0 +1,16 @@
+<pool type="netfs">
+  <name>virtimages</name>
+  <source>
+    <host name="nfs.example.com"/>
+    <directory path="/var/lib/virt/images"/>
+  </source>
+  <target>
+    <path>/var/lib/virt/images</path>
+    <permissions>
+      <mode>0700</mode>
+      <owner>0</owner>
+      <group>0</group>
+      <label>system_u:object_r:xen_image_t:s0</label>
+    </permissions>
+  </target>
+</pool>
diff --git a/docs/storage/vol-cow.xml b/docs/storage/vol-cow.xml
new file mode 100644 (file)
index 0000000..1d80a01
--- /dev/null
@@ -0,0 +1,10 @@
+<volume type="file">
+  <name>cow.img</name>
+  <storage>
+    <allocation>0</allocation>
+    <capacity unit="T">1</capacity>
+  </storage>
+  <target>
+    <format type="cow"/>
+  </target>
+</volume>
diff --git a/docs/storage/vol-qcow.xml b/docs/storage/vol-qcow.xml
new file mode 100644 (file)
index 0000000..af2011d
--- /dev/null
@@ -0,0 +1,10 @@
+<volume type="file">
+  <name>qcow.img</name>
+  <storage>
+    <allocation>0</allocation>
+    <capacity unit="T">1</capacity>
+  </storage>
+  <target>
+    <format type="qcow"/>
+  </target>
+</volume>
diff --git a/docs/storage/vol-qcow2.xml b/docs/storage/vol-qcow2.xml
new file mode 100644 (file)
index 0000000..9d944a7
--- /dev/null
@@ -0,0 +1,10 @@
+<volume type="file">
+  <name>qcow2.img</name>
+  <storage>
+    <allocation>0</allocation>
+    <capacity unit="T">1</capacity>
+  </storage>
+  <target>
+    <format type="qcow2"/>
+  </target>
+</volume>
diff --git a/docs/storage/vol-raw.xml b/docs/storage/vol-raw.xml
new file mode 100644 (file)
index 0000000..59d4b45
--- /dev/null
@@ -0,0 +1,7 @@
+<volume type="file">
+  <name>raw.img</name>
+  <storage>
+    <allocation unit="M">10</allocation>
+    <capacity unit="M">1000</capacity>
+  </storage>
+</volume>
diff --git a/docs/storage/vol-sparse.xml b/docs/storage/vol-sparse.xml
new file mode 100644 (file)
index 0000000..c529a49
--- /dev/null
@@ -0,0 +1,7 @@
+<volume type="file">
+  <name>sparse.img</name>
+  <storage>
+    <allocation>0</allocation>
+    <capacity unit="T">1</capacity>
+  </storage>
+</volume>
diff --git a/docs/storage/vol-vmdk.xml b/docs/storage/vol-vmdk.xml
new file mode 100644 (file)
index 0000000..5af0a84
--- /dev/null
@@ -0,0 +1,10 @@
+<volume type="file">
+  <name>vmdk3.img</name>
+  <storage>
+    <allocation>0</allocation>
+    <capacity unit="T">1</capacity>
+  </storage>
+  <target>
+    <format type="vmdk"/>
+  </target>
+</volume>