Virsh vol-create-as: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


* [[virsh#Commands|virsh]]
* [[virsh#Commands|virsh]]
* [[Linux_Virtualization_Operations#Storage_Volume_Configuration|Virtualization Operations - Storage Volume Creation]]


=Overview=
=Overview=

Revision as of 19:13, 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