Virsh vol-create-as

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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