1. Packages
  2. Libvirt Provider
  3. API Docs
  4. Domain
libvirt 0.9.0 published on Saturday, Nov 8, 2025 by dmacvicar
libvirt logo
libvirt 0.9.0 published on Saturday, Nov 8, 2025 by dmacvicar

    Manages a libvirt domain (virtual machine).

    This resource follows the libvirt domain XML schema closely, providing fine-grained control over VM configuration.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      # Basic VM configuration
      example:
        type: libvirt:Domain
        properties:
          name: example-vm
          memory: 2048
          unit: MiB
          vcpu: 2
          type: kvm
          os:
            type: hvm
            arch: x86_64
            machine: q35
            bootDevices:
              - hd
              - network
          devices:
            disks:
              - source: /var/lib/libvirt/images/example.qcow2
                target: vda
                bus: virtio
            interfaces:
              - type: network
                model: virtio
                source:
                  network: default
      # VM with UEFI firmware
      uefiExample:
        type: libvirt:Domain
        name: uefi_example
        properties:
          name: uefi-vm
          memory: 4096
          unit: MiB
          vcpu: 4
          type: kvm
          os:
            type: hvm
            arch: x86_64
            machine: q35
            firmware: efi
            loaderPath: /usr/share/edk2/x64/OVMF_CODE.secboot.4m.fd
            loaderReadonly: true
            loaderType: pflash
            nvram:
              path: /var/lib/libvirt/qemu/nvram/uefi-vm.fd
              template: /usr/share/edk2/x64/OVMF_VARS.4m.fd
            bootDevices:
              - hd
      # VM with direct kernel boot
      kernelBoot:
        type: libvirt:Domain
        name: kernel_boot
        properties:
          name: kernel-boot-vm
          memory: 1024
          unit: MiB
          vcpu: 1
          type: kvm
          os:
            type: hvm
            arch: x86_64
            kernel: /boot/vmlinuz
            initrd: /boot/initrd.img
            kernelArgs: console=ttyS0 root=/dev/vda1
    

    Create Domain Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
    @overload
    def Domain(resource_name: str,
               args: DomainArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Domain(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               memory: Optional[float] = None,
               vcpu: Optional[float] = None,
               max_memory_slots: Optional[float] = None,
               unit: Optional[str] = None,
               cpu: Optional[DomainCpuArgs] = None,
               create: Optional[DomainCreateArgs] = None,
               current_memory: Optional[float] = None,
               description: Optional[str] = None,
               destroy: Optional[DomainDestroyArgs] = None,
               devices: Optional[DomainDevicesArgs] = None,
               features: Optional[DomainFeaturesArgs] = None,
               hwuuid: Optional[str] = None,
               iothreads: Optional[float] = None,
               metadata: Optional[str] = None,
               clock: Optional[DomainClockArgs] = None,
               autostart: Optional[bool] = None,
               max_memory: Optional[float] = None,
               name: Optional[str] = None,
               on_crash: Optional[str] = None,
               on_poweroff: Optional[str] = None,
               on_reboot: Optional[str] = None,
               os: Optional[DomainOsArgs] = None,
               pm: Optional[DomainPmArgs] = None,
               running: Optional[bool] = None,
               title: Optional[str] = None,
               type: Optional[str] = None,
               bootloader_args: Optional[str] = None,
               uuid: Optional[str] = None,
               bootloader: Optional[str] = None)
    func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
    public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
    public Domain(String name, DomainArgs args)
    public Domain(String name, DomainArgs args, CustomResourceOptions options)
    
    type: libvirt:Domain
    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 DomainArgs
    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 DomainArgs
    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 DomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DomainArgs
    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 domainResource = new Libvirt.Domain("domainResource", new()
    {
        Memory = 0,
        Vcpu = 0,
        MaxMemorySlots = 0,
        Unit = "string",
        Cpu = new Libvirt.Inputs.DomainCpuArgs
        {
            Check = "string",
            DeprecatedFeatures = "string",
            Match = "string",
            Migratable = "string",
            Mode = "string",
            Model = "string",
            Vendor = "string",
        },
        Create = new Libvirt.Inputs.DomainCreateArgs
        {
            Autodestroy = false,
            BypassCache = false,
            ForceBoot = false,
            Paused = false,
            ResetNvram = false,
            Validate = false,
        },
        CurrentMemory = 0,
        Description = "string",
        Destroy = new Libvirt.Inputs.DomainDestroyArgs
        {
            Graceful = false,
            Timeout = 0,
        },
        Devices = new Libvirt.Inputs.DomainDevicesArgs
        {
            Consoles = new[]
            {
                new Libvirt.Inputs.DomainDevicesConsoleArgs
                {
                    SourcePath = "string",
                    TargetPort = 0,
                    TargetType = "string",
                    Type = "string",
                },
            },
            Disks = new[]
            {
                new Libvirt.Inputs.DomainDevicesDiskArgs
                {
                    Target = new Libvirt.Inputs.DomainDevicesDiskTargetArgs
                    {
                        Dev = "string",
                        Bus = "string",
                    },
                    Device = "string",
                    Source = new Libvirt.Inputs.DomainDevicesDiskSourceArgs
                    {
                        Block = "string",
                        File = "string",
                        Pool = "string",
                        Volume = "string",
                    },
                    Wwn = "string",
                },
            },
            Emulator = "string",
            Filesystems = new[]
            {
                new Libvirt.Inputs.DomainDevicesFilesystemArgs
                {
                    Source = "string",
                    Target = "string",
                    Accessmode = "string",
                    Readonly = false,
                },
            },
            Graphics = new Libvirt.Inputs.DomainDevicesGraphicsArgs
            {
                Spice = new Libvirt.Inputs.DomainDevicesGraphicsSpiceArgs
                {
                    Autoport = "string",
                    Listen = "string",
                    Port = 0,
                    Tlsport = 0,
                },
                Vnc = new Libvirt.Inputs.DomainDevicesGraphicsVncArgs
                {
                    Autoport = "string",
                    Listen = "string",
                    Port = 0,
                    Socket = "string",
                    Websocket = 0,
                },
            },
            Interfaces = new[]
            {
                new Libvirt.Inputs.DomainDevicesInterfaceArgs
                {
                    Type = "string",
                    Mac = "string",
                    Model = "string",
                    Source = new Libvirt.Inputs.DomainDevicesInterfaceSourceArgs
                    {
                        Bridge = "string",
                        Dev = "string",
                        Mode = "string",
                        Network = "string",
                        Portgroup = "string",
                    },
                    WaitForIp = new Libvirt.Inputs.DomainDevicesInterfaceWaitForIpArgs
                    {
                        Source = "string",
                        Timeout = 0,
                    },
                },
            },
            Rngs = new[]
            {
                new Libvirt.Inputs.DomainDevicesRngArgs
                {
                    Device = "string",
                    Model = "string",
                },
            },
            Serials = new[]
            {
                new Libvirt.Inputs.DomainDevicesSerialArgs
                {
                    SourcePath = "string",
                    TargetPort = 0,
                    TargetType = "string",
                    Type = "string",
                },
            },
            Tpms = new[]
            {
                new Libvirt.Inputs.DomainDevicesTpmArgs
                {
                    BackendDevicePath = "string",
                    BackendEncryptionSecret = "string",
                    BackendPersistentState = false,
                    BackendType = "string",
                    BackendVersion = "string",
                    Model = "string",
                },
            },
            Video = new Libvirt.Inputs.DomainDevicesVideoArgs
            {
                Type = "string",
            },
        },
        Features = new Libvirt.Inputs.DomainFeaturesArgs
        {
            Acpi = false,
            Apic = false,
            CcfAssist = "string",
            GicVersion = "string",
            Hap = "string",
            Htm = "string",
            IoapicDriver = "string",
            NestedHv = "string",
            Pae = false,
            Pmu = "string",
            Privnet = false,
            Ps2 = "string",
            Pvspinlock = "string",
            Ras = "string",
            Viridian = false,
            Vmcoreinfo = "string",
            Vmport = "string",
        },
        Hwuuid = "string",
        Iothreads = 0,
        Metadata = "string",
        Clock = new Libvirt.Inputs.DomainClockArgs
        {
            Adjustment = "string",
            Basis = "string",
            Offset = "string",
            Timers = new[]
            {
                new Libvirt.Inputs.DomainClockTimerArgs
                {
                    Name = "string",
                    Catchup = new Libvirt.Inputs.DomainClockTimerCatchupArgs
                    {
                        Limit = 0,
                        Slew = 0,
                        Threshold = 0,
                    },
                    Frequency = 0,
                    Mode = "string",
                    Present = "string",
                    Tickpolicy = "string",
                    Track = "string",
                },
            },
            Timezone = "string",
        },
        Autostart = false,
        MaxMemory = 0,
        Name = "string",
        OnCrash = "string",
        OnPoweroff = "string",
        OnReboot = "string",
        Os = new Libvirt.Inputs.DomainOsArgs
        {
            Type = "string",
            Arch = "string",
            BootDevices = new[]
            {
                "string",
            },
            Firmware = "string",
            Initrd = "string",
            Kernel = "string",
            KernelArgs = "string",
            LoaderPath = "string",
            LoaderReadonly = false,
            LoaderType = "string",
            Machine = "string",
            Nvram = new Libvirt.Inputs.DomainOsNvramArgs
            {
                Format = "string",
                Path = "string",
                Source = new Libvirt.Inputs.DomainOsNvramSourceArgs
                {
                    Block = "string",
                    File = "string",
                    Pool = "string",
                    Volume = "string",
                },
                Template = "string",
                TemplateFormat = "string",
            },
        },
        Pm = new Libvirt.Inputs.DomainPmArgs
        {
            SuspendToDisk = "string",
            SuspendToMem = "string",
        },
        Running = false,
        Title = "string",
        Type = "string",
        BootloaderArgs = "string",
        Uuid = "string",
        Bootloader = "string",
    });
    
    example, err := libvirt.NewDomain(ctx, "domainResource", &libvirt.DomainArgs{
    	Memory:         pulumi.Float64(0),
    	Vcpu:           pulumi.Float64(0),
    	MaxMemorySlots: pulumi.Float64(0),
    	Unit:           pulumi.String("string"),
    	Cpu: &libvirt.DomainCpuArgs{
    		Check:              pulumi.String("string"),
    		DeprecatedFeatures: pulumi.String("string"),
    		Match:              pulumi.String("string"),
    		Migratable:         pulumi.String("string"),
    		Mode:               pulumi.String("string"),
    		Model:              pulumi.String("string"),
    		Vendor:             pulumi.String("string"),
    	},
    	Create: &libvirt.DomainCreateArgs{
    		Autodestroy: pulumi.Bool(false),
    		BypassCache: pulumi.Bool(false),
    		ForceBoot:   pulumi.Bool(false),
    		Paused:      pulumi.Bool(false),
    		ResetNvram:  pulumi.Bool(false),
    		Validate:    pulumi.Bool(false),
    	},
    	CurrentMemory: pulumi.Float64(0),
    	Description:   pulumi.String("string"),
    	Destroy: &libvirt.DomainDestroyArgs{
    		Graceful: pulumi.Bool(false),
    		Timeout:  pulumi.Float64(0),
    	},
    	Devices: &libvirt.DomainDevicesArgs{
    		Consoles: libvirt.DomainDevicesConsoleArray{
    			&libvirt.DomainDevicesConsoleArgs{
    				SourcePath: pulumi.String("string"),
    				TargetPort: pulumi.Float64(0),
    				TargetType: pulumi.String("string"),
    				Type:       pulumi.String("string"),
    			},
    		},
    		Disks: libvirt.DomainDevicesDiskArray{
    			&libvirt.DomainDevicesDiskArgs{
    				Target: &libvirt.DomainDevicesDiskTargetArgs{
    					Dev: pulumi.String("string"),
    					Bus: pulumi.String("string"),
    				},
    				Device: pulumi.String("string"),
    				Source: &libvirt.DomainDevicesDiskSourceArgs{
    					Block:  pulumi.String("string"),
    					File:   pulumi.String("string"),
    					Pool:   pulumi.String("string"),
    					Volume: pulumi.String("string"),
    				},
    				Wwn: pulumi.String("string"),
    			},
    		},
    		Emulator: pulumi.String("string"),
    		Filesystems: libvirt.DomainDevicesFilesystemArray{
    			&libvirt.DomainDevicesFilesystemArgs{
    				Source:     pulumi.String("string"),
    				Target:     pulumi.String("string"),
    				Accessmode: pulumi.String("string"),
    				Readonly:   pulumi.Bool(false),
    			},
    		},
    		Graphics: &libvirt.DomainDevicesGraphicsArgs{
    			Spice: &libvirt.DomainDevicesGraphicsSpiceArgs{
    				Autoport: pulumi.String("string"),
    				Listen:   pulumi.String("string"),
    				Port:     pulumi.Float64(0),
    				Tlsport:  pulumi.Float64(0),
    			},
    			Vnc: &libvirt.DomainDevicesGraphicsVncArgs{
    				Autoport:  pulumi.String("string"),
    				Listen:    pulumi.String("string"),
    				Port:      pulumi.Float64(0),
    				Socket:    pulumi.String("string"),
    				Websocket: pulumi.Float64(0),
    			},
    		},
    		Interfaces: libvirt.DomainDevicesInterfaceArray{
    			&libvirt.DomainDevicesInterfaceArgs{
    				Type:  pulumi.String("string"),
    				Mac:   pulumi.String("string"),
    				Model: pulumi.String("string"),
    				Source: &libvirt.DomainDevicesInterfaceSourceArgs{
    					Bridge:    pulumi.String("string"),
    					Dev:       pulumi.String("string"),
    					Mode:      pulumi.String("string"),
    					Network:   pulumi.String("string"),
    					Portgroup: pulumi.String("string"),
    				},
    				WaitForIp: &libvirt.DomainDevicesInterfaceWaitForIpArgs{
    					Source:  pulumi.String("string"),
    					Timeout: pulumi.Float64(0),
    				},
    			},
    		},
    		Rngs: libvirt.DomainDevicesRngArray{
    			&libvirt.DomainDevicesRngArgs{
    				Device: pulumi.String("string"),
    				Model:  pulumi.String("string"),
    			},
    		},
    		Serials: libvirt.DomainDevicesSerialArray{
    			&libvirt.DomainDevicesSerialArgs{
    				SourcePath: pulumi.String("string"),
    				TargetPort: pulumi.Float64(0),
    				TargetType: pulumi.String("string"),
    				Type:       pulumi.String("string"),
    			},
    		},
    		Tpms: libvirt.DomainDevicesTpmArray{
    			&libvirt.DomainDevicesTpmArgs{
    				BackendDevicePath:       pulumi.String("string"),
    				BackendEncryptionSecret: pulumi.String("string"),
    				BackendPersistentState:  pulumi.Bool(false),
    				BackendType:             pulumi.String("string"),
    				BackendVersion:          pulumi.String("string"),
    				Model:                   pulumi.String("string"),
    			},
    		},
    		Video: &libvirt.DomainDevicesVideoArgs{
    			Type: pulumi.String("string"),
    		},
    	},
    	Features: &libvirt.DomainFeaturesArgs{
    		Acpi:         pulumi.Bool(false),
    		Apic:         pulumi.Bool(false),
    		CcfAssist:    pulumi.String("string"),
    		GicVersion:   pulumi.String("string"),
    		Hap:          pulumi.String("string"),
    		Htm:          pulumi.String("string"),
    		IoapicDriver: pulumi.String("string"),
    		NestedHv:     pulumi.String("string"),
    		Pae:          pulumi.Bool(false),
    		Pmu:          pulumi.String("string"),
    		Privnet:      pulumi.Bool(false),
    		Ps2:          pulumi.String("string"),
    		Pvspinlock:   pulumi.String("string"),
    		Ras:          pulumi.String("string"),
    		Viridian:     pulumi.Bool(false),
    		Vmcoreinfo:   pulumi.String("string"),
    		Vmport:       pulumi.String("string"),
    	},
    	Hwuuid:    pulumi.String("string"),
    	Iothreads: pulumi.Float64(0),
    	Metadata:  pulumi.String("string"),
    	Clock: &libvirt.DomainClockArgs{
    		Adjustment: pulumi.String("string"),
    		Basis:      pulumi.String("string"),
    		Offset:     pulumi.String("string"),
    		Timers: libvirt.DomainClockTimerArray{
    			&libvirt.DomainClockTimerArgs{
    				Name: pulumi.String("string"),
    				Catchup: &libvirt.DomainClockTimerCatchupArgs{
    					Limit:     pulumi.Float64(0),
    					Slew:      pulumi.Float64(0),
    					Threshold: pulumi.Float64(0),
    				},
    				Frequency:  pulumi.Float64(0),
    				Mode:       pulumi.String("string"),
    				Present:    pulumi.String("string"),
    				Tickpolicy: pulumi.String("string"),
    				Track:      pulumi.String("string"),
    			},
    		},
    		Timezone: pulumi.String("string"),
    	},
    	Autostart:  pulumi.Bool(false),
    	MaxMemory:  pulumi.Float64(0),
    	Name:       pulumi.String("string"),
    	OnCrash:    pulumi.String("string"),
    	OnPoweroff: pulumi.String("string"),
    	OnReboot:   pulumi.String("string"),
    	Os: &libvirt.DomainOsArgs{
    		Type: pulumi.String("string"),
    		Arch: pulumi.String("string"),
    		BootDevices: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Firmware:       pulumi.String("string"),
    		Initrd:         pulumi.String("string"),
    		Kernel:         pulumi.String("string"),
    		KernelArgs:     pulumi.String("string"),
    		LoaderPath:     pulumi.String("string"),
    		LoaderReadonly: pulumi.Bool(false),
    		LoaderType:     pulumi.String("string"),
    		Machine:        pulumi.String("string"),
    		Nvram: &libvirt.DomainOsNvramArgs{
    			Format: pulumi.String("string"),
    			Path:   pulumi.String("string"),
    			Source: &libvirt.DomainOsNvramSourceArgs{
    				Block:  pulumi.String("string"),
    				File:   pulumi.String("string"),
    				Pool:   pulumi.String("string"),
    				Volume: pulumi.String("string"),
    			},
    			Template:       pulumi.String("string"),
    			TemplateFormat: pulumi.String("string"),
    		},
    	},
    	Pm: &libvirt.DomainPmArgs{
    		SuspendToDisk: pulumi.String("string"),
    		SuspendToMem:  pulumi.String("string"),
    	},
    	Running:        pulumi.Bool(false),
    	Title:          pulumi.String("string"),
    	Type:           pulumi.String("string"),
    	BootloaderArgs: pulumi.String("string"),
    	Uuid:           pulumi.String("string"),
    	Bootloader:     pulumi.String("string"),
    })
    
    var domainResource = new Domain("domainResource", DomainArgs.builder()
        .memory(0.0)
        .vcpu(0.0)
        .maxMemorySlots(0.0)
        .unit("string")
        .cpu(DomainCpuArgs.builder()
            .check("string")
            .deprecatedFeatures("string")
            .match("string")
            .migratable("string")
            .mode("string")
            .model("string")
            .vendor("string")
            .build())
        .create(DomainCreateArgs.builder()
            .autodestroy(false)
            .bypassCache(false)
            .forceBoot(false)
            .paused(false)
            .resetNvram(false)
            .validate(false)
            .build())
        .currentMemory(0.0)
        .description("string")
        .destroy(DomainDestroyArgs.builder()
            .graceful(false)
            .timeout(0.0)
            .build())
        .devices(DomainDevicesArgs.builder()
            .consoles(DomainDevicesConsoleArgs.builder()
                .sourcePath("string")
                .targetPort(0.0)
                .targetType("string")
                .type("string")
                .build())
            .disks(DomainDevicesDiskArgs.builder()
                .target(DomainDevicesDiskTargetArgs.builder()
                    .dev("string")
                    .bus("string")
                    .build())
                .device("string")
                .source(DomainDevicesDiskSourceArgs.builder()
                    .block("string")
                    .file("string")
                    .pool("string")
                    .volume("string")
                    .build())
                .wwn("string")
                .build())
            .emulator("string")
            .filesystems(DomainDevicesFilesystemArgs.builder()
                .source("string")
                .target("string")
                .accessmode("string")
                .readonly(false)
                .build())
            .graphics(DomainDevicesGraphicsArgs.builder()
                .spice(DomainDevicesGraphicsSpiceArgs.builder()
                    .autoport("string")
                    .listen("string")
                    .port(0.0)
                    .tlsport(0.0)
                    .build())
                .vnc(DomainDevicesGraphicsVncArgs.builder()
                    .autoport("string")
                    .listen("string")
                    .port(0.0)
                    .socket("string")
                    .websocket(0.0)
                    .build())
                .build())
            .interfaces(DomainDevicesInterfaceArgs.builder()
                .type("string")
                .mac("string")
                .model("string")
                .source(DomainDevicesInterfaceSourceArgs.builder()
                    .bridge("string")
                    .dev("string")
                    .mode("string")
                    .network("string")
                    .portgroup("string")
                    .build())
                .waitForIp(DomainDevicesInterfaceWaitForIpArgs.builder()
                    .source("string")
                    .timeout(0.0)
                    .build())
                .build())
            .rngs(DomainDevicesRngArgs.builder()
                .device("string")
                .model("string")
                .build())
            .serials(DomainDevicesSerialArgs.builder()
                .sourcePath("string")
                .targetPort(0.0)
                .targetType("string")
                .type("string")
                .build())
            .tpms(DomainDevicesTpmArgs.builder()
                .backendDevicePath("string")
                .backendEncryptionSecret("string")
                .backendPersistentState(false)
                .backendType("string")
                .backendVersion("string")
                .model("string")
                .build())
            .video(DomainDevicesVideoArgs.builder()
                .type("string")
                .build())
            .build())
        .features(DomainFeaturesArgs.builder()
            .acpi(false)
            .apic(false)
            .ccfAssist("string")
            .gicVersion("string")
            .hap("string")
            .htm("string")
            .ioapicDriver("string")
            .nestedHv("string")
            .pae(false)
            .pmu("string")
            .privnet(false)
            .ps2("string")
            .pvspinlock("string")
            .ras("string")
            .viridian(false)
            .vmcoreinfo("string")
            .vmport("string")
            .build())
        .hwuuid("string")
        .iothreads(0.0)
        .metadata("string")
        .clock(DomainClockArgs.builder()
            .adjustment("string")
            .basis("string")
            .offset("string")
            .timers(DomainClockTimerArgs.builder()
                .name("string")
                .catchup(DomainClockTimerCatchupArgs.builder()
                    .limit(0.0)
                    .slew(0.0)
                    .threshold(0.0)
                    .build())
                .frequency(0.0)
                .mode("string")
                .present("string")
                .tickpolicy("string")
                .track("string")
                .build())
            .timezone("string")
            .build())
        .autostart(false)
        .maxMemory(0.0)
        .name("string")
        .onCrash("string")
        .onPoweroff("string")
        .onReboot("string")
        .os(DomainOsArgs.builder()
            .type("string")
            .arch("string")
            .bootDevices("string")
            .firmware("string")
            .initrd("string")
            .kernel("string")
            .kernelArgs("string")
            .loaderPath("string")
            .loaderReadonly(false)
            .loaderType("string")
            .machine("string")
            .nvram(DomainOsNvramArgs.builder()
                .format("string")
                .path("string")
                .source(DomainOsNvramSourceArgs.builder()
                    .block("string")
                    .file("string")
                    .pool("string")
                    .volume("string")
                    .build())
                .template("string")
                .templateFormat("string")
                .build())
            .build())
        .pm(DomainPmArgs.builder()
            .suspendToDisk("string")
            .suspendToMem("string")
            .build())
        .running(false)
        .title("string")
        .type("string")
        .bootloaderArgs("string")
        .uuid("string")
        .bootloader("string")
        .build());
    
    domain_resource = libvirt.Domain("domainResource",
        memory=0,
        vcpu=0,
        max_memory_slots=0,
        unit="string",
        cpu={
            "check": "string",
            "deprecated_features": "string",
            "match": "string",
            "migratable": "string",
            "mode": "string",
            "model": "string",
            "vendor": "string",
        },
        create={
            "autodestroy": False,
            "bypass_cache": False,
            "force_boot": False,
            "paused": False,
            "reset_nvram": False,
            "validate": False,
        },
        current_memory=0,
        description="string",
        destroy={
            "graceful": False,
            "timeout": 0,
        },
        devices={
            "consoles": [{
                "source_path": "string",
                "target_port": 0,
                "target_type": "string",
                "type": "string",
            }],
            "disks": [{
                "target": {
                    "dev": "string",
                    "bus": "string",
                },
                "device": "string",
                "source": {
                    "block": "string",
                    "file": "string",
                    "pool": "string",
                    "volume": "string",
                },
                "wwn": "string",
            }],
            "emulator": "string",
            "filesystems": [{
                "source": "string",
                "target": "string",
                "accessmode": "string",
                "readonly": False,
            }],
            "graphics": {
                "spice": {
                    "autoport": "string",
                    "listen": "string",
                    "port": 0,
                    "tlsport": 0,
                },
                "vnc": {
                    "autoport": "string",
                    "listen": "string",
                    "port": 0,
                    "socket": "string",
                    "websocket": 0,
                },
            },
            "interfaces": [{
                "type": "string",
                "mac": "string",
                "model": "string",
                "source": {
                    "bridge": "string",
                    "dev": "string",
                    "mode": "string",
                    "network": "string",
                    "portgroup": "string",
                },
                "wait_for_ip": {
                    "source": "string",
                    "timeout": 0,
                },
            }],
            "rngs": [{
                "device": "string",
                "model": "string",
            }],
            "serials": [{
                "source_path": "string",
                "target_port": 0,
                "target_type": "string",
                "type": "string",
            }],
            "tpms": [{
                "backend_device_path": "string",
                "backend_encryption_secret": "string",
                "backend_persistent_state": False,
                "backend_type": "string",
                "backend_version": "string",
                "model": "string",
            }],
            "video": {
                "type": "string",
            },
        },
        features={
            "acpi": False,
            "apic": False,
            "ccf_assist": "string",
            "gic_version": "string",
            "hap": "string",
            "htm": "string",
            "ioapic_driver": "string",
            "nested_hv": "string",
            "pae": False,
            "pmu": "string",
            "privnet": False,
            "ps2": "string",
            "pvspinlock": "string",
            "ras": "string",
            "viridian": False,
            "vmcoreinfo": "string",
            "vmport": "string",
        },
        hwuuid="string",
        iothreads=0,
        metadata="string",
        clock={
            "adjustment": "string",
            "basis": "string",
            "offset": "string",
            "timers": [{
                "name": "string",
                "catchup": {
                    "limit": 0,
                    "slew": 0,
                    "threshold": 0,
                },
                "frequency": 0,
                "mode": "string",
                "present": "string",
                "tickpolicy": "string",
                "track": "string",
            }],
            "timezone": "string",
        },
        autostart=False,
        max_memory=0,
        name="string",
        on_crash="string",
        on_poweroff="string",
        on_reboot="string",
        os={
            "type": "string",
            "arch": "string",
            "boot_devices": ["string"],
            "firmware": "string",
            "initrd": "string",
            "kernel": "string",
            "kernel_args": "string",
            "loader_path": "string",
            "loader_readonly": False,
            "loader_type": "string",
            "machine": "string",
            "nvram": {
                "format": "string",
                "path": "string",
                "source": {
                    "block": "string",
                    "file": "string",
                    "pool": "string",
                    "volume": "string",
                },
                "template": "string",
                "template_format": "string",
            },
        },
        pm={
            "suspend_to_disk": "string",
            "suspend_to_mem": "string",
        },
        running=False,
        title="string",
        type="string",
        bootloader_args="string",
        uuid="string",
        bootloader="string")
    
    const domainResource = new libvirt.Domain("domainResource", {
        memory: 0,
        vcpu: 0,
        maxMemorySlots: 0,
        unit: "string",
        cpu: {
            check: "string",
            deprecatedFeatures: "string",
            match: "string",
            migratable: "string",
            mode: "string",
            model: "string",
            vendor: "string",
        },
        create: {
            autodestroy: false,
            bypassCache: false,
            forceBoot: false,
            paused: false,
            resetNvram: false,
            validate: false,
        },
        currentMemory: 0,
        description: "string",
        destroy: {
            graceful: false,
            timeout: 0,
        },
        devices: {
            consoles: [{
                sourcePath: "string",
                targetPort: 0,
                targetType: "string",
                type: "string",
            }],
            disks: [{
                target: {
                    dev: "string",
                    bus: "string",
                },
                device: "string",
                source: {
                    block: "string",
                    file: "string",
                    pool: "string",
                    volume: "string",
                },
                wwn: "string",
            }],
            emulator: "string",
            filesystems: [{
                source: "string",
                target: "string",
                accessmode: "string",
                readonly: false,
            }],
            graphics: {
                spice: {
                    autoport: "string",
                    listen: "string",
                    port: 0,
                    tlsport: 0,
                },
                vnc: {
                    autoport: "string",
                    listen: "string",
                    port: 0,
                    socket: "string",
                    websocket: 0,
                },
            },
            interfaces: [{
                type: "string",
                mac: "string",
                model: "string",
                source: {
                    bridge: "string",
                    dev: "string",
                    mode: "string",
                    network: "string",
                    portgroup: "string",
                },
                waitForIp: {
                    source: "string",
                    timeout: 0,
                },
            }],
            rngs: [{
                device: "string",
                model: "string",
            }],
            serials: [{
                sourcePath: "string",
                targetPort: 0,
                targetType: "string",
                type: "string",
            }],
            tpms: [{
                backendDevicePath: "string",
                backendEncryptionSecret: "string",
                backendPersistentState: false,
                backendType: "string",
                backendVersion: "string",
                model: "string",
            }],
            video: {
                type: "string",
            },
        },
        features: {
            acpi: false,
            apic: false,
            ccfAssist: "string",
            gicVersion: "string",
            hap: "string",
            htm: "string",
            ioapicDriver: "string",
            nestedHv: "string",
            pae: false,
            pmu: "string",
            privnet: false,
            ps2: "string",
            pvspinlock: "string",
            ras: "string",
            viridian: false,
            vmcoreinfo: "string",
            vmport: "string",
        },
        hwuuid: "string",
        iothreads: 0,
        metadata: "string",
        clock: {
            adjustment: "string",
            basis: "string",
            offset: "string",
            timers: [{
                name: "string",
                catchup: {
                    limit: 0,
                    slew: 0,
                    threshold: 0,
                },
                frequency: 0,
                mode: "string",
                present: "string",
                tickpolicy: "string",
                track: "string",
            }],
            timezone: "string",
        },
        autostart: false,
        maxMemory: 0,
        name: "string",
        onCrash: "string",
        onPoweroff: "string",
        onReboot: "string",
        os: {
            type: "string",
            arch: "string",
            bootDevices: ["string"],
            firmware: "string",
            initrd: "string",
            kernel: "string",
            kernelArgs: "string",
            loaderPath: "string",
            loaderReadonly: false,
            loaderType: "string",
            machine: "string",
            nvram: {
                format: "string",
                path: "string",
                source: {
                    block: "string",
                    file: "string",
                    pool: "string",
                    volume: "string",
                },
                template: "string",
                templateFormat: "string",
            },
        },
        pm: {
            suspendToDisk: "string",
            suspendToMem: "string",
        },
        running: false,
        title: "string",
        type: "string",
        bootloaderArgs: "string",
        uuid: "string",
        bootloader: "string",
    });
    
    type: libvirt:Domain
    properties:
        autostart: false
        bootloader: string
        bootloaderArgs: string
        clock:
            adjustment: string
            basis: string
            offset: string
            timers:
                - catchup:
                    limit: 0
                    slew: 0
                    threshold: 0
                  frequency: 0
                  mode: string
                  name: string
                  present: string
                  tickpolicy: string
                  track: string
            timezone: string
        cpu:
            check: string
            deprecatedFeatures: string
            match: string
            migratable: string
            mode: string
            model: string
            vendor: string
        create:
            autodestroy: false
            bypassCache: false
            forceBoot: false
            paused: false
            resetNvram: false
            validate: false
        currentMemory: 0
        description: string
        destroy:
            graceful: false
            timeout: 0
        devices:
            consoles:
                - sourcePath: string
                  targetPort: 0
                  targetType: string
                  type: string
            disks:
                - device: string
                  source:
                    block: string
                    file: string
                    pool: string
                    volume: string
                  target:
                    bus: string
                    dev: string
                  wwn: string
            emulator: string
            filesystems:
                - accessmode: string
                  readonly: false
                  source: string
                  target: string
            graphics:
                spice:
                    autoport: string
                    listen: string
                    port: 0
                    tlsport: 0
                vnc:
                    autoport: string
                    listen: string
                    port: 0
                    socket: string
                    websocket: 0
            interfaces:
                - mac: string
                  model: string
                  source:
                    bridge: string
                    dev: string
                    mode: string
                    network: string
                    portgroup: string
                  type: string
                  waitForIp:
                    source: string
                    timeout: 0
            rngs:
                - device: string
                  model: string
            serials:
                - sourcePath: string
                  targetPort: 0
                  targetType: string
                  type: string
            tpms:
                - backendDevicePath: string
                  backendEncryptionSecret: string
                  backendPersistentState: false
                  backendType: string
                  backendVersion: string
                  model: string
            video:
                type: string
        features:
            acpi: false
            apic: false
            ccfAssist: string
            gicVersion: string
            hap: string
            htm: string
            ioapicDriver: string
            nestedHv: string
            pae: false
            pmu: string
            privnet: false
            ps2: string
            pvspinlock: string
            ras: string
            viridian: false
            vmcoreinfo: string
            vmport: string
        hwuuid: string
        iothreads: 0
        maxMemory: 0
        maxMemorySlots: 0
        memory: 0
        metadata: string
        name: string
        onCrash: string
        onPoweroff: string
        onReboot: string
        os:
            arch: string
            bootDevices:
                - string
            firmware: string
            initrd: string
            kernel: string
            kernelArgs: string
            loaderPath: string
            loaderReadonly: false
            loaderType: string
            machine: string
            nvram:
                format: string
                path: string
                source:
                    block: string
                    file: string
                    pool: string
                    volume: string
                template: string
                templateFormat: string
            type: string
        pm:
            suspendToDisk: string
            suspendToMem: string
        running: false
        title: string
        type: string
        unit: string
        uuid: string
        vcpu: 0
    

    Domain Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Domain resource accepts the following input properties:

    Memory double
    Maximum memory allocation in the specified unit. Default unit is KiB.
    Vcpu double
    Number of virtual CPUs.
    Autostart bool
    Whether the domain should be started automatically when the host boots.
    Bootloader string
    Bootloader path for paravirtualized guests (Xen).
    BootloaderArgs string
    Arguments to pass to bootloader.
    Clock DomainClock
    Clock configuration for the domain.
    Cpu DomainCpu
    CPU configuration for the domain.
    Create DomainCreate
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    CurrentMemory double
    Actual memory allocation at boot time. If not set, defaults to memory value.
    Description string
    Human-readable description of the domain.
    Destroy DomainDestroy
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    Devices DomainDevices
    Devices attached to the domain (disks, network interfaces, etc.).
    Features DomainFeatures
    Hypervisor features to enable.
    Hwuuid string
    Hardware UUID for the domain.
    Iothreads double
    Number of I/O threads for virtio disks.
    MaxMemory double
    Maximum memory for hotplug. Must be >= memory.
    MaxMemorySlots double
    Number of slots for memory hotplug. Required when max_memory is set.
    Metadata string

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    Name string
    Domain name. Must be unique on the host.
    OnCrash string
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    OnPoweroff string
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    OnReboot string
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    Os DomainOs
    Operating system configuration for the domain.
    Pm DomainPm
    Power management configuration for the domain.
    Running bool
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    Title string
    Short description title for the domain.
    Type string
    Domain type (e.g., 'kvm', 'qemu').
    Unit string
    Memory unit (KiB, MiB, GiB, TiB).
    Uuid string
    Domain UUID. If not specified, one will be generated.
    Memory float64
    Maximum memory allocation in the specified unit. Default unit is KiB.
    Vcpu float64
    Number of virtual CPUs.
    Autostart bool
    Whether the domain should be started automatically when the host boots.
    Bootloader string
    Bootloader path for paravirtualized guests (Xen).
    BootloaderArgs string
    Arguments to pass to bootloader.
    Clock DomainClockArgs
    Clock configuration for the domain.
    Cpu DomainCpuArgs
    CPU configuration for the domain.
    Create DomainCreateArgs
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    CurrentMemory float64
    Actual memory allocation at boot time. If not set, defaults to memory value.
    Description string
    Human-readable description of the domain.
    Destroy DomainDestroyArgs
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    Devices DomainDevicesArgs
    Devices attached to the domain (disks, network interfaces, etc.).
    Features DomainFeaturesArgs
    Hypervisor features to enable.
    Hwuuid string
    Hardware UUID for the domain.
    Iothreads float64
    Number of I/O threads for virtio disks.
    MaxMemory float64
    Maximum memory for hotplug. Must be >= memory.
    MaxMemorySlots float64
    Number of slots for memory hotplug. Required when max_memory is set.
    Metadata string

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    Name string
    Domain name. Must be unique on the host.
    OnCrash string
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    OnPoweroff string
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    OnReboot string
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    Os DomainOsArgs
    Operating system configuration for the domain.
    Pm DomainPmArgs
    Power management configuration for the domain.
    Running bool
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    Title string
    Short description title for the domain.
    Type string
    Domain type (e.g., 'kvm', 'qemu').
    Unit string
    Memory unit (KiB, MiB, GiB, TiB).
    Uuid string
    Domain UUID. If not specified, one will be generated.
    memory Double
    Maximum memory allocation in the specified unit. Default unit is KiB.
    vcpu Double
    Number of virtual CPUs.
    autostart Boolean
    Whether the domain should be started automatically when the host boots.
    bootloader String
    Bootloader path for paravirtualized guests (Xen).
    bootloaderArgs String
    Arguments to pass to bootloader.
    clock DomainClock
    Clock configuration for the domain.
    cpu DomainCpu
    CPU configuration for the domain.
    create DomainCreate
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    currentMemory Double
    Actual memory allocation at boot time. If not set, defaults to memory value.
    description String
    Human-readable description of the domain.
    destroy DomainDestroy
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    devices DomainDevices
    Devices attached to the domain (disks, network interfaces, etc.).
    features DomainFeatures
    Hypervisor features to enable.
    hwuuid String
    Hardware UUID for the domain.
    iothreads Double
    Number of I/O threads for virtio disks.
    maxMemory Double
    Maximum memory for hotplug. Must be >= memory.
    maxMemorySlots Double
    Number of slots for memory hotplug. Required when max_memory is set.
    metadata String

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    name String
    Domain name. Must be unique on the host.
    onCrash String
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    onPoweroff String
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    onReboot String
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    os DomainOs
    Operating system configuration for the domain.
    pm DomainPm
    Power management configuration for the domain.
    running Boolean
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    title String
    Short description title for the domain.
    type String
    Domain type (e.g., 'kvm', 'qemu').
    unit String
    Memory unit (KiB, MiB, GiB, TiB).
    uuid String
    Domain UUID. If not specified, one will be generated.
    memory number
    Maximum memory allocation in the specified unit. Default unit is KiB.
    vcpu number
    Number of virtual CPUs.
    autostart boolean
    Whether the domain should be started automatically when the host boots.
    bootloader string
    Bootloader path for paravirtualized guests (Xen).
    bootloaderArgs string
    Arguments to pass to bootloader.
    clock DomainClock
    Clock configuration for the domain.
    cpu DomainCpu
    CPU configuration for the domain.
    create DomainCreate
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    currentMemory number
    Actual memory allocation at boot time. If not set, defaults to memory value.
    description string
    Human-readable description of the domain.
    destroy DomainDestroy
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    devices DomainDevices
    Devices attached to the domain (disks, network interfaces, etc.).
    features DomainFeatures
    Hypervisor features to enable.
    hwuuid string
    Hardware UUID for the domain.
    iothreads number
    Number of I/O threads for virtio disks.
    maxMemory number
    Maximum memory for hotplug. Must be >= memory.
    maxMemorySlots number
    Number of slots for memory hotplug. Required when max_memory is set.
    metadata string

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    name string
    Domain name. Must be unique on the host.
    onCrash string
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    onPoweroff string
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    onReboot string
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    os DomainOs
    Operating system configuration for the domain.
    pm DomainPm
    Power management configuration for the domain.
    running boolean
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    title string
    Short description title for the domain.
    type string
    Domain type (e.g., 'kvm', 'qemu').
    unit string
    Memory unit (KiB, MiB, GiB, TiB).
    uuid string
    Domain UUID. If not specified, one will be generated.
    memory float
    Maximum memory allocation in the specified unit. Default unit is KiB.
    vcpu float
    Number of virtual CPUs.
    autostart bool
    Whether the domain should be started automatically when the host boots.
    bootloader str
    Bootloader path for paravirtualized guests (Xen).
    bootloader_args str
    Arguments to pass to bootloader.
    clock DomainClockArgs
    Clock configuration for the domain.
    cpu DomainCpuArgs
    CPU configuration for the domain.
    create DomainCreateArgs
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    current_memory float
    Actual memory allocation at boot time. If not set, defaults to memory value.
    description str
    Human-readable description of the domain.
    destroy DomainDestroyArgs
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    devices DomainDevicesArgs
    Devices attached to the domain (disks, network interfaces, etc.).
    features DomainFeaturesArgs
    Hypervisor features to enable.
    hwuuid str
    Hardware UUID for the domain.
    iothreads float
    Number of I/O threads for virtio disks.
    max_memory float
    Maximum memory for hotplug. Must be >= memory.
    max_memory_slots float
    Number of slots for memory hotplug. Required when max_memory is set.
    metadata str

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    name str
    Domain name. Must be unique on the host.
    on_crash str
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    on_poweroff str
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    on_reboot str
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    os DomainOsArgs
    Operating system configuration for the domain.
    pm DomainPmArgs
    Power management configuration for the domain.
    running bool
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    title str
    Short description title for the domain.
    type str
    Domain type (e.g., 'kvm', 'qemu').
    unit str
    Memory unit (KiB, MiB, GiB, TiB).
    uuid str
    Domain UUID. If not specified, one will be generated.
    memory Number
    Maximum memory allocation in the specified unit. Default unit is KiB.
    vcpu Number
    Number of virtual CPUs.
    autostart Boolean
    Whether the domain should be started automatically when the host boots.
    bootloader String
    Bootloader path for paravirtualized guests (Xen).
    bootloaderArgs String
    Arguments to pass to bootloader.
    clock Property Map
    Clock configuration for the domain.
    cpu Property Map
    CPU configuration for the domain.
    create Property Map
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    currentMemory Number
    Actual memory allocation at boot time. If not set, defaults to memory value.
    description String
    Human-readable description of the domain.
    destroy Property Map
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    devices Property Map
    Devices attached to the domain (disks, network interfaces, etc.).
    features Property Map
    Hypervisor features to enable.
    hwuuid String
    Hardware UUID for the domain.
    iothreads Number
    Number of I/O threads for virtio disks.
    maxMemory Number
    Maximum memory for hotplug. Must be >= memory.
    maxMemorySlots Number
    Number of slots for memory hotplug. Required when max_memory is set.
    metadata String

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    name String
    Domain name. Must be unique on the host.
    onCrash String
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    onPoweroff String
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    onReboot String
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    os Property Map
    Operating system configuration for the domain.
    pm Property Map
    Power management configuration for the domain.
    running Boolean
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    title String
    Short description title for the domain.
    type String
    Domain type (e.g., 'kvm', 'qemu').
    unit String
    Memory unit (KiB, MiB, GiB, TiB).
    uuid String
    Domain UUID. If not specified, one will be generated.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Domain 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 Domain Resource

    Get an existing Domain 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?: DomainState, opts?: CustomResourceOptions): Domain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            autostart: Optional[bool] = None,
            bootloader: Optional[str] = None,
            bootloader_args: Optional[str] = None,
            clock: Optional[DomainClockArgs] = None,
            cpu: Optional[DomainCpuArgs] = None,
            create: Optional[DomainCreateArgs] = None,
            current_memory: Optional[float] = None,
            description: Optional[str] = None,
            destroy: Optional[DomainDestroyArgs] = None,
            devices: Optional[DomainDevicesArgs] = None,
            features: Optional[DomainFeaturesArgs] = None,
            hwuuid: Optional[str] = None,
            iothreads: Optional[float] = None,
            max_memory: Optional[float] = None,
            max_memory_slots: Optional[float] = None,
            memory: Optional[float] = None,
            metadata: Optional[str] = None,
            name: Optional[str] = None,
            on_crash: Optional[str] = None,
            on_poweroff: Optional[str] = None,
            on_reboot: Optional[str] = None,
            os: Optional[DomainOsArgs] = None,
            pm: Optional[DomainPmArgs] = None,
            running: Optional[bool] = None,
            title: Optional[str] = None,
            type: Optional[str] = None,
            unit: Optional[str] = None,
            uuid: Optional[str] = None,
            vcpu: Optional[float] = None) -> Domain
    func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
    public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
    public static Domain get(String name, Output<String> id, DomainState state, CustomResourceOptions options)
    resources:  _:    type: libvirt:Domain    get:      id: ${id}
    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.
    The following state arguments are supported:
    Autostart bool
    Whether the domain should be started automatically when the host boots.
    Bootloader string
    Bootloader path for paravirtualized guests (Xen).
    BootloaderArgs string
    Arguments to pass to bootloader.
    Clock DomainClock
    Clock configuration for the domain.
    Cpu DomainCpu
    CPU configuration for the domain.
    Create DomainCreate
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    CurrentMemory double
    Actual memory allocation at boot time. If not set, defaults to memory value.
    Description string
    Human-readable description of the domain.
    Destroy DomainDestroy
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    Devices DomainDevices
    Devices attached to the domain (disks, network interfaces, etc.).
    Features DomainFeatures
    Hypervisor features to enable.
    Hwuuid string
    Hardware UUID for the domain.
    Iothreads double
    Number of I/O threads for virtio disks.
    MaxMemory double
    Maximum memory for hotplug. Must be >= memory.
    MaxMemorySlots double
    Number of slots for memory hotplug. Required when max_memory is set.
    Memory double
    Maximum memory allocation in the specified unit. Default unit is KiB.
    Metadata string

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    Name string
    Domain name. Must be unique on the host.
    OnCrash string
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    OnPoweroff string
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    OnReboot string
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    Os DomainOs
    Operating system configuration for the domain.
    Pm DomainPm
    Power management configuration for the domain.
    Running bool
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    Title string
    Short description title for the domain.
    Type string
    Domain type (e.g., 'kvm', 'qemu').
    Unit string
    Memory unit (KiB, MiB, GiB, TiB).
    Uuid string
    Domain UUID. If not specified, one will be generated.
    Vcpu double
    Number of virtual CPUs.
    Autostart bool
    Whether the domain should be started automatically when the host boots.
    Bootloader string
    Bootloader path for paravirtualized guests (Xen).
    BootloaderArgs string
    Arguments to pass to bootloader.
    Clock DomainClockArgs
    Clock configuration for the domain.
    Cpu DomainCpuArgs
    CPU configuration for the domain.
    Create DomainCreateArgs
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    CurrentMemory float64
    Actual memory allocation at boot time. If not set, defaults to memory value.
    Description string
    Human-readable description of the domain.
    Destroy DomainDestroyArgs
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    Devices DomainDevicesArgs
    Devices attached to the domain (disks, network interfaces, etc.).
    Features DomainFeaturesArgs
    Hypervisor features to enable.
    Hwuuid string
    Hardware UUID for the domain.
    Iothreads float64
    Number of I/O threads for virtio disks.
    MaxMemory float64
    Maximum memory for hotplug. Must be >= memory.
    MaxMemorySlots float64
    Number of slots for memory hotplug. Required when max_memory is set.
    Memory float64
    Maximum memory allocation in the specified unit. Default unit is KiB.
    Metadata string

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    Name string
    Domain name. Must be unique on the host.
    OnCrash string
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    OnPoweroff string
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    OnReboot string
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    Os DomainOsArgs
    Operating system configuration for the domain.
    Pm DomainPmArgs
    Power management configuration for the domain.
    Running bool
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    Title string
    Short description title for the domain.
    Type string
    Domain type (e.g., 'kvm', 'qemu').
    Unit string
    Memory unit (KiB, MiB, GiB, TiB).
    Uuid string
    Domain UUID. If not specified, one will be generated.
    Vcpu float64
    Number of virtual CPUs.
    autostart Boolean
    Whether the domain should be started automatically when the host boots.
    bootloader String
    Bootloader path for paravirtualized guests (Xen).
    bootloaderArgs String
    Arguments to pass to bootloader.
    clock DomainClock
    Clock configuration for the domain.
    cpu DomainCpu
    CPU configuration for the domain.
    create DomainCreate
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    currentMemory Double
    Actual memory allocation at boot time. If not set, defaults to memory value.
    description String
    Human-readable description of the domain.
    destroy DomainDestroy
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    devices DomainDevices
    Devices attached to the domain (disks, network interfaces, etc.).
    features DomainFeatures
    Hypervisor features to enable.
    hwuuid String
    Hardware UUID for the domain.
    iothreads Double
    Number of I/O threads for virtio disks.
    maxMemory Double
    Maximum memory for hotplug. Must be >= memory.
    maxMemorySlots Double
    Number of slots for memory hotplug. Required when max_memory is set.
    memory Double
    Maximum memory allocation in the specified unit. Default unit is KiB.
    metadata String

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    name String
    Domain name. Must be unique on the host.
    onCrash String
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    onPoweroff String
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    onReboot String
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    os DomainOs
    Operating system configuration for the domain.
    pm DomainPm
    Power management configuration for the domain.
    running Boolean
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    title String
    Short description title for the domain.
    type String
    Domain type (e.g., 'kvm', 'qemu').
    unit String
    Memory unit (KiB, MiB, GiB, TiB).
    uuid String
    Domain UUID. If not specified, one will be generated.
    vcpu Double
    Number of virtual CPUs.
    autostart boolean
    Whether the domain should be started automatically when the host boots.
    bootloader string
    Bootloader path for paravirtualized guests (Xen).
    bootloaderArgs string
    Arguments to pass to bootloader.
    clock DomainClock
    Clock configuration for the domain.
    cpu DomainCpu
    CPU configuration for the domain.
    create DomainCreate
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    currentMemory number
    Actual memory allocation at boot time. If not set, defaults to memory value.
    description string
    Human-readable description of the domain.
    destroy DomainDestroy
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    devices DomainDevices
    Devices attached to the domain (disks, network interfaces, etc.).
    features DomainFeatures
    Hypervisor features to enable.
    hwuuid string
    Hardware UUID for the domain.
    iothreads number
    Number of I/O threads for virtio disks.
    maxMemory number
    Maximum memory for hotplug. Must be >= memory.
    maxMemorySlots number
    Number of slots for memory hotplug. Required when max_memory is set.
    memory number
    Maximum memory allocation in the specified unit. Default unit is KiB.
    metadata string

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    name string
    Domain name. Must be unique on the host.
    onCrash string
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    onPoweroff string
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    onReboot string
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    os DomainOs
    Operating system configuration for the domain.
    pm DomainPm
    Power management configuration for the domain.
    running boolean
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    title string
    Short description title for the domain.
    type string
    Domain type (e.g., 'kvm', 'qemu').
    unit string
    Memory unit (KiB, MiB, GiB, TiB).
    uuid string
    Domain UUID. If not specified, one will be generated.
    vcpu number
    Number of virtual CPUs.
    autostart bool
    Whether the domain should be started automatically when the host boots.
    bootloader str
    Bootloader path for paravirtualized guests (Xen).
    bootloader_args str
    Arguments to pass to bootloader.
    clock DomainClockArgs
    Clock configuration for the domain.
    cpu DomainCpuArgs
    CPU configuration for the domain.
    create DomainCreateArgs
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    current_memory float
    Actual memory allocation at boot time. If not set, defaults to memory value.
    description str
    Human-readable description of the domain.
    destroy DomainDestroyArgs
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    devices DomainDevicesArgs
    Devices attached to the domain (disks, network interfaces, etc.).
    features DomainFeaturesArgs
    Hypervisor features to enable.
    hwuuid str
    Hardware UUID for the domain.
    iothreads float
    Number of I/O threads for virtio disks.
    max_memory float
    Maximum memory for hotplug. Must be >= memory.
    max_memory_slots float
    Number of slots for memory hotplug. Required when max_memory is set.
    memory float
    Maximum memory allocation in the specified unit. Default unit is KiB.
    metadata str

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    name str
    Domain name. Must be unique on the host.
    on_crash str
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    on_poweroff str
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    on_reboot str
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    os DomainOsArgs
    Operating system configuration for the domain.
    pm DomainPmArgs
    Power management configuration for the domain.
    running bool
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    title str
    Short description title for the domain.
    type str
    Domain type (e.g., 'kvm', 'qemu').
    unit str
    Memory unit (KiB, MiB, GiB, TiB).
    uuid str
    Domain UUID. If not specified, one will be generated.
    vcpu float
    Number of virtual CPUs.
    autostart Boolean
    Whether the domain should be started automatically when the host boots.
    bootloader String
    Bootloader path for paravirtualized guests (Xen).
    bootloaderArgs String
    Arguments to pass to bootloader.
    clock Property Map
    Clock configuration for the domain.
    cpu Property Map
    CPU configuration for the domain.
    create Property Map
    Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
    currentMemory Number
    Actual memory allocation at boot time. If not set, defaults to memory value.
    description String
    Human-readable description of the domain.
    destroy Property Map
    Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
    devices Property Map
    Devices attached to the domain (disks, network interfaces, etc.).
    features Property Map
    Hypervisor features to enable.
    hwuuid String
    Hardware UUID for the domain.
    iothreads Number
    Number of I/O threads for virtio disks.
    maxMemory Number
    Maximum memory for hotplug. Must be >= memory.
    maxMemorySlots Number
    Number of slots for memory hotplug. Required when max_memory is set.
    memory Number
    Maximum memory allocation in the specified unit. Default unit is KiB.
    metadata String

    Custom metadata XML for the domain.

    This allows applications to store custom information within the domain's XML configuration.

    Requirements:

    • Must be valid XML
    • Must use custom namespaces (e.g., xmlns:app1="http://app1.org/app1/")
    • Only one top-level element per namespace

    Example:

    <app1:foo xmlns:app1="http://app1.org/app1/">
      <app1:bar>some content</app1:bar>
    </app1:foo>
    

    See libvirt metadata documentation for more details.

    name String
    Domain name. Must be unique on the host.
    onCrash String
    Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
    onPoweroff String
    Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
    onReboot String
    Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
    os Property Map
    Operating system configuration for the domain.
    pm Property Map
    Power management configuration for the domain.
    running Boolean
    Whether the domain should be running. If true, the domain will be started after creation. If false or unset, the domain will only be defined but not started.
    title String
    Short description title for the domain.
    type String
    Domain type (e.g., 'kvm', 'qemu').
    unit String
    Memory unit (KiB, MiB, GiB, TiB).
    uuid String
    Domain UUID. If not specified, one will be generated.
    vcpu Number
    Number of virtual CPUs.

    Supporting Types

    DomainClock, DomainClockArgs

    Adjustment string
    Clock adjustment in seconds.
    Basis string
    Clock basis (utc, localtime).
    Offset string
    Clock offset (utc, localtime, timezone, variable).
    Timers List<DomainClockTimer>
    Timer devices for the guest clock.
    Timezone string
    Timezone name when offset is 'timezone'.
    Adjustment string
    Clock adjustment in seconds.
    Basis string
    Clock basis (utc, localtime).
    Offset string
    Clock offset (utc, localtime, timezone, variable).
    Timers []DomainClockTimer
    Timer devices for the guest clock.
    Timezone string
    Timezone name when offset is 'timezone'.
    adjustment String
    Clock adjustment in seconds.
    basis String
    Clock basis (utc, localtime).
    offset String
    Clock offset (utc, localtime, timezone, variable).
    timers List<DomainClockTimer>
    Timer devices for the guest clock.
    timezone String
    Timezone name when offset is 'timezone'.
    adjustment string
    Clock adjustment in seconds.
    basis string
    Clock basis (utc, localtime).
    offset string
    Clock offset (utc, localtime, timezone, variable).
    timers DomainClockTimer[]
    Timer devices for the guest clock.
    timezone string
    Timezone name when offset is 'timezone'.
    adjustment str
    Clock adjustment in seconds.
    basis str
    Clock basis (utc, localtime).
    offset str
    Clock offset (utc, localtime, timezone, variable).
    timers Sequence[DomainClockTimer]
    Timer devices for the guest clock.
    timezone str
    Timezone name when offset is 'timezone'.
    adjustment String
    Clock adjustment in seconds.
    basis String
    Clock basis (utc, localtime).
    offset String
    Clock offset (utc, localtime, timezone, variable).
    timers List<Property Map>
    Timer devices for the guest clock.
    timezone String
    Timezone name when offset is 'timezone'.

    DomainClockTimer, DomainClockTimerArgs

    Name string
    Timer name (platform, pit, rtc, hpet, tsc, kvmclock, hypervclock, armvtimer).
    Catchup DomainClockTimerCatchup
    Timer catchup configuration.
    Frequency double
    Timer frequency in Hz.
    Mode string
    Timer mode (auto, native, emulate, paravirt, smpsafe).
    Present string
    Whether timer is present (yes, no).
    Tickpolicy string
    Tick policy (delay, catchup, merge, discard).
    Track string
    Track source (guest, wall).
    Name string
    Timer name (platform, pit, rtc, hpet, tsc, kvmclock, hypervclock, armvtimer).
    Catchup DomainClockTimerCatchup
    Timer catchup configuration.
    Frequency float64
    Timer frequency in Hz.
    Mode string
    Timer mode (auto, native, emulate, paravirt, smpsafe).
    Present string
    Whether timer is present (yes, no).
    Tickpolicy string
    Tick policy (delay, catchup, merge, discard).
    Track string
    Track source (guest, wall).
    name String
    Timer name (platform, pit, rtc, hpet, tsc, kvmclock, hypervclock, armvtimer).
    catchup DomainClockTimerCatchup
    Timer catchup configuration.
    frequency Double
    Timer frequency in Hz.
    mode String
    Timer mode (auto, native, emulate, paravirt, smpsafe).
    present String
    Whether timer is present (yes, no).
    tickpolicy String
    Tick policy (delay, catchup, merge, discard).
    track String
    Track source (guest, wall).
    name string
    Timer name (platform, pit, rtc, hpet, tsc, kvmclock, hypervclock, armvtimer).
    catchup DomainClockTimerCatchup
    Timer catchup configuration.
    frequency number
    Timer frequency in Hz.
    mode string
    Timer mode (auto, native, emulate, paravirt, smpsafe).
    present string
    Whether timer is present (yes, no).
    tickpolicy string
    Tick policy (delay, catchup, merge, discard).
    track string
    Track source (guest, wall).
    name str
    Timer name (platform, pit, rtc, hpet, tsc, kvmclock, hypervclock, armvtimer).
    catchup DomainClockTimerCatchup
    Timer catchup configuration.
    frequency float
    Timer frequency in Hz.
    mode str
    Timer mode (auto, native, emulate, paravirt, smpsafe).
    present str
    Whether timer is present (yes, no).
    tickpolicy str
    Tick policy (delay, catchup, merge, discard).
    track str
    Track source (guest, wall).
    name String
    Timer name (platform, pit, rtc, hpet, tsc, kvmclock, hypervclock, armvtimer).
    catchup Property Map
    Timer catchup configuration.
    frequency Number
    Timer frequency in Hz.
    mode String
    Timer mode (auto, native, emulate, paravirt, smpsafe).
    present String
    Whether timer is present (yes, no).
    tickpolicy String
    Tick policy (delay, catchup, merge, discard).
    track String
    Track source (guest, wall).

    DomainClockTimerCatchup, DomainClockTimerCatchupArgs

    Limit double
    Limit in nanoseconds.
    Slew double
    Slew in nanoseconds.
    Threshold double
    Threshold in nanoseconds.
    Limit float64
    Limit in nanoseconds.
    Slew float64
    Slew in nanoseconds.
    Threshold float64
    Threshold in nanoseconds.
    limit Double
    Limit in nanoseconds.
    slew Double
    Slew in nanoseconds.
    threshold Double
    Threshold in nanoseconds.
    limit number
    Limit in nanoseconds.
    slew number
    Slew in nanoseconds.
    threshold number
    Threshold in nanoseconds.
    limit float
    Limit in nanoseconds.
    slew float
    Slew in nanoseconds.
    threshold float
    Threshold in nanoseconds.
    limit Number
    Limit in nanoseconds.
    slew Number
    Slew in nanoseconds.
    threshold Number
    Threshold in nanoseconds.

    DomainCpu, DomainCpuArgs

    Check string
    CPU check policy (none, partial, full).
    DeprecatedFeatures string
    How to handle deprecated features (allow, forbid).
    Match string
    CPU match policy (exact, minimum, strict).
    Migratable string
    Whether the CPU is migratable (on, off).
    Mode string
    CPU mode (host-model, host-passthrough, custom).
    Model string
    CPU model name.
    Vendor string
    CPU vendor.
    Check string
    CPU check policy (none, partial, full).
    DeprecatedFeatures string
    How to handle deprecated features (allow, forbid).
    Match string
    CPU match policy (exact, minimum, strict).
    Migratable string
    Whether the CPU is migratable (on, off).
    Mode string
    CPU mode (host-model, host-passthrough, custom).
    Model string
    CPU model name.
    Vendor string
    CPU vendor.
    check String
    CPU check policy (none, partial, full).
    deprecatedFeatures String
    How to handle deprecated features (allow, forbid).
    match String
    CPU match policy (exact, minimum, strict).
    migratable String
    Whether the CPU is migratable (on, off).
    mode String
    CPU mode (host-model, host-passthrough, custom).
    model String
    CPU model name.
    vendor String
    CPU vendor.
    check string
    CPU check policy (none, partial, full).
    deprecatedFeatures string
    How to handle deprecated features (allow, forbid).
    match string
    CPU match policy (exact, minimum, strict).
    migratable string
    Whether the CPU is migratable (on, off).
    mode string
    CPU mode (host-model, host-passthrough, custom).
    model string
    CPU model name.
    vendor string
    CPU vendor.
    check str
    CPU check policy (none, partial, full).
    deprecated_features str
    How to handle deprecated features (allow, forbid).
    match str
    CPU match policy (exact, minimum, strict).
    migratable str
    Whether the CPU is migratable (on, off).
    mode str
    CPU mode (host-model, host-passthrough, custom).
    model str
    CPU model name.
    vendor str
    CPU vendor.
    check String
    CPU check policy (none, partial, full).
    deprecatedFeatures String
    How to handle deprecated features (allow, forbid).
    match String
    CPU match policy (exact, minimum, strict).
    migratable String
    Whether the CPU is migratable (on, off).
    mode String
    CPU mode (host-model, host-passthrough, custom).
    model String
    CPU model name.
    vendor String
    CPU vendor.

    DomainCreate, DomainCreateArgs

    Autodestroy bool
    Automatically destroy domain when connection closes (VIRDOMAINSTART_AUTODESTROY).
    BypassCache bool
    Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
    ForceBoot bool
    Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
    Paused bool
    Launch domain in paused state (VIRDOMAINSTART_PAUSED).
    ResetNvram bool
    Re-initialize NVRAM from template (VIRDOMAINSTARTRESETNVRAM).
    Validate bool
    Validate XML document against schema (VIRDOMAINSTART_VALIDATE).
    Autodestroy bool
    Automatically destroy domain when connection closes (VIRDOMAINSTART_AUTODESTROY).
    BypassCache bool
    Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
    ForceBoot bool
    Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
    Paused bool
    Launch domain in paused state (VIRDOMAINSTART_PAUSED).
    ResetNvram bool
    Re-initialize NVRAM from template (VIRDOMAINSTARTRESETNVRAM).
    Validate bool
    Validate XML document against schema (VIRDOMAINSTART_VALIDATE).
    autodestroy Boolean
    Automatically destroy domain when connection closes (VIRDOMAINSTART_AUTODESTROY).
    bypassCache Boolean
    Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
    forceBoot Boolean
    Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
    paused Boolean
    Launch domain in paused state (VIRDOMAINSTART_PAUSED).
    resetNvram Boolean
    Re-initialize NVRAM from template (VIRDOMAINSTARTRESETNVRAM).
    validate Boolean
    Validate XML document against schema (VIRDOMAINSTART_VALIDATE).
    autodestroy boolean
    Automatically destroy domain when connection closes (VIRDOMAINSTART_AUTODESTROY).
    bypassCache boolean
    Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
    forceBoot boolean
    Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
    paused boolean
    Launch domain in paused state (VIRDOMAINSTART_PAUSED).
    resetNvram boolean
    Re-initialize NVRAM from template (VIRDOMAINSTARTRESETNVRAM).
    validate boolean
    Validate XML document against schema (VIRDOMAINSTART_VALIDATE).
    autodestroy bool
    Automatically destroy domain when connection closes (VIRDOMAINSTART_AUTODESTROY).
    bypass_cache bool
    Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
    force_boot bool
    Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
    paused bool
    Launch domain in paused state (VIRDOMAINSTART_PAUSED).
    reset_nvram bool
    Re-initialize NVRAM from template (VIRDOMAINSTARTRESETNVRAM).
    validate bool
    Validate XML document against schema (VIRDOMAINSTART_VALIDATE).
    autodestroy Boolean
    Automatically destroy domain when connection closes (VIRDOMAINSTART_AUTODESTROY).
    bypassCache Boolean
    Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
    forceBoot Boolean
    Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
    paused Boolean
    Launch domain in paused state (VIRDOMAINSTART_PAUSED).
    resetNvram Boolean
    Re-initialize NVRAM from template (VIRDOMAINSTARTRESETNVRAM).
    validate Boolean
    Validate XML document against schema (VIRDOMAINSTART_VALIDATE).

    DomainDestroy, DomainDestroyArgs

    Graceful bool
    Attempt graceful shutdown before forcing. Defaults to true.
    Timeout double
    Timeout in seconds to wait for graceful shutdown before forcing. Defaults to 300.
    Graceful bool
    Attempt graceful shutdown before forcing. Defaults to true.
    Timeout float64
    Timeout in seconds to wait for graceful shutdown before forcing. Defaults to 300.
    graceful Boolean
    Attempt graceful shutdown before forcing. Defaults to true.
    timeout Double
    Timeout in seconds to wait for graceful shutdown before forcing. Defaults to 300.
    graceful boolean
    Attempt graceful shutdown before forcing. Defaults to true.
    timeout number
    Timeout in seconds to wait for graceful shutdown before forcing. Defaults to 300.
    graceful bool
    Attempt graceful shutdown before forcing. Defaults to true.
    timeout float
    Timeout in seconds to wait for graceful shutdown before forcing. Defaults to 300.
    graceful Boolean
    Attempt graceful shutdown before forcing. Defaults to true.
    timeout Number
    Timeout in seconds to wait for graceful shutdown before forcing. Defaults to 300.

    DomainDevices, DomainDevicesArgs

    Consoles List<DomainDevicesConsole>
    Console devices for the domain.
    Disks List<DomainDevicesDisk>
    Disk devices attached to the domain.
    Emulator string
    Path to the emulator binary (e.g., /usr/bin/qemu-system-x86_64). Optional, libvirt chooses default if not specified.
    Filesystems List<DomainDevicesFilesystem>
    Filesystem devices for sharing host directories with the guest (virtio-9p).
    Graphics DomainDevicesGraphics
    Graphics device for the domain (VNC or Spice). Only one type can be specified.
    Interfaces List<DomainDevicesInterface>
    Network interfaces attached to the domain.
    Rngs List<DomainDevicesRng>
    Random number generator devices for the domain.
    Serials List<DomainDevicesSerial>
    Serial devices for the domain.
    Tpms List<DomainDevicesTpm>
    TPM devices for the domain. Only one TPM device is supported per domain.
    Video DomainDevicesVideo
    Video device for the domain.
    Consoles []DomainDevicesConsole
    Console devices for the domain.
    Disks []DomainDevicesDisk
    Disk devices attached to the domain.
    Emulator string
    Path to the emulator binary (e.g., /usr/bin/qemu-system-x86_64). Optional, libvirt chooses default if not specified.
    Filesystems []DomainDevicesFilesystem
    Filesystem devices for sharing host directories with the guest (virtio-9p).
    Graphics DomainDevicesGraphics
    Graphics device for the domain (VNC or Spice). Only one type can be specified.
    Interfaces []DomainDevicesInterface
    Network interfaces attached to the domain.
    Rngs []DomainDevicesRng
    Random number generator devices for the domain.
    Serials []DomainDevicesSerial
    Serial devices for the domain.
    Tpms []DomainDevicesTpm
    TPM devices for the domain. Only one TPM device is supported per domain.
    Video DomainDevicesVideo
    Video device for the domain.
    consoles List<DomainDevicesConsole>
    Console devices for the domain.
    disks List<DomainDevicesDisk>
    Disk devices attached to the domain.
    emulator String
    Path to the emulator binary (e.g., /usr/bin/qemu-system-x86_64). Optional, libvirt chooses default if not specified.
    filesystems List<DomainDevicesFilesystem>
    Filesystem devices for sharing host directories with the guest (virtio-9p).
    graphics DomainDevicesGraphics
    Graphics device for the domain (VNC or Spice). Only one type can be specified.
    interfaces List<DomainDevicesInterface>
    Network interfaces attached to the domain.
    rngs List<DomainDevicesRng>
    Random number generator devices for the domain.
    serials List<DomainDevicesSerial>
    Serial devices for the domain.
    tpms List<DomainDevicesTpm>
    TPM devices for the domain. Only one TPM device is supported per domain.
    video DomainDevicesVideo
    Video device for the domain.
    consoles DomainDevicesConsole[]
    Console devices for the domain.
    disks DomainDevicesDisk[]
    Disk devices attached to the domain.
    emulator string
    Path to the emulator binary (e.g., /usr/bin/qemu-system-x86_64). Optional, libvirt chooses default if not specified.
    filesystems DomainDevicesFilesystem[]
    Filesystem devices for sharing host directories with the guest (virtio-9p).
    graphics DomainDevicesGraphics
    Graphics device for the domain (VNC or Spice). Only one type can be specified.
    interfaces DomainDevicesInterface[]
    Network interfaces attached to the domain.
    rngs DomainDevicesRng[]
    Random number generator devices for the domain.
    serials DomainDevicesSerial[]
    Serial devices for the domain.
    tpms DomainDevicesTpm[]
    TPM devices for the domain. Only one TPM device is supported per domain.
    video DomainDevicesVideo
    Video device for the domain.
    consoles Sequence[DomainDevicesConsole]
    Console devices for the domain.
    disks Sequence[DomainDevicesDisk]
    Disk devices attached to the domain.
    emulator str
    Path to the emulator binary (e.g., /usr/bin/qemu-system-x86_64). Optional, libvirt chooses default if not specified.
    filesystems Sequence[DomainDevicesFilesystem]
    Filesystem devices for sharing host directories with the guest (virtio-9p).
    graphics DomainDevicesGraphics
    Graphics device for the domain (VNC or Spice). Only one type can be specified.
    interfaces Sequence[DomainDevicesInterface]
    Network interfaces attached to the domain.
    rngs Sequence[DomainDevicesRng]
    Random number generator devices for the domain.
    serials Sequence[DomainDevicesSerial]
    Serial devices for the domain.
    tpms Sequence[DomainDevicesTpm]
    TPM devices for the domain. Only one TPM device is supported per domain.
    video DomainDevicesVideo
    Video device for the domain.
    consoles List<Property Map>
    Console devices for the domain.
    disks List<Property Map>
    Disk devices attached to the domain.
    emulator String
    Path to the emulator binary (e.g., /usr/bin/qemu-system-x86_64). Optional, libvirt chooses default if not specified.
    filesystems List<Property Map>
    Filesystem devices for sharing host directories with the guest (virtio-9p).
    graphics Property Map
    Graphics device for the domain (VNC or Spice). Only one type can be specified.
    interfaces List<Property Map>
    Network interfaces attached to the domain.
    rngs List<Property Map>
    Random number generator devices for the domain.
    serials List<Property Map>
    Serial devices for the domain.
    tpms List<Property Map>
    TPM devices for the domain. Only one TPM device is supported per domain.
    video Property Map
    Video device for the domain.

    DomainDevicesConsole, DomainDevicesConsoleArgs

    SourcePath string
    Source path for file or unix socket types. Optional.
    TargetPort double
    Target port number. Optional.
    TargetType string
    Target type (serial, virtio, xen, etc.). Optional.
    Type string
    Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    SourcePath string
    Source path for file or unix socket types. Optional.
    TargetPort float64
    Target port number. Optional.
    TargetType string
    Target type (serial, virtio, xen, etc.). Optional.
    Type string
    Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    sourcePath String
    Source path for file or unix socket types. Optional.
    targetPort Double
    Target port number. Optional.
    targetType String
    Target type (serial, virtio, xen, etc.). Optional.
    type String
    Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    sourcePath string
    Source path for file or unix socket types. Optional.
    targetPort number
    Target port number. Optional.
    targetType string
    Target type (serial, virtio, xen, etc.). Optional.
    type string
    Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    source_path str
    Source path for file or unix socket types. Optional.
    target_port float
    Target port number. Optional.
    target_type str
    Target type (serial, virtio, xen, etc.). Optional.
    type str
    Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    sourcePath String
    Source path for file or unix socket types. Optional.
    targetPort Number
    Target port number. Optional.
    targetType String
    Target type (serial, virtio, xen, etc.). Optional.
    type String
    Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.

    DomainDevicesDisk, DomainDevicesDiskArgs

    Target DomainDevicesDiskTarget
    Guest device target mapping.
    Device string
    Device type (disk, cdrom, floppy, lun).
    Source DomainDevicesDiskSource
    Disk source configuration. Specify one of: pool+volume for libvirt volumes, file for file paths, or block for block devices.
    Wwn string
    World Wide Name identifier for the disk (typically for SCSI disks). If not specified for SCSI disks, one will be generated. Format: 16 hex digits.
    Target DomainDevicesDiskTarget
    Guest device target mapping.
    Device string
    Device type (disk, cdrom, floppy, lun).
    Source DomainDevicesDiskSource
    Disk source configuration. Specify one of: pool+volume for libvirt volumes, file for file paths, or block for block devices.
    Wwn string
    World Wide Name identifier for the disk (typically for SCSI disks). If not specified for SCSI disks, one will be generated. Format: 16 hex digits.
    target DomainDevicesDiskTarget
    Guest device target mapping.
    device String
    Device type (disk, cdrom, floppy, lun).
    source DomainDevicesDiskSource
    Disk source configuration. Specify one of: pool+volume for libvirt volumes, file for file paths, or block for block devices.
    wwn String
    World Wide Name identifier for the disk (typically for SCSI disks). If not specified for SCSI disks, one will be generated. Format: 16 hex digits.
    target DomainDevicesDiskTarget
    Guest device target mapping.
    device string
    Device type (disk, cdrom, floppy, lun).
    source DomainDevicesDiskSource
    Disk source configuration. Specify one of: pool+volume for libvirt volumes, file for file paths, or block for block devices.
    wwn string
    World Wide Name identifier for the disk (typically for SCSI disks). If not specified for SCSI disks, one will be generated. Format: 16 hex digits.
    target DomainDevicesDiskTarget
    Guest device target mapping.
    device str
    Device type (disk, cdrom, floppy, lun).
    source DomainDevicesDiskSource
    Disk source configuration. Specify one of: pool+volume for libvirt volumes, file for file paths, or block for block devices.
    wwn str
    World Wide Name identifier for the disk (typically for SCSI disks). If not specified for SCSI disks, one will be generated. Format: 16 hex digits.
    target Property Map
    Guest device target mapping.
    device String
    Device type (disk, cdrom, floppy, lun).
    source Property Map
    Disk source configuration. Specify one of: pool+volume for libvirt volumes, file for file paths, or block for block devices.
    wwn String
    World Wide Name identifier for the disk (typically for SCSI disks). If not specified for SCSI disks, one will be generated. Format: 16 hex digits.

    DomainDevicesDiskSource, DomainDevicesDiskSourceArgs

    Block string
    Block device path (e.g., /dev/sdb). Mutually exclusive with pool/volume and file.
    File string
    Path to disk image file. Mutually exclusive with pool/volume and block.
    Pool string
    Storage pool name for volume-based disks. Use with 'volume'.
    Volume string
    Volume name in the storage pool. Use with 'pool'.
    Block string
    Block device path (e.g., /dev/sdb). Mutually exclusive with pool/volume and file.
    File string
    Path to disk image file. Mutually exclusive with pool/volume and block.
    Pool string
    Storage pool name for volume-based disks. Use with 'volume'.
    Volume string
    Volume name in the storage pool. Use with 'pool'.
    block String
    Block device path (e.g., /dev/sdb). Mutually exclusive with pool/volume and file.
    file String
    Path to disk image file. Mutually exclusive with pool/volume and block.
    pool String
    Storage pool name for volume-based disks. Use with 'volume'.
    volume String
    Volume name in the storage pool. Use with 'pool'.
    block string
    Block device path (e.g., /dev/sdb). Mutually exclusive with pool/volume and file.
    file string
    Path to disk image file. Mutually exclusive with pool/volume and block.
    pool string
    Storage pool name for volume-based disks. Use with 'volume'.
    volume string
    Volume name in the storage pool. Use with 'pool'.
    block str
    Block device path (e.g., /dev/sdb). Mutually exclusive with pool/volume and file.
    file str
    Path to disk image file. Mutually exclusive with pool/volume and block.
    pool str
    Storage pool name for volume-based disks. Use with 'volume'.
    volume str
    Volume name in the storage pool. Use with 'pool'.
    block String
    Block device path (e.g., /dev/sdb). Mutually exclusive with pool/volume and file.
    file String
    Path to disk image file. Mutually exclusive with pool/volume and block.
    pool String
    Storage pool name for volume-based disks. Use with 'volume'.
    volume String
    Volume name in the storage pool. Use with 'pool'.

    DomainDevicesDiskTarget, DomainDevicesDiskTargetArgs

    Dev string
    Target device name (e.g., vda, sda, hda).
    Bus string
    Bus type (virtio, scsi, ide, sata, usb).
    Dev string
    Target device name (e.g., vda, sda, hda).
    Bus string
    Bus type (virtio, scsi, ide, sata, usb).
    dev String
    Target device name (e.g., vda, sda, hda).
    bus String
    Bus type (virtio, scsi, ide, sata, usb).
    dev string
    Target device name (e.g., vda, sda, hda).
    bus string
    Bus type (virtio, scsi, ide, sata, usb).
    dev str
    Target device name (e.g., vda, sda, hda).
    bus str
    Bus type (virtio, scsi, ide, sata, usb).
    dev String
    Target device name (e.g., vda, sda, hda).
    bus String
    Bus type (virtio, scsi, ide, sata, usb).

    DomainDevicesFilesystem, DomainDevicesFilesystemArgs

    Source string
    Host directory path to share.
    Target string
    Mount tag visible in the guest (used to mount the filesystem).
    Accessmode string
    Access mode (mapped, passthrough, squash). Defaults to mapped.
    Readonly bool
    Whether the filesystem should be mounted read-only in the guest. Defaults to true.
    Source string
    Host directory path to share.
    Target string
    Mount tag visible in the guest (used to mount the filesystem).
    Accessmode string
    Access mode (mapped, passthrough, squash). Defaults to mapped.
    Readonly bool
    Whether the filesystem should be mounted read-only in the guest. Defaults to true.
    source String
    Host directory path to share.
    target String
    Mount tag visible in the guest (used to mount the filesystem).
    accessmode String
    Access mode (mapped, passthrough, squash). Defaults to mapped.
    readonly Boolean
    Whether the filesystem should be mounted read-only in the guest. Defaults to true.
    source string
    Host directory path to share.
    target string
    Mount tag visible in the guest (used to mount the filesystem).
    accessmode string
    Access mode (mapped, passthrough, squash). Defaults to mapped.
    readonly boolean
    Whether the filesystem should be mounted read-only in the guest. Defaults to true.
    source str
    Host directory path to share.
    target str
    Mount tag visible in the guest (used to mount the filesystem).
    accessmode str
    Access mode (mapped, passthrough, squash). Defaults to mapped.
    readonly bool
    Whether the filesystem should be mounted read-only in the guest. Defaults to true.
    source String
    Host directory path to share.
    target String
    Mount tag visible in the guest (used to mount the filesystem).
    accessmode String
    Access mode (mapped, passthrough, squash). Defaults to mapped.
    readonly Boolean
    Whether the filesystem should be mounted read-only in the guest. Defaults to true.

    DomainDevicesGraphics, DomainDevicesGraphicsArgs

    Spice DomainDevicesGraphicsSpice
    Spice graphics configuration. Mutually exclusive with vnc.
    Vnc DomainDevicesGraphicsVnc
    VNC graphics configuration. Mutually exclusive with spice.
    Spice DomainDevicesGraphicsSpice
    Spice graphics configuration. Mutually exclusive with vnc.
    Vnc DomainDevicesGraphicsVnc
    VNC graphics configuration. Mutually exclusive with spice.
    spice DomainDevicesGraphicsSpice
    Spice graphics configuration. Mutually exclusive with vnc.
    vnc DomainDevicesGraphicsVnc
    VNC graphics configuration. Mutually exclusive with spice.
    spice DomainDevicesGraphicsSpice
    Spice graphics configuration. Mutually exclusive with vnc.
    vnc DomainDevicesGraphicsVnc
    VNC graphics configuration. Mutually exclusive with spice.
    spice DomainDevicesGraphicsSpice
    Spice graphics configuration. Mutually exclusive with vnc.
    vnc DomainDevicesGraphicsVnc
    VNC graphics configuration. Mutually exclusive with spice.
    spice Property Map
    Spice graphics configuration. Mutually exclusive with vnc.
    vnc Property Map
    VNC graphics configuration. Mutually exclusive with spice.

    DomainDevicesGraphicsSpice, DomainDevicesGraphicsSpiceArgs

    Autoport string
    Auto-allocate port (yes/no). Optional.
    Listen string
    Listen address for Spice server. Optional.
    Port double
    TCP port for Spice server. Use -1 for auto. Optional.
    Tlsport double
    TLS port for Spice server. Optional.
    Autoport string
    Auto-allocate port (yes/no). Optional.
    Listen string
    Listen address for Spice server. Optional.
    Port float64
    TCP port for Spice server. Use -1 for auto. Optional.
    Tlsport float64
    TLS port for Spice server. Optional.
    autoport String
    Auto-allocate port (yes/no). Optional.
    listen String
    Listen address for Spice server. Optional.
    port Double
    TCP port for Spice server. Use -1 for auto. Optional.
    tlsport Double
    TLS port for Spice server. Optional.
    autoport string
    Auto-allocate port (yes/no). Optional.
    listen string
    Listen address for Spice server. Optional.
    port number
    TCP port for Spice server. Use -1 for auto. Optional.
    tlsport number
    TLS port for Spice server. Optional.
    autoport str
    Auto-allocate port (yes/no). Optional.
    listen str
    Listen address for Spice server. Optional.
    port float
    TCP port for Spice server. Use -1 for auto. Optional.
    tlsport float
    TLS port for Spice server. Optional.
    autoport String
    Auto-allocate port (yes/no). Optional.
    listen String
    Listen address for Spice server. Optional.
    port Number
    TCP port for Spice server. Use -1 for auto. Optional.
    tlsport Number
    TLS port for Spice server. Optional.

    DomainDevicesGraphicsVnc, DomainDevicesGraphicsVncArgs

    Autoport string
    Auto-allocate port (yes/no). Optional.
    Listen string
    Listen address for VNC server. Optional.
    Port double
    TCP port for VNC server. Use -1 for auto. Optional.
    Socket string
    UNIX socket path for VNC server. Optional.
    Websocket double
    WebSocket port for VNC. Optional.
    Autoport string
    Auto-allocate port (yes/no). Optional.
    Listen string
    Listen address for VNC server. Optional.
    Port float64
    TCP port for VNC server. Use -1 for auto. Optional.
    Socket string
    UNIX socket path for VNC server. Optional.
    Websocket float64
    WebSocket port for VNC. Optional.
    autoport String
    Auto-allocate port (yes/no). Optional.
    listen String
    Listen address for VNC server. Optional.
    port Double
    TCP port for VNC server. Use -1 for auto. Optional.
    socket String
    UNIX socket path for VNC server. Optional.
    websocket Double
    WebSocket port for VNC. Optional.
    autoport string
    Auto-allocate port (yes/no). Optional.
    listen string
    Listen address for VNC server. Optional.
    port number
    TCP port for VNC server. Use -1 for auto. Optional.
    socket string
    UNIX socket path for VNC server. Optional.
    websocket number
    WebSocket port for VNC. Optional.
    autoport str
    Auto-allocate port (yes/no). Optional.
    listen str
    Listen address for VNC server. Optional.
    port float
    TCP port for VNC server. Use -1 for auto. Optional.
    socket str
    UNIX socket path for VNC server. Optional.
    websocket float
    WebSocket port for VNC. Optional.
    autoport String
    Auto-allocate port (yes/no). Optional.
    listen String
    Listen address for VNC server. Optional.
    port Number
    TCP port for VNC server. Use -1 for auto. Optional.
    socket String
    UNIX socket path for VNC server. Optional.
    websocket Number
    WebSocket port for VNC. Optional.

    DomainDevicesInterface, DomainDevicesInterfaceArgs

    Type string
    Interface type (network, bridge, user, direct, etc.).
    Mac string
    MAC address for the interface.
    Model string
    Device model (virtio, e1000, rtl8139, etc.).
    Source DomainDevicesInterfaceSource
    Interface source configuration.
    WaitForIp DomainDevicesInterfaceWaitForIp
    Type string
    Interface type (network, bridge, user, direct, etc.).
    Mac string
    MAC address for the interface.
    Model string
    Device model (virtio, e1000, rtl8139, etc.).
    Source DomainDevicesInterfaceSource
    Interface source configuration.
    WaitForIp DomainDevicesInterfaceWaitForIp
    type String
    Interface type (network, bridge, user, direct, etc.).
    mac String
    MAC address for the interface.
    model String
    Device model (virtio, e1000, rtl8139, etc.).
    source DomainDevicesInterfaceSource
    Interface source configuration.
    waitForIp DomainDevicesInterfaceWaitForIp
    type string
    Interface type (network, bridge, user, direct, etc.).
    mac string
    MAC address for the interface.
    model string
    Device model (virtio, e1000, rtl8139, etc.).
    source DomainDevicesInterfaceSource
    Interface source configuration.
    waitForIp DomainDevicesInterfaceWaitForIp
    type str
    Interface type (network, bridge, user, direct, etc.).
    mac str
    MAC address for the interface.
    model str
    Device model (virtio, e1000, rtl8139, etc.).
    source DomainDevicesInterfaceSource
    Interface source configuration.
    wait_for_ip DomainDevicesInterfaceWaitForIp
    type String
    Interface type (network, bridge, user, direct, etc.).
    mac String
    MAC address for the interface.
    model String
    Device model (virtio, e1000, rtl8139, etc.).
    source Property Map
    Interface source configuration.
    waitForIp Property Map

    DomainDevicesInterfaceSource, DomainDevicesInterfaceSourceArgs

    Bridge string
    Bridge name (for type=bridge).
    Dev string
    Device name (for type=user or type=direct).
    Mode string
    Direct mode (for type=direct). Options: bridge, vepa, private, passthrough.
    Network string
    Network name (for type=network).
    Portgroup string
    Port group name (for type=network).
    Bridge string
    Bridge name (for type=bridge).
    Dev string
    Device name (for type=user or type=direct).
    Mode string
    Direct mode (for type=direct). Options: bridge, vepa, private, passthrough.
    Network string
    Network name (for type=network).
    Portgroup string
    Port group name (for type=network).
    bridge String
    Bridge name (for type=bridge).
    dev String
    Device name (for type=user or type=direct).
    mode String
    Direct mode (for type=direct). Options: bridge, vepa, private, passthrough.
    network String
    Network name (for type=network).
    portgroup String
    Port group name (for type=network).
    bridge string
    Bridge name (for type=bridge).
    dev string
    Device name (for type=user or type=direct).
    mode string
    Direct mode (for type=direct). Options: bridge, vepa, private, passthrough.
    network string
    Network name (for type=network).
    portgroup string
    Port group name (for type=network).
    bridge str
    Bridge name (for type=bridge).
    dev str
    Device name (for type=user or type=direct).
    mode str
    Direct mode (for type=direct). Options: bridge, vepa, private, passthrough.
    network str
    Network name (for type=network).
    portgroup str
    Port group name (for type=network).
    bridge String
    Bridge name (for type=bridge).
    dev String
    Device name (for type=user or type=direct).
    mode String
    Direct mode (for type=direct). Options: bridge, vepa, private, passthrough.
    network String
    Network name (for type=network).
    portgroup String
    Port group name (for type=network).

    DomainDevicesInterfaceWaitForIp, DomainDevicesInterfaceWaitForIpArgs

    Source string
    Source to query for IP addresses: 'lease' (DHCP), 'agent' (qemu-guest-agent), or 'any' (try both). Default: 'any'.
    Timeout double
    Maximum time to wait for IP address in seconds. Default: 300 (5 minutes).
    Source string
    Source to query for IP addresses: 'lease' (DHCP), 'agent' (qemu-guest-agent), or 'any' (try both). Default: 'any'.
    Timeout float64
    Maximum time to wait for IP address in seconds. Default: 300 (5 minutes).
    source String
    Source to query for IP addresses: 'lease' (DHCP), 'agent' (qemu-guest-agent), or 'any' (try both). Default: 'any'.
    timeout Double
    Maximum time to wait for IP address in seconds. Default: 300 (5 minutes).
    source string
    Source to query for IP addresses: 'lease' (DHCP), 'agent' (qemu-guest-agent), or 'any' (try both). Default: 'any'.
    timeout number
    Maximum time to wait for IP address in seconds. Default: 300 (5 minutes).
    source str
    Source to query for IP addresses: 'lease' (DHCP), 'agent' (qemu-guest-agent), or 'any' (try both). Default: 'any'.
    timeout float
    Maximum time to wait for IP address in seconds. Default: 300 (5 minutes).
    source String
    Source to query for IP addresses: 'lease' (DHCP), 'agent' (qemu-guest-agent), or 'any' (try both). Default: 'any'.
    timeout Number
    Maximum time to wait for IP address in seconds. Default: 300 (5 minutes).

    DomainDevicesRng, DomainDevicesRngArgs

    Device string
    Backend random device path (e.g., /dev/random, /dev/urandom, /dev/hwrng). Defaults to /dev/urandom.
    Model string
    RNG device model (virtio, virtio-transitional, virtio-non-transitional). Defaults to virtio.
    Device string
    Backend random device path (e.g., /dev/random, /dev/urandom, /dev/hwrng). Defaults to /dev/urandom.
    Model string
    RNG device model (virtio, virtio-transitional, virtio-non-transitional). Defaults to virtio.
    device String
    Backend random device path (e.g., /dev/random, /dev/urandom, /dev/hwrng). Defaults to /dev/urandom.
    model String
    RNG device model (virtio, virtio-transitional, virtio-non-transitional). Defaults to virtio.
    device string
    Backend random device path (e.g., /dev/random, /dev/urandom, /dev/hwrng). Defaults to /dev/urandom.
    model string
    RNG device model (virtio, virtio-transitional, virtio-non-transitional). Defaults to virtio.
    device str
    Backend random device path (e.g., /dev/random, /dev/urandom, /dev/hwrng). Defaults to /dev/urandom.
    model str
    RNG device model (virtio, virtio-transitional, virtio-non-transitional). Defaults to virtio.
    device String
    Backend random device path (e.g., /dev/random, /dev/urandom, /dev/hwrng). Defaults to /dev/urandom.
    model String
    RNG device model (virtio, virtio-transitional, virtio-non-transitional). Defaults to virtio.

    DomainDevicesSerial, DomainDevicesSerialArgs

    SourcePath string
    Source path for file or unix socket types. Optional.
    TargetPort double
    Target port number. Optional.
    TargetType string
    Target type (isa-serial, usb-serial, pci-serial, etc.). Optional.
    Type string
    Serial source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    SourcePath string
    Source path for file or unix socket types. Optional.
    TargetPort float64
    Target port number. Optional.
    TargetType string
    Target type (isa-serial, usb-serial, pci-serial, etc.). Optional.
    Type string
    Serial source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    sourcePath String
    Source path for file or unix socket types. Optional.
    targetPort Double
    Target port number. Optional.
    targetType String
    Target type (isa-serial, usb-serial, pci-serial, etc.). Optional.
    type String
    Serial source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    sourcePath string
    Source path for file or unix socket types. Optional.
    targetPort number
    Target port number. Optional.
    targetType string
    Target type (isa-serial, usb-serial, pci-serial, etc.). Optional.
    type string
    Serial source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    source_path str
    Source path for file or unix socket types. Optional.
    target_port float
    Target port number. Optional.
    target_type str
    Target type (isa-serial, usb-serial, pci-serial, etc.). Optional.
    type str
    Serial source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
    sourcePath String
    Source path for file or unix socket types. Optional.
    targetPort Number
    Target port number. Optional.
    targetType String
    Target type (isa-serial, usb-serial, pci-serial, etc.). Optional.
    type String
    Serial source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.

    DomainDevicesTpm, DomainDevicesTpmArgs

    BackendDevicePath string
    Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
    BackendEncryptionSecret string
    UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
    BackendPersistentState bool
    Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
    BackendType string
    TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
    BackendVersion string
    TPM backend version (e.g., '2.0'). Only used with backend_type='emulator'.
    Model string
    TPM device model (e.g., 'tpm-tis', 'tpm-crb', 'tpm-spapr').
    BackendDevicePath string
    Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
    BackendEncryptionSecret string
    UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
    BackendPersistentState bool
    Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
    BackendType string
    TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
    BackendVersion string
    TPM backend version (e.g., '2.0'). Only used with backend_type='emulator'.
    Model string
    TPM device model (e.g., 'tpm-tis', 'tpm-crb', 'tpm-spapr').
    backendDevicePath String
    Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
    backendEncryptionSecret String
    UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
    backendPersistentState Boolean
    Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
    backendType String
    TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
    backendVersion String
    TPM backend version (e.g., '2.0'). Only used with backend_type='emulator'.
    model String
    TPM device model (e.g., 'tpm-tis', 'tpm-crb', 'tpm-spapr').
    backendDevicePath string
    Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
    backendEncryptionSecret string
    UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
    backendPersistentState boolean
    Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
    backendType string
    TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
    backendVersion string
    TPM backend version (e.g., '2.0'). Only used with backend_type='emulator'.
    model string
    TPM device model (e.g., 'tpm-tis', 'tpm-crb', 'tpm-spapr').
    backend_device_path str
    Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
    backend_encryption_secret str
    UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
    backend_persistent_state bool
    Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
    backend_type str
    TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
    backend_version str
    TPM backend version (e.g., '2.0'). Only used with backend_type='emulator'.
    model str
    TPM device model (e.g., 'tpm-tis', 'tpm-crb', 'tpm-spapr').
    backendDevicePath String
    Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
    backendEncryptionSecret String
    UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
    backendPersistentState Boolean
    Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
    backendType String
    TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
    backendVersion String
    TPM backend version (e.g., '2.0'). Only used with backend_type='emulator'.
    model String
    TPM device model (e.g., 'tpm-tis', 'tpm-crb', 'tpm-spapr').

    DomainDevicesVideo, DomainDevicesVideoArgs

    Type string
    Video device model type (e.g., cirrus, vga, qxl, virtio, vbox, vmvga, gop). Optional.
    Type string
    Video device model type (e.g., cirrus, vga, qxl, virtio, vbox, vmvga, gop). Optional.
    type String
    Video device model type (e.g., cirrus, vga, qxl, virtio, vbox, vmvga, gop). Optional.
    type string
    Video device model type (e.g., cirrus, vga, qxl, virtio, vbox, vmvga, gop). Optional.
    type str
    Video device model type (e.g., cirrus, vga, qxl, virtio, vbox, vmvga, gop). Optional.
    type String
    Video device model type (e.g., cirrus, vga, qxl, virtio, vbox, vmvga, gop). Optional.

    DomainFeatures, DomainFeaturesArgs

    Acpi bool
    ACPI support.
    Apic bool
    APIC support.
    CcfAssist string
    CCF Assist (on, off).
    GicVersion string
    GIC version for ARM guests.
    Hap string
    Hardware Assisted Paging (on, off).
    Htm string
    Hardware Transactional Memory (on, off).
    IoapicDriver string
    IOAPIC driver (kvm, qemu).
    NestedHv string
    Nested HV (on, off).
    Pae bool
    Physical Address Extension mode.
    Pmu string
    Performance Monitoring Unit (on, off).
    Privnet bool
    Private network namespace.
    Ps2 string
    PS/2 controller (on, off).
    Pvspinlock string
    Paravirtualized spinlock prevention (on, off).
    Ras string
    Reliability, Availability and Serviceability (on, off).
    Viridian bool
    Viridian enlightenments for Windows guests.
    Vmcoreinfo string
    VM crash information (on, off).
    Vmport string
    VMware IO port emulation (on, off, auto).
    Acpi bool
    ACPI support.
    Apic bool
    APIC support.
    CcfAssist string
    CCF Assist (on, off).
    GicVersion string
    GIC version for ARM guests.
    Hap string
    Hardware Assisted Paging (on, off).
    Htm string
    Hardware Transactional Memory (on, off).
    IoapicDriver string
    IOAPIC driver (kvm, qemu).
    NestedHv string
    Nested HV (on, off).
    Pae bool
    Physical Address Extension mode.
    Pmu string
    Performance Monitoring Unit (on, off).
    Privnet bool
    Private network namespace.
    Ps2 string
    PS/2 controller (on, off).
    Pvspinlock string
    Paravirtualized spinlock prevention (on, off).
    Ras string
    Reliability, Availability and Serviceability (on, off).
    Viridian bool
    Viridian enlightenments for Windows guests.
    Vmcoreinfo string
    VM crash information (on, off).
    Vmport string
    VMware IO port emulation (on, off, auto).
    acpi Boolean
    ACPI support.
    apic Boolean
    APIC support.
    ccfAssist String
    CCF Assist (on, off).
    gicVersion String
    GIC version for ARM guests.
    hap String
    Hardware Assisted Paging (on, off).
    htm String
    Hardware Transactional Memory (on, off).
    ioapicDriver String
    IOAPIC driver (kvm, qemu).
    nestedHv String
    Nested HV (on, off).
    pae Boolean
    Physical Address Extension mode.
    pmu String
    Performance Monitoring Unit (on, off).
    privnet Boolean
    Private network namespace.
    ps2 String
    PS/2 controller (on, off).
    pvspinlock String
    Paravirtualized spinlock prevention (on, off).
    ras String
    Reliability, Availability and Serviceability (on, off).
    viridian Boolean
    Viridian enlightenments for Windows guests.
    vmcoreinfo String
    VM crash information (on, off).
    vmport String
    VMware IO port emulation (on, off, auto).
    acpi boolean
    ACPI support.
    apic boolean
    APIC support.
    ccfAssist string
    CCF Assist (on, off).
    gicVersion string
    GIC version for ARM guests.
    hap string
    Hardware Assisted Paging (on, off).
    htm string
    Hardware Transactional Memory (on, off).
    ioapicDriver string
    IOAPIC driver (kvm, qemu).
    nestedHv string
    Nested HV (on, off).
    pae boolean
    Physical Address Extension mode.
    pmu string
    Performance Monitoring Unit (on, off).
    privnet boolean
    Private network namespace.
    ps2 string
    PS/2 controller (on, off).
    pvspinlock string
    Paravirtualized spinlock prevention (on, off).
    ras string
    Reliability, Availability and Serviceability (on, off).
    viridian boolean
    Viridian enlightenments for Windows guests.
    vmcoreinfo string
    VM crash information (on, off).
    vmport string
    VMware IO port emulation (on, off, auto).
    acpi bool
    ACPI support.
    apic bool
    APIC support.
    ccf_assist str
    CCF Assist (on, off).
    gic_version str
    GIC version for ARM guests.
    hap str
    Hardware Assisted Paging (on, off).
    htm str
    Hardware Transactional Memory (on, off).
    ioapic_driver str
    IOAPIC driver (kvm, qemu).
    nested_hv str
    Nested HV (on, off).
    pae bool
    Physical Address Extension mode.
    pmu str
    Performance Monitoring Unit (on, off).
    privnet bool
    Private network namespace.
    ps2 str
    PS/2 controller (on, off).
    pvspinlock str
    Paravirtualized spinlock prevention (on, off).
    ras str
    Reliability, Availability and Serviceability (on, off).
    viridian bool
    Viridian enlightenments for Windows guests.
    vmcoreinfo str
    VM crash information (on, off).
    vmport str
    VMware IO port emulation (on, off, auto).
    acpi Boolean
    ACPI support.
    apic Boolean
    APIC support.
    ccfAssist String
    CCF Assist (on, off).
    gicVersion String
    GIC version for ARM guests.
    hap String
    Hardware Assisted Paging (on, off).
    htm String
    Hardware Transactional Memory (on, off).
    ioapicDriver String
    IOAPIC driver (kvm, qemu).
    nestedHv String
    Nested HV (on, off).
    pae Boolean
    Physical Address Extension mode.
    pmu String
    Performance Monitoring Unit (on, off).
    privnet Boolean
    Private network namespace.
    ps2 String
    PS/2 controller (on, off).
    pvspinlock String
    Paravirtualized spinlock prevention (on, off).
    ras String
    Reliability, Availability and Serviceability (on, off).
    viridian Boolean
    Viridian enlightenments for Windows guests.
    vmcoreinfo String
    VM crash information (on, off).
    vmport String
    VMware IO port emulation (on, off, auto).

    DomainOs, DomainOsArgs

    Type string
    OS type (e.g., 'hvm' for fully virtualized, 'linux' for paravirtualized).
    Arch string
    CPU architecture (e.g., 'x86_64', 'aarch64').
    BootDevices List<string>
    Ordered list of boot devices (e.g., 'hd', 'network', 'cdrom'). If not specified, libvirt may add default boot devices.
    Firmware string
    Firmware type (e.g., 'efi', 'bios').
    Initrd string
    Path to initrd image for direct kernel boot.
    Kernel string
    Path to kernel image for direct kernel boot.
    KernelArgs string
    Kernel command line arguments.
    LoaderPath string
    Path to UEFI firmware loader.
    LoaderReadonly bool
    Whether the UEFI firmware is read-only.
    LoaderType string
    Loader type ('rom' or 'pflash').
    Machine string
    Machine type (e.g., 'pc', 'q35'). Note: This value represents what you want, but libvirt may internally expand it to a versioned type.
    Nvram DomainOsNvram
    NVRAM configuration for UEFI.
    Type string
    OS type (e.g., 'hvm' for fully virtualized, 'linux' for paravirtualized).
    Arch string
    CPU architecture (e.g., 'x86_64', 'aarch64').
    BootDevices []string
    Ordered list of boot devices (e.g., 'hd', 'network', 'cdrom'). If not specified, libvirt may add default boot devices.
    Firmware string
    Firmware type (e.g., 'efi', 'bios').
    Initrd string
    Path to initrd image for direct kernel boot.
    Kernel string
    Path to kernel image for direct kernel boot.
    KernelArgs string
    Kernel command line arguments.
    LoaderPath string
    Path to UEFI firmware loader.
    LoaderReadonly bool
    Whether the UEFI firmware is read-only.
    LoaderType string
    Loader type ('rom' or 'pflash').
    Machine string
    Machine type (e.g., 'pc', 'q35'). Note: This value represents what you want, but libvirt may internally expand it to a versioned type.
    Nvram DomainOsNvram
    NVRAM configuration for UEFI.
    type String
    OS type (e.g., 'hvm' for fully virtualized, 'linux' for paravirtualized).
    arch String
    CPU architecture (e.g., 'x86_64', 'aarch64').
    bootDevices List<String>
    Ordered list of boot devices (e.g., 'hd', 'network', 'cdrom'). If not specified, libvirt may add default boot devices.
    firmware String
    Firmware type (e.g., 'efi', 'bios').
    initrd String
    Path to initrd image for direct kernel boot.
    kernel String
    Path to kernel image for direct kernel boot.
    kernelArgs String
    Kernel command line arguments.
    loaderPath String
    Path to UEFI firmware loader.
    loaderReadonly Boolean
    Whether the UEFI firmware is read-only.
    loaderType String
    Loader type ('rom' or 'pflash').
    machine String
    Machine type (e.g., 'pc', 'q35'). Note: This value represents what you want, but libvirt may internally expand it to a versioned type.
    nvram DomainOsNvram
    NVRAM configuration for UEFI.
    type string
    OS type (e.g., 'hvm' for fully virtualized, 'linux' for paravirtualized).
    arch string
    CPU architecture (e.g., 'x86_64', 'aarch64').
    bootDevices string[]
    Ordered list of boot devices (e.g., 'hd', 'network', 'cdrom'). If not specified, libvirt may add default boot devices.
    firmware string
    Firmware type (e.g., 'efi', 'bios').
    initrd string
    Path to initrd image for direct kernel boot.
    kernel string
    Path to kernel image for direct kernel boot.
    kernelArgs string
    Kernel command line arguments.
    loaderPath string
    Path to UEFI firmware loader.
    loaderReadonly boolean
    Whether the UEFI firmware is read-only.
    loaderType string
    Loader type ('rom' or 'pflash').
    machine string
    Machine type (e.g., 'pc', 'q35'). Note: This value represents what you want, but libvirt may internally expand it to a versioned type.
    nvram DomainOsNvram
    NVRAM configuration for UEFI.
    type str
    OS type (e.g., 'hvm' for fully virtualized, 'linux' for paravirtualized).
    arch str
    CPU architecture (e.g., 'x86_64', 'aarch64').
    boot_devices Sequence[str]
    Ordered list of boot devices (e.g., 'hd', 'network', 'cdrom'). If not specified, libvirt may add default boot devices.
    firmware str
    Firmware type (e.g., 'efi', 'bios').
    initrd str
    Path to initrd image for direct kernel boot.
    kernel str
    Path to kernel image for direct kernel boot.
    kernel_args str
    Kernel command line arguments.
    loader_path str
    Path to UEFI firmware loader.
    loader_readonly bool
    Whether the UEFI firmware is read-only.
    loader_type str
    Loader type ('rom' or 'pflash').
    machine str
    Machine type (e.g., 'pc', 'q35'). Note: This value represents what you want, but libvirt may internally expand it to a versioned type.
    nvram DomainOsNvram
    NVRAM configuration for UEFI.
    type String
    OS type (e.g., 'hvm' for fully virtualized, 'linux' for paravirtualized).
    arch String
    CPU architecture (e.g., 'x86_64', 'aarch64').
    bootDevices List<String>
    Ordered list of boot devices (e.g., 'hd', 'network', 'cdrom'). If not specified, libvirt may add default boot devices.
    firmware String
    Firmware type (e.g., 'efi', 'bios').
    initrd String
    Path to initrd image for direct kernel boot.
    kernel String
    Path to kernel image for direct kernel boot.
    kernelArgs String
    Kernel command line arguments.
    loaderPath String
    Path to UEFI firmware loader.
    loaderReadonly Boolean
    Whether the UEFI firmware is read-only.
    loaderType String
    Loader type ('rom' or 'pflash').
    machine String
    Machine type (e.g., 'pc', 'q35'). Note: This value represents what you want, but libvirt may internally expand it to a versioned type.
    nvram Property Map
    NVRAM configuration for UEFI.

    DomainOsNvram, DomainOsNvramArgs

    Format string
    Format of the NVRAM file (e.g., 'raw', 'qcow2').
    Path string
    Path to the NVRAM file for the domain. Mutually exclusive with source.
    Source DomainOsNvramSource
    NVRAM source configuration for volume-based NVRAM. Mutually exclusive with path.
    Template string
    Path to NVRAM template file for UEFI variable store. This template is copied to create the domain's NVRAM.
    TemplateFormat string
    Format of the template file (e.g., 'raw', 'qcow2').
    Format string
    Format of the NVRAM file (e.g., 'raw', 'qcow2').
    Path string
    Path to the NVRAM file for the domain. Mutually exclusive with source.
    Source DomainOsNvramSource
    NVRAM source configuration for volume-based NVRAM. Mutually exclusive with path.
    Template string
    Path to NVRAM template file for UEFI variable store. This template is copied to create the domain's NVRAM.
    TemplateFormat string
    Format of the template file (e.g., 'raw', 'qcow2').
    format String
    Format of the NVRAM file (e.g., 'raw', 'qcow2').
    path String
    Path to the NVRAM file for the domain. Mutually exclusive with source.
    source DomainOsNvramSource
    NVRAM source configuration for volume-based NVRAM. Mutually exclusive with path.
    template String
    Path to NVRAM template file for UEFI variable store. This template is copied to create the domain's NVRAM.
    templateFormat String
    Format of the template file (e.g., 'raw', 'qcow2').
    format string
    Format of the NVRAM file (e.g., 'raw', 'qcow2').
    path string
    Path to the NVRAM file for the domain. Mutually exclusive with source.
    source DomainOsNvramSource
    NVRAM source configuration for volume-based NVRAM. Mutually exclusive with path.
    template string
    Path to NVRAM template file for UEFI variable store. This template is copied to create the domain's NVRAM.
    templateFormat string
    Format of the template file (e.g., 'raw', 'qcow2').
    format str
    Format of the NVRAM file (e.g., 'raw', 'qcow2').
    path str
    Path to the NVRAM file for the domain. Mutually exclusive with source.
    source DomainOsNvramSource
    NVRAM source configuration for volume-based NVRAM. Mutually exclusive with path.
    template str
    Path to NVRAM template file for UEFI variable store. This template is copied to create the domain's NVRAM.
    template_format str
    Format of the template file (e.g., 'raw', 'qcow2').
    format String
    Format of the NVRAM file (e.g., 'raw', 'qcow2').
    path String
    Path to the NVRAM file for the domain. Mutually exclusive with source.
    source Property Map
    NVRAM source configuration for volume-based NVRAM. Mutually exclusive with path.
    template String
    Path to NVRAM template file for UEFI variable store. This template is copied to create the domain's NVRAM.
    templateFormat String
    Format of the template file (e.g., 'raw', 'qcow2').

    DomainOsNvramSource, DomainOsNvramSourceArgs

    Block string
    Block device path. Mutually exclusive with pool/volume and file.
    File string
    Path to NVRAM file. Mutually exclusive with pool/volume and block.
    Pool string
    Storage pool name for volume-based NVRAM. Use with 'volume'.
    Volume string
    Volume name in the storage pool. Use with 'pool'.
    Block string
    Block device path. Mutually exclusive with pool/volume and file.
    File string
    Path to NVRAM file. Mutually exclusive with pool/volume and block.
    Pool string
    Storage pool name for volume-based NVRAM. Use with 'volume'.
    Volume string
    Volume name in the storage pool. Use with 'pool'.
    block String
    Block device path. Mutually exclusive with pool/volume and file.
    file String
    Path to NVRAM file. Mutually exclusive with pool/volume and block.
    pool String
    Storage pool name for volume-based NVRAM. Use with 'volume'.
    volume String
    Volume name in the storage pool. Use with 'pool'.
    block string
    Block device path. Mutually exclusive with pool/volume and file.
    file string
    Path to NVRAM file. Mutually exclusive with pool/volume and block.
    pool string
    Storage pool name for volume-based NVRAM. Use with 'volume'.
    volume string
    Volume name in the storage pool. Use with 'pool'.
    block str
    Block device path. Mutually exclusive with pool/volume and file.
    file str
    Path to NVRAM file. Mutually exclusive with pool/volume and block.
    pool str
    Storage pool name for volume-based NVRAM. Use with 'volume'.
    volume str
    Volume name in the storage pool. Use with 'pool'.
    block String
    Block device path. Mutually exclusive with pool/volume and file.
    file String
    Path to NVRAM file. Mutually exclusive with pool/volume and block.
    pool String
    Storage pool name for volume-based NVRAM. Use with 'volume'.
    volume String
    Volume name in the storage pool. Use with 'pool'.

    DomainPm, DomainPmArgs

    SuspendToDisk string
    Suspend to disk policy (yes, no).
    SuspendToMem string
    Suspend to memory policy (yes, no).
    SuspendToDisk string
    Suspend to disk policy (yes, no).
    SuspendToMem string
    Suspend to memory policy (yes, no).
    suspendToDisk String
    Suspend to disk policy (yes, no).
    suspendToMem String
    Suspend to memory policy (yes, no).
    suspendToDisk string
    Suspend to disk policy (yes, no).
    suspendToMem string
    Suspend to memory policy (yes, no).
    suspend_to_disk str
    Suspend to disk policy (yes, no).
    suspend_to_mem str
    Suspend to memory policy (yes, no).
    suspendToDisk String
    Suspend to disk policy (yes, no).
    suspendToMem String
    Suspend to memory policy (yes, no).

    Package Details

    Repository
    libvirt dmacvicar/terraform-provider-libvirt
    License
    Notes
    This Pulumi package is based on the libvirt Terraform Provider.
    libvirt logo
    libvirt 0.9.0 published on Saturday, Nov 8, 2025 by dmacvicar
      Meet Neo: Your AI Platform Teammate