Virsh vol-create-as: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:


* [[virsh#Commands|virsh]]
* [[virsh#Commands|virsh]]


=Overview=
=Overview=
Creates a [[Linux_Virtualization_Concepts#Storage_Volume|storage volume]].


<pre>
<pre>

Revision as of 19:11, 28 June 2017

External

Internal


Overview

Creates a storage volume.

virsh vol-create-as --pool <pool-name> --name <volume-name> --capacity <capacity> --format <fomat>

--capacity

Use the following suffixes: 'b', 'k', 'M', 'G', 'T'.

--format

Acceptable format types: "raw", "bochs", "qcow", "qcow2", "qed", "host_device", and "vmdk". These are, however, only meant for file based storage pools. By default the qcow version that is used is version 3.

Example

virsh vol-create-as --pool  main-storage-pool --name test-volume --capacity 1G