Storage pool and volume configuration-XMLs
Configure storage pools with storage pool configuration-XML files, and configure storage pool volumes with volume configuration-XML files.
Storage pool
- Root element
- pool
- Selected child elements
- name, source, target
- Example
-
<pool type="dir"> <name>myPool</name> <target> <path>/var/lib/libvirt/images</path> </target> </pool>
Storage pool volume
- Root element
- volume
- Selected child elements
- name, key, allocation, capacity
- Example
-
<volume type="file"> <name>federico.img</name> <key>/var/lib/libvirt/images/federico.img</key> <target> <path>/var/lib/libvirt/images/federico.img</path> <format type="qcow2"/> </target> </volume>