vol-dumpxml
Displays the current libvirt-internal configuration of a storage volume.
Syntax
- <pool-name>
- Is the name of the storage pool.
- <pool-UUID>
- Is the UUID of the storage pool.
- <vol-key>
- Is the key of the volume.
- <vol-name>
- Is the name of the volume.
- <vol-path>
- Is the path of the volume.
Selected options
- --pool
- Specifies the storage pool.
Usage
Volume management commandsExample
# virsh vol-dumpxml --pool default federico.img
<volume type="file">
<name>federico.img</name>
<key>/var/lib/libvirt/images/federico.img</key>
<source>
</source>
<capacity unit="bytes">12582912000</capacity>
<allocation unit="bytes">2370707456</allocation>
<target>
<path>/var/lib/libvirt/images/federico.img</path>
<format type="qcow2"/>
<permissions>
<mode>0600</mode>
<owner>0</owner>
<group>0</group>
</permissions>
<timestamps>
<atime>1481535271.342162944</atime>
<mtime>1481292068.444109102</mtime>
<ctime>1481292068.916109091</ctime>
</timestamps>
</target>
</volume>