libvirt.Volume
Explore with Pulumi AI
Manages a storage volume in libvirt. For more information see the official documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as libvirt from "@pulumi/libvirt";
// Base OS image to use to create a cluster of different
// nodes
const opensuseLeap = new libvirt.Volume("opensuse_leap", {
    name: "opensuse_leap",
    source: "http://download.opensuse.org/repositories/Cloud:/Images:/Leap_42.1/images/openSUSE-Leap-42.1-OpenStack.x86_64.qcow2",
});
// volume to attach to the "master" domain as main disk
const master = new libvirt.Volume("master", {
    name: "master.qcow2",
    baseVolumeId: opensuseLeap.id,
});
// volumes to attach to the "workers" domains as main disk
const worker: libvirt.Volume[] = [];
for (const range = {value: 0}; range.value < workersCount; range.value++) {
    worker.push(new libvirt.Volume(`worker-${range.value}`, {
        name: `worker_${range.value}.qcow2`,
        baseVolumeId: opensuseLeap.id,
    }));
}
import pulumi
import pulumi_libvirt as libvirt
# Base OS image to use to create a cluster of different
# nodes
opensuse_leap = libvirt.Volume("opensuse_leap",
    name="opensuse_leap",
    source="http://download.opensuse.org/repositories/Cloud:/Images:/Leap_42.1/images/openSUSE-Leap-42.1-OpenStack.x86_64.qcow2")
# volume to attach to the "master" domain as main disk
master = libvirt.Volume("master",
    name="master.qcow2",
    base_volume_id=opensuse_leap.id)
# volumes to attach to the "workers" domains as main disk
worker = []
for range in [{"value": i} for i in range(0, workers_count)]:
    worker.append(libvirt.Volume(f"worker-{range['value']}",
        name=f"worker_{range['value']}.qcow2",
        base_volume_id=opensuse_leap.id))
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-libvirt/sdk/go/libvirt"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Base OS image to use to create a cluster of different
		// nodes
		opensuseLeap, err := libvirt.NewVolume(ctx, "opensuse_leap", &libvirt.VolumeArgs{
			Name:   pulumi.String("opensuse_leap"),
			Source: pulumi.String("http://download.opensuse.org/repositories/Cloud:/Images:/Leap_42.1/images/openSUSE-Leap-42.1-OpenStack.x86_64.qcow2"),
		})
		if err != nil {
			return err
		}
		// volume to attach to the "master" domain as main disk
		_, err = libvirt.NewVolume(ctx, "master", &libvirt.VolumeArgs{
			Name:         pulumi.String("master.qcow2"),
			BaseVolumeId: opensuseLeap.ID(),
		})
		if err != nil {
			return err
		}
		// volumes to attach to the "workers" domains as main disk
		var worker []*libvirt.Volume
		for index := 0; index < workersCount; index++ {
			key0 := index
			val0 := index
			__res, err := libvirt.NewVolume(ctx, fmt.Sprintf("worker-%v", key0), &libvirt.VolumeArgs{
				Name:         pulumi.Sprintf("worker_%v.qcow2", val0),
				BaseVolumeId: opensuseLeap.ID(),
			})
			if err != nil {
				return err
			}
			worker = append(worker, __res)
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Libvirt = Pulumi.Libvirt;
return await Deployment.RunAsync(() => 
{
    // Base OS image to use to create a cluster of different
    // nodes
    var opensuseLeap = new Libvirt.Volume("opensuse_leap", new()
    {
        Name = "opensuse_leap",
        Source = "http://download.opensuse.org/repositories/Cloud:/Images:/Leap_42.1/images/openSUSE-Leap-42.1-OpenStack.x86_64.qcow2",
    });
    // volume to attach to the "master" domain as main disk
    var master = new Libvirt.Volume("master", new()
    {
        Name = "master.qcow2",
        BaseVolumeId = opensuseLeap.Id,
    });
    // volumes to attach to the "workers" domains as main disk
    var worker = new List<Libvirt.Volume>();
    for (var rangeIndex = 0; rangeIndex < workersCount; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        worker.Add(new Libvirt.Volume($"worker-{range.Value}", new()
        {
            Name = $"worker_{range.Value}.qcow2",
            BaseVolumeId = opensuseLeap.Id,
        }));
    }
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.libvirt.Volume;
import com.pulumi.libvirt.VolumeArgs;
import com.pulumi.codegen.internal.KeyedValue;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        // Base OS image to use to create a cluster of different
        // nodes
        var opensuseLeap = new Volume("opensuseLeap", VolumeArgs.builder()
            .name("opensuse_leap")
            .source("http://download.opensuse.org/repositories/Cloud:/Images:/Leap_42.1/images/openSUSE-Leap-42.1-OpenStack.x86_64.qcow2")
            .build());
        // volume to attach to the "master" domain as main disk
        var master = new Volume("master", VolumeArgs.builder()
            .name("master.qcow2")
            .baseVolumeId(opensuseLeap.id())
            .build());
        // volumes to attach to the "workers" domains as main disk
        for (var i = 0; i < workersCount; i++) {
            new Volume("worker-" + i, VolumeArgs.builder()
                .name(String.format("worker_%s.qcow2", range.value()))
                .baseVolumeId(opensuseLeap.id())
                .build());
        
}
    }
}
resources:
  # Base OS image to use to create a cluster of different
  # nodes
  opensuseLeap:
    type: libvirt:Volume
    name: opensuse_leap
    properties:
      name: opensuse_leap
      source: http://download.opensuse.org/repositories/Cloud:/Images:/Leap_42.1/images/openSUSE-Leap-42.1-OpenStack.x86_64.qcow2
  # volume to attach to the "master" domain as main disk
  master:
    type: libvirt:Volume
    properties:
      name: master.qcow2
      baseVolumeId: ${opensuseLeap.id}
  # volumes to attach to the "workers" domains as main disk
  worker:
    type: libvirt:Volume
    properties:
      name: worker_${range.value}.qcow2
      baseVolumeId: ${opensuseLeap.id}
    options: {}
Tip: when provisioning multiple domains using the same base image, create a
libvirt.Volumefor the base image and then define the domain specific ones as based on it. This way the image will not be modified and no extra disk space is going to be used for the base image.
Create Volume Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Volume(name: string, args?: VolumeArgs, opts?: CustomResourceOptions);@overload
def Volume(resource_name: str,
           args: Optional[VolumeArgs] = None,
           opts: Optional[ResourceOptions] = None)
@overload
def Volume(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           base_volume_id: Optional[str] = None,
           base_volume_name: Optional[str] = None,
           base_volume_pool: Optional[str] = None,
           format: Optional[str] = None,
           name: Optional[str] = None,
           pool: Optional[str] = None,
           size: Optional[int] = None,
           source: Optional[str] = None,
           xml: Optional[VolumeXmlArgs] = None)func NewVolume(ctx *Context, name string, args *VolumeArgs, opts ...ResourceOption) (*Volume, error)public Volume(string name, VolumeArgs? args = null, CustomResourceOptions? opts = null)
public Volume(String name, VolumeArgs args)
public Volume(String name, VolumeArgs args, CustomResourceOptions options)
type: libvirt:Volume
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
 - The unique name of the resource.
 - args VolumeArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- resource_name str
 - The unique name of the resource.
 - args VolumeArgs
 - The arguments to resource properties.
 - opts ResourceOptions
 - Bag of options to control resource's behavior.
 
- ctx Context
 - Context object for the current deployment.
 - name string
 - The unique name of the resource.
 - args VolumeArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args VolumeArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args VolumeArgs
 - The arguments to resource properties.
 - options CustomResourceOptions
 - Bag of options to control resource's behavior.
 
Constructor example
The following reference example uses placeholder values for all input properties.
var volumeResource = new Libvirt.Volume("volumeResource", new()
{
    BaseVolumeId = "string",
    BaseVolumeName = "string",
    BaseVolumePool = "string",
    Format = "string",
    Name = "string",
    Pool = "string",
    Size = 0,
    Source = "string",
    Xml = new Libvirt.Inputs.VolumeXmlArgs
    {
        Xslt = "string",
    },
});
example, err := libvirt.NewVolume(ctx, "volumeResource", &libvirt.VolumeArgs{
	BaseVolumeId:   pulumi.String("string"),
	BaseVolumeName: pulumi.String("string"),
	BaseVolumePool: pulumi.String("string"),
	Format:         pulumi.String("string"),
	Name:           pulumi.String("string"),
	Pool:           pulumi.String("string"),
	Size:           pulumi.Int(0),
	Source:         pulumi.String("string"),
	Xml: &libvirt.VolumeXmlArgs{
		Xslt: pulumi.String("string"),
	},
})
var volumeResource = new Volume("volumeResource", VolumeArgs.builder()
    .baseVolumeId("string")
    .baseVolumeName("string")
    .baseVolumePool("string")
    .format("string")
    .name("string")
    .pool("string")
    .size(0)
    .source("string")
    .xml(VolumeXmlArgs.builder()
        .xslt("string")
        .build())
    .build());
volume_resource = libvirt.Volume("volumeResource",
    base_volume_id="string",
    base_volume_name="string",
    base_volume_pool="string",
    format="string",
    name="string",
    pool="string",
    size=0,
    source="string",
    xml=libvirt.VolumeXmlArgs(
        xslt="string",
    ))
const volumeResource = new libvirt.Volume("volumeResource", {
    baseVolumeId: "string",
    baseVolumeName: "string",
    baseVolumePool: "string",
    format: "string",
    name: "string",
    pool: "string",
    size: 0,
    source: "string",
    xml: {
        xslt: "string",
    },
});
type: libvirt:Volume
properties:
    baseVolumeId: string
    baseVolumeName: string
    baseVolumePool: string
    format: string
    name: string
    pool: string
    size: 0
    source: string
    xml:
        xslt: string
Volume Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Volume resource accepts the following input properties:
- Base
Volume stringId  - The backing volume (CoW) to use for this volume.
 - Base
Volume stringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - Base
Volume stringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - Format string
 - Name string
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - Pool string
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - Size int
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - Source string
 - Xml
Volume
Xml  
- Base
Volume stringId  - The backing volume (CoW) to use for this volume.
 - Base
Volume stringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - Base
Volume stringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - Format string
 - Name string
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - Pool string
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - Size int
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - Source string
 - Xml
Volume
Xml Args  
- base
Volume StringId  - The backing volume (CoW) to use for this volume.
 - base
Volume StringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - base
Volume StringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - format String
 - name String
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - pool String
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - size Integer
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - source String
 - xml
Volume
Xml  
- base
Volume stringId  - The backing volume (CoW) to use for this volume.
 - base
Volume stringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - base
Volume stringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - format string
 - name string
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - pool string
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - size number
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - source string
 - xml
Volume
Xml  
- base_
volume_ strid  - The backing volume (CoW) to use for this volume.
 - base_
volume_ strname  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - base_
volume_ strpool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - format str
 - name str
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - pool str
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - size int
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - source str
 - xml
Volume
Xml Args  
- base
Volume StringId  - The backing volume (CoW) to use for this volume.
 - base
Volume StringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - base
Volume StringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - format String
 - name String
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - pool String
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - size Number
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - source String
 - xml Property Map
 
Outputs
All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
Look up Existing Volume Resource
Get an existing Volume resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VolumeState, opts?: CustomResourceOptions): Volume@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        base_volume_id: Optional[str] = None,
        base_volume_name: Optional[str] = None,
        base_volume_pool: Optional[str] = None,
        format: Optional[str] = None,
        name: Optional[str] = None,
        pool: Optional[str] = None,
        size: Optional[int] = None,
        source: Optional[str] = None,
        xml: Optional[VolumeXmlArgs] = None) -> Volumefunc GetVolume(ctx *Context, name string, id IDInput, state *VolumeState, opts ...ResourceOption) (*Volume, error)public static Volume Get(string name, Input<string> id, VolumeState? state, CustomResourceOptions? opts = null)public static Volume get(String name, Output<String> id, VolumeState state, CustomResourceOptions options)Resource lookup is not supported in YAML- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- resource_name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- Base
Volume stringId  - The backing volume (CoW) to use for this volume.
 - Base
Volume stringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - Base
Volume stringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - Format string
 - Name string
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - Pool string
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - Size int
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - Source string
 - Xml
Volume
Xml  
- Base
Volume stringId  - The backing volume (CoW) to use for this volume.
 - Base
Volume stringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - Base
Volume stringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - Format string
 - Name string
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - Pool string
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - Size int
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - Source string
 - Xml
Volume
Xml Args  
- base
Volume StringId  - The backing volume (CoW) to use for this volume.
 - base
Volume StringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - base
Volume StringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - format String
 - name String
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - pool String
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - size Integer
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - source String
 - xml
Volume
Xml  
- base
Volume stringId  - The backing volume (CoW) to use for this volume.
 - base
Volume stringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - base
Volume stringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - format string
 - name string
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - pool string
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - size number
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - source string
 - xml
Volume
Xml  
- base_
volume_ strid  - The backing volume (CoW) to use for this volume.
 - base_
volume_ strname  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - base_
volume_ strpool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - format str
 - name str
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - pool str
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - size int
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - source str
 - xml
Volume
Xml Args  
- base
Volume StringId  - The backing volume (CoW) to use for this volume.
 - base
Volume StringName  - The name of the backing volume (CoW) to use
for this volume. Note well: when 
base_volume_poolis not specified the volume is going to be searched inside ofpool. - base
Volume StringPool  - The name of the storage pool containing the
volume defined by 
base_volume_name. - format String
 - name String
 - A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
 - pool String
 - The storage pool where the resource will be created.
If not given, the 
defaultstorage pool will be used. - size Number
 - The size of the volume in bytes (if you don't like this,
help fix this issue.
If 
sourceis specified,sizewill be set to the source image file size.sizecan be omitted ifsourceis specified.sizewill then be set to the source image file size.sizecan be omitted ifbase_volume_idorbase_volume_nameis specified.sizewill then be set to the base volume size. Ifsizeis specified to be bigger thanbase_volume_idorbase_volume_namesize, you can use cloudinit if your OS supports it, withlibvirt.CloudInitDiskand the growpart module to resize the partition. - source String
 - xml Property Map
 
Supporting Types
VolumeXml, VolumeXmlArgs    
- Xslt string
 
- Xslt string
 
- xslt String
 
- xslt string
 
- xslt str
 
- xslt String
 
Package Details
- Repository
 - libvirt pulumi/pulumi-libvirt
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
libvirtTerraform Provider.