Virsh vol-create: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Linux_Virtualization_Operations#Virtualization_Host_Storage_Volume_Operations|Linux Virtualization Operations]] | |||
=Overview= | =Overview= | ||
Creates a volume from an XML definition (unlike <code>[[Virsh_vol-create-as|vol-create-as]]</code>, which creates volumes from a set of command line arguments). | |||
Volumes can be created from an XML definition file produced by a previous virsh vol-dumpxml command. | Volumes can be created from an XML definition file produced by a previous virsh vol-dumpxml command. |
Latest revision as of 00:17, 30 July 2023
Internal
Overview
Creates a volume from an XML definition (unlike vol-create-as
, which creates volumes from a set of command line arguments).
Volumes can be created from an XML definition file produced by a previous virsh vol-dumpxml command.
virsh vol-create <pool-name> ./volume-definition-file.xml
virsh vol-create main-storage-pool ./node3.qcow2.xml
Note that at the moment of creation, the qcow2 volumes are empty, while the raw volumes show as fully allocated.