vol-dumpxml

Displays the current libvirt-internal configuration of a storage volume.

Syntax


1  vol-dumpxml
2.1 <vol-key
2.1 <vol-path>
2.1   --pool
2.2.1 <pool-name>
2.2.1 <pool-UUID>
2.1 <vol-name>
Where:
<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 commands

Example

# 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>