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).
- Bootloader
Args string - Arguments to pass to bootloader.
- Clock
Domain
Clock - Clock configuration for the domain.
- Cpu
Domain
Cpu - CPU configuration for the domain.
- Create
Domain
Create - Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
- Current
Memory double - Actual memory allocation at boot time. If not set, defaults to memory value.
- Description string
- Human-readable description of the domain.
- Destroy
Domain
Destroy - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- Devices
Domain
Devices - Devices attached to the domain (disks, network interfaces, etc.).
- Features
Domain
Features - Hypervisor features to enable.
- Hwuuid string
- Hardware UUID for the domain.
- Iothreads double
- Number of I/O threads for virtio disks.
- Max
Memory double - Maximum memory for hotplug. Must be >= memory.
- Max
Memory doubleSlots - 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.
- On
Crash string - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- On
Poweroff string - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- On
Reboot string - Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
- Os
Domain
Os - Operating system configuration for the domain.
- Pm
Domain
Pm - 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).
- Bootloader
Args string - Arguments to pass to bootloader.
- Clock
Domain
Clock Args - Clock configuration for the domain.
- Cpu
Domain
Cpu Args - CPU configuration for the domain.
- Create
Domain
Create Args - Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
- Current
Memory float64 - Actual memory allocation at boot time. If not set, defaults to memory value.
- Description string
- Human-readable description of the domain.
- Destroy
Domain
Destroy Args - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- Devices
Domain
Devices Args - Devices attached to the domain (disks, network interfaces, etc.).
- Features
Domain
Features Args - Hypervisor features to enable.
- Hwuuid string
- Hardware UUID for the domain.
- Iothreads float64
- Number of I/O threads for virtio disks.
- Max
Memory float64 - Maximum memory for hotplug. Must be >= memory.
- Max
Memory float64Slots - 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.
- On
Crash string - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- On
Poweroff string - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- On
Reboot string - Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
- Os
Domain
Os Args - Operating system configuration for the domain.
- Pm
Domain
Pm Args - 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).
- bootloader
Args String - Arguments to pass to bootloader.
- clock
Domain
Clock - Clock configuration for the domain.
- cpu
Domain
Cpu - CPU configuration for the domain.
- create
Domain
Create - Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
- current
Memory Double - Actual memory allocation at boot time. If not set, defaults to memory value.
- description String
- Human-readable description of the domain.
- destroy
Domain
Destroy - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- devices
Domain
Devices - Devices attached to the domain (disks, network interfaces, etc.).
- features
Domain
Features - Hypervisor features to enable.
- hwuuid String
- Hardware UUID for the domain.
- iothreads Double
- Number of I/O threads for virtio disks.
- max
Memory Double - Maximum memory for hotplug. Must be >= memory.
- max
Memory DoubleSlots - 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.
- on
Crash String - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- on
Poweroff String - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- on
Reboot String - Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
- os
Domain
Os - Operating system configuration for the domain.
- pm
Domain
Pm - 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).
- bootloader
Args string - Arguments to pass to bootloader.
- clock
Domain
Clock - Clock configuration for the domain.
- cpu
Domain
Cpu - CPU configuration for the domain.
- create
Domain
Create - Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
- current
Memory number - Actual memory allocation at boot time. If not set, defaults to memory value.
- description string
- Human-readable description of the domain.
- destroy
Domain
Destroy - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- devices
Domain
Devices - Devices attached to the domain (disks, network interfaces, etc.).
- features
Domain
Features - Hypervisor features to enable.
- hwuuid string
- Hardware UUID for the domain.
- iothreads number
- Number of I/O threads for virtio disks.
- max
Memory number - Maximum memory for hotplug. Must be >= memory.
- max
Memory numberSlots - 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.
- on
Crash string - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- on
Poweroff string - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- on
Reboot string - Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
- os
Domain
Os - Operating system configuration for the domain.
- pm
Domain
Pm - 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
Domain
Clock Args - Clock configuration for the domain.
- cpu
Domain
Cpu Args - CPU configuration for the domain.
- create
Domain
Create Args - 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
Domain
Destroy Args - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- devices
Domain
Devices Args - Devices attached to the domain (disks, network interfaces, etc.).
- features
Domain
Features Args - 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_ floatslots - 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
Domain
Os Args - Operating system configuration for the domain.
- pm
Domain
Pm Args - 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).
- bootloader
Args 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.
- current
Memory 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.
- max
Memory Number - Maximum memory for hotplug. Must be >= memory.
- max
Memory NumberSlots - 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.
- on
Crash String - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- on
Poweroff String - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- on
Reboot 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) -> Domainfunc 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.
- Autostart bool
- Whether the domain should be started automatically when the host boots.
- Bootloader string
- Bootloader path for paravirtualized guests (Xen).
- Bootloader
Args string - Arguments to pass to bootloader.
- Clock
Domain
Clock - Clock configuration for the domain.
- Cpu
Domain
Cpu - CPU configuration for the domain.
- Create
Domain
Create - Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
- Current
Memory double - Actual memory allocation at boot time. If not set, defaults to memory value.
- Description string
- Human-readable description of the domain.
- Destroy
Domain
Destroy - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- Devices
Domain
Devices - Devices attached to the domain (disks, network interfaces, etc.).
- Features
Domain
Features - Hypervisor features to enable.
- Hwuuid string
- Hardware UUID for the domain.
- Iothreads double
- Number of I/O threads for virtio disks.
- Max
Memory double - Maximum memory for hotplug. Must be >= memory.
- Max
Memory doubleSlots - 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.
- On
Crash string - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- On
Poweroff string - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- On
Reboot string - Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
- Os
Domain
Os - Operating system configuration for the domain.
- Pm
Domain
Pm - 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).
- Bootloader
Args string - Arguments to pass to bootloader.
- Clock
Domain
Clock Args - Clock configuration for the domain.
- Cpu
Domain
Cpu Args - CPU configuration for the domain.
- Create
Domain
Create Args - Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
- Current
Memory float64 - Actual memory allocation at boot time. If not set, defaults to memory value.
- Description string
- Human-readable description of the domain.
- Destroy
Domain
Destroy Args - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- Devices
Domain
Devices Args - Devices attached to the domain (disks, network interfaces, etc.).
- Features
Domain
Features Args - Hypervisor features to enable.
- Hwuuid string
- Hardware UUID for the domain.
- Iothreads float64
- Number of I/O threads for virtio disks.
- Max
Memory float64 - Maximum memory for hotplug. Must be >= memory.
- Max
Memory float64Slots - 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.
- On
Crash string - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- On
Poweroff string - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- On
Reboot string - Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
- Os
Domain
Os Args - Operating system configuration for the domain.
- Pm
Domain
Pm Args - 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).
- bootloader
Args String - Arguments to pass to bootloader.
- clock
Domain
Clock - Clock configuration for the domain.
- cpu
Domain
Cpu - CPU configuration for the domain.
- create
Domain
Create - Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
- current
Memory Double - Actual memory allocation at boot time. If not set, defaults to memory value.
- description String
- Human-readable description of the domain.
- destroy
Domain
Destroy - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- devices
Domain
Devices - Devices attached to the domain (disks, network interfaces, etc.).
- features
Domain
Features - Hypervisor features to enable.
- hwuuid String
- Hardware UUID for the domain.
- iothreads Double
- Number of I/O threads for virtio disks.
- max
Memory Double - Maximum memory for hotplug. Must be >= memory.
- max
Memory DoubleSlots - 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.
- on
Crash String - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- on
Poweroff String - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- on
Reboot String - Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
- os
Domain
Os - Operating system configuration for the domain.
- pm
Domain
Pm - 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).
- bootloader
Args string - Arguments to pass to bootloader.
- clock
Domain
Clock - Clock configuration for the domain.
- cpu
Domain
Cpu - CPU configuration for the domain.
- create
Domain
Create - Domain start flags corresponding to virDomainCreateFlags. Only used when running=true.
- current
Memory number - Actual memory allocation at boot time. If not set, defaults to memory value.
- description string
- Human-readable description of the domain.
- destroy
Domain
Destroy - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- devices
Domain
Devices - Devices attached to the domain (disks, network interfaces, etc.).
- features
Domain
Features - Hypervisor features to enable.
- hwuuid string
- Hardware UUID for the domain.
- iothreads number
- Number of I/O threads for virtio disks.
- max
Memory number - Maximum memory for hotplug. Must be >= memory.
- max
Memory numberSlots - 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.
- on
Crash string - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- on
Poweroff string - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- on
Reboot string - Action to take when guest requests reboot (destroy, restart, preserve, rename-restart).
- os
Domain
Os - Operating system configuration for the domain.
- pm
Domain
Pm - 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
Domain
Clock Args - Clock configuration for the domain.
- cpu
Domain
Cpu Args - CPU configuration for the domain.
- create
Domain
Create Args - 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
Domain
Destroy Args - Domain shutdown behavior. Controls how the domain is stopped when running changes from true to false or when the resource is destroyed.
- devices
Domain
Devices Args - Devices attached to the domain (disks, network interfaces, etc.).
- features
Domain
Features Args - 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_ floatslots - 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
Domain
Os Args - Operating system configuration for the domain.
- pm
Domain
Pm Args - 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).
- bootloader
Args 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.
- current
Memory 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.
- max
Memory Number - Maximum memory for hotplug. Must be >= memory.
- max
Memory NumberSlots - 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.
- on
Crash String - Action to take when guest crashes (destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart).
- on
Poweroff String - Action to take when guest requests poweroff (destroy, restart, preserve, rename-restart).
- on
Reboot 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<Domain
Clock Timer> - 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
[]Domain
Clock Timer - 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<Domain
Clock Timer> - 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
Domain
Clock Timer[] - 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[Domain
Clock Timer] - 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
Domain
Clock Timer Catchup - 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
Domain
Clock Timer Catchup - 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
Domain
Clock Timer Catchup - 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
Domain
Clock Timer Catchup - 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
Domain
Clock Timer Catchup - 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
DomainCpu, DomainCpuArgs
- Check string
- CPU check policy (none, partial, full).
- Deprecated
Features 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).
- Deprecated
Features 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).
- deprecated
Features 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).
- deprecated
Features 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).
- deprecated
Features 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).
- 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 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).
- bypass
Cache Boolean - Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
- force
Boot Boolean - Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
- paused Boolean
- Launch domain in paused state (VIRDOMAINSTART_PAUSED).
- reset
Nvram 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).
- bypass
Cache boolean - Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
- force
Boot boolean - Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
- paused boolean
- Launch domain in paused state (VIRDOMAINSTART_PAUSED).
- reset
Nvram 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).
- bypass
Cache Boolean - Avoid filesystem cache pollution (VIRDOMAINSTARTBYPASSCACHE).
- force
Boot Boolean - Boot domain, discarding any managed save state (VIRDOMAINSTARTFORCEBOOT).
- paused Boolean
- Launch domain in paused state (VIRDOMAINSTART_PAUSED).
- reset
Nvram Boolean - Re-initialize NVRAM from template (VIRDOMAINSTARTRESETNVRAM).
- validate Boolean
- Validate XML document against schema (VIRDOMAINSTART_VALIDATE).
DomainDestroy, DomainDestroyArgs
DomainDevices, DomainDevicesArgs
- Consoles
List<Domain
Devices Console> - Console devices for the domain.
- Disks
List<Domain
Devices Disk> - 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<Domain
Devices Filesystem> - Filesystem devices for sharing host directories with the guest (virtio-9p).
- Graphics
Domain
Devices Graphics - Graphics device for the domain (VNC or Spice). Only one type can be specified.
- Interfaces
List<Domain
Devices Interface> - Network interfaces attached to the domain.
- Rngs
List<Domain
Devices Rng> - Random number generator devices for the domain.
- Serials
List<Domain
Devices Serial> - Serial devices for the domain.
- Tpms
List<Domain
Devices Tpm> - TPM devices for the domain. Only one TPM device is supported per domain.
- Video
Domain
Devices Video - Video device for the domain.
- Consoles
[]Domain
Devices Console - Console devices for the domain.
- Disks
[]Domain
Devices Disk - 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
[]Domain
Devices Filesystem - Filesystem devices for sharing host directories with the guest (virtio-9p).
- Graphics
Domain
Devices Graphics - Graphics device for the domain (VNC or Spice). Only one type can be specified.
- Interfaces
[]Domain
Devices Interface - Network interfaces attached to the domain.
- Rngs
[]Domain
Devices Rng - Random number generator devices for the domain.
- Serials
[]Domain
Devices Serial - Serial devices for the domain.
- Tpms
[]Domain
Devices Tpm - TPM devices for the domain. Only one TPM device is supported per domain.
- Video
Domain
Devices Video - Video device for the domain.
- consoles
List<Domain
Devices Console> - Console devices for the domain.
- disks
List<Domain
Devices Disk> - 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<Domain
Devices Filesystem> - Filesystem devices for sharing host directories with the guest (virtio-9p).
- graphics
Domain
Devices Graphics - Graphics device for the domain (VNC or Spice). Only one type can be specified.
- interfaces
List<Domain
Devices Interface> - Network interfaces attached to the domain.
- rngs
List<Domain
Devices Rng> - Random number generator devices for the domain.
- serials
List<Domain
Devices Serial> - Serial devices for the domain.
- tpms
List<Domain
Devices Tpm> - TPM devices for the domain. Only one TPM device is supported per domain.
- video
Domain
Devices Video - Video device for the domain.
- consoles
Domain
Devices Console[] - Console devices for the domain.
- disks
Domain
Devices Disk[] - 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
Domain
Devices Filesystem[] - Filesystem devices for sharing host directories with the guest (virtio-9p).
- graphics
Domain
Devices Graphics - Graphics device for the domain (VNC or Spice). Only one type can be specified.
- interfaces
Domain
Devices Interface[] - Network interfaces attached to the domain.
- rngs
Domain
Devices Rng[] - Random number generator devices for the domain.
- serials
Domain
Devices Serial[] - Serial devices for the domain.
- tpms
Domain
Devices Tpm[] - TPM devices for the domain. Only one TPM device is supported per domain.
- video
Domain
Devices Video - Video device for the domain.
- consoles
Sequence[Domain
Devices Console] - Console devices for the domain.
- disks
Sequence[Domain
Devices Disk] - 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[Domain
Devices Filesystem] - Filesystem devices for sharing host directories with the guest (virtio-9p).
- graphics
Domain
Devices Graphics - Graphics device for the domain (VNC or Spice). Only one type can be specified.
- interfaces
Sequence[Domain
Devices Interface] - Network interfaces attached to the domain.
- rngs
Sequence[Domain
Devices Rng] - Random number generator devices for the domain.
- serials
Sequence[Domain
Devices Serial] - Serial devices for the domain.
- tpms
Sequence[Domain
Devices Tpm] - TPM devices for the domain. Only one TPM device is supported per domain.
- video
Domain
Devices Video - 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
- Source
Path string - Source path for file or unix socket types. Optional.
- Target
Port double - Target port number. Optional.
- Target
Type string - Target type (serial, virtio, xen, etc.). Optional.
- Type string
- Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
- Source
Path string - Source path for file or unix socket types. Optional.
- Target
Port float64 - Target port number. Optional.
- Target
Type string - Target type (serial, virtio, xen, etc.). Optional.
- Type string
- Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
- source
Path String - Source path for file or unix socket types. Optional.
- target
Port Double - Target port number. Optional.
- target
Type String - Target type (serial, virtio, xen, etc.). Optional.
- type String
- Console source type (pty, file, unix, tcp, etc.). Optional, defaults to pty.
- source
Path string - Source path for file or unix socket types. Optional.
- target
Port number - Target port number. Optional.
- target
Type 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.
- source
Path String - Source path for file or unix socket types. Optional.
- target
Port Number - Target port number. Optional.
- target
Type 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
Domain
Devices Disk Target - Guest device target mapping.
- Device string
- Device type (disk, cdrom, floppy, lun).
- Source
Domain
Devices Disk Source - 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
Domain
Devices Disk Target - Guest device target mapping.
- Device string
- Device type (disk, cdrom, floppy, lun).
- Source
Domain
Devices Disk Source - 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
Domain
Devices Disk Target - Guest device target mapping.
- device String
- Device type (disk, cdrom, floppy, lun).
- source
Domain
Devices Disk Source - 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
Domain
Devices Disk Target - Guest device target mapping.
- device string
- Device type (disk, cdrom, floppy, lun).
- source
Domain
Devices Disk Source - 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
Domain
Devices Disk Target - Guest device target mapping.
- device str
- Device type (disk, cdrom, floppy, lun).
- source
Domain
Devices Disk Source - 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 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
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
Domain
Devices Graphics Spice - Spice graphics configuration. Mutually exclusive with vnc.
- Vnc
Domain
Devices Graphics Vnc - VNC graphics configuration. Mutually exclusive with spice.
- Spice
Domain
Devices Graphics Spice - Spice graphics configuration. Mutually exclusive with vnc.
- Vnc
Domain
Devices Graphics Vnc - VNC graphics configuration. Mutually exclusive with spice.
- spice
Domain
Devices Graphics Spice - Spice graphics configuration. Mutually exclusive with vnc.
- vnc
Domain
Devices Graphics Vnc - VNC graphics configuration. Mutually exclusive with spice.
- spice
Domain
Devices Graphics Spice - Spice graphics configuration. Mutually exclusive with vnc.
- vnc
Domain
Devices Graphics Vnc - VNC graphics configuration. Mutually exclusive with spice.
- spice
Domain
Devices Graphics Spice - Spice graphics configuration. Mutually exclusive with vnc.
- vnc
Domain
Devices Graphics Vnc - 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
DomainDevicesGraphicsVnc, DomainDevicesGraphicsVncArgs
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
Domain
Devices Interface Source - Interface source configuration.
- Wait
For DomainIp Devices Interface Wait For Ip
- 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
Domain
Devices Interface Source - Interface source configuration.
- Wait
For DomainIp Devices Interface Wait For Ip
- 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
Domain
Devices Interface Source - Interface source configuration.
- wait
For DomainIp Devices Interface Wait For Ip
- 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
Domain
Devices Interface Source - Interface source configuration.
- wait
For DomainIp Devices Interface Wait For Ip
- 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
Domain
Devices Interface Source - Interface source configuration.
- wait_
for_ Domainip Devices Interface Wait For Ip
- 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.
- wait
For Property MapIp
DomainDevicesInterfaceSource, DomainDevicesInterfaceSourceArgs
DomainDevicesInterfaceWaitForIp, DomainDevicesInterfaceWaitForIpArgs
DomainDevicesRng, DomainDevicesRngArgs
DomainDevicesSerial, DomainDevicesSerialArgs
- Source
Path string - Source path for file or unix socket types. Optional.
- Target
Port double - Target port number. Optional.
- Target
Type 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 string - Source path for file or unix socket types. Optional.
- Target
Port float64 - Target port number. Optional.
- Target
Type 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 String - Source path for file or unix socket types. Optional.
- target
Port Double - Target port number. Optional.
- target
Type 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 string - Source path for file or unix socket types. Optional.
- target
Port number - Target port number. Optional.
- target
Type 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.
- source
Path String - Source path for file or unix socket types. Optional.
- target
Port Number - Target port number. Optional.
- target
Type 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
- Backend
Device stringPath - Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
- Backend
Encryption stringSecret - UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
- Backend
Persistent boolState - Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
- Backend
Type string - TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
- Backend
Version 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 stringPath - Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
- Backend
Encryption stringSecret - UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
- Backend
Persistent boolState - Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
- Backend
Type string - TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
- Backend
Version 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 StringPath - Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
- backend
Encryption StringSecret - UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
- backend
Persistent BooleanState - Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
- backend
Type String - TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
- backend
Version 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 stringPath - Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
- backend
Encryption stringSecret - UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
- backend
Persistent booleanState - Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
- backend
Type string - TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
- backend
Version 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_ strpath - Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
- backend_
encryption_ strsecret - UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
- backend_
persistent_ boolstate - 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').
- backend
Device StringPath - Device path for passthrough backend (e.g., '/dev/tpm0'). Only used with backend_type='passthrough'.
- backend
Encryption StringSecret - UUID of secret for encrypted state persistence. Only used with backend_type='emulator'.
- backend
Persistent BooleanState - Whether TPM state should be persistent across VM restarts. Only used with backend_type='emulator'.
- backend
Type String - TPM backend type ('passthrough', 'emulator'). Defaults to 'emulator'.
- backend
Version 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.
- Ccf
Assist string - CCF Assist (on, off).
- Gic
Version string - GIC version for ARM guests.
- Hap string
- Hardware Assisted Paging (on, off).
- Htm string
- Hardware Transactional Memory (on, off).
- Ioapic
Driver string - IOAPIC driver (kvm, qemu).
- Nested
Hv 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.
- Ccf
Assist string - CCF Assist (on, off).
- Gic
Version string - GIC version for ARM guests.
- Hap string
- Hardware Assisted Paging (on, off).
- Htm string
- Hardware Transactional Memory (on, off).
- Ioapic
Driver string - IOAPIC driver (kvm, qemu).
- Nested
Hv 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.
- ccf
Assist String - CCF Assist (on, off).
- gic
Version String - GIC version for ARM guests.
- hap String
- Hardware Assisted Paging (on, off).
- htm String
- Hardware Transactional Memory (on, off).
- ioapic
Driver String - IOAPIC driver (kvm, qemu).
- nested
Hv 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.
- ccf
Assist string - CCF Assist (on, off).
- gic
Version string - GIC version for ARM guests.
- hap string
- Hardware Assisted Paging (on, off).
- htm string
- Hardware Transactional Memory (on, off).
- ioapic
Driver string - IOAPIC driver (kvm, qemu).
- nested
Hv 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.
- ccf
Assist String - CCF Assist (on, off).
- gic
Version String - GIC version for ARM guests.
- hap String
- Hardware Assisted Paging (on, off).
- htm String
- Hardware Transactional Memory (on, off).
- ioapic
Driver String - IOAPIC driver (kvm, qemu).
- nested
Hv 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').
- Boot
Devices 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.
- Kernel
Args string - Kernel command line arguments.
- Loader
Path string - Path to UEFI firmware loader.
- Loader
Readonly bool - Whether the UEFI firmware is read-only.
- Loader
Type 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
Domain
Os Nvram - 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').
- Boot
Devices []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.
- Kernel
Args string - Kernel command line arguments.
- Loader
Path string - Path to UEFI firmware loader.
- Loader
Readonly bool - Whether the UEFI firmware is read-only.
- Loader
Type 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
Domain
Os Nvram - 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').
- boot
Devices 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.
- kernel
Args String - Kernel command line arguments.
- loader
Path String - Path to UEFI firmware loader.
- loader
Readonly Boolean - Whether the UEFI firmware is read-only.
- loader
Type 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
Domain
Os Nvram - 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').
- boot
Devices 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.
- kernel
Args string - Kernel command line arguments.
- loader
Path string - Path to UEFI firmware loader.
- loader
Readonly boolean - Whether the UEFI firmware is read-only.
- loader
Type 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
Domain
Os Nvram - 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
Domain
Os Nvram - 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').
- boot
Devices 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.
- kernel
Args String - Kernel command line arguments.
- loader
Path String - Path to UEFI firmware loader.
- loader
Readonly Boolean - Whether the UEFI firmware is read-only.
- loader
Type 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
Domain
Os Nvram Source - 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.
- Template
Format 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
Domain
Os Nvram Source - 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.
- Template
Format 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
Domain
Os Nvram Source - 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.
- template
Format 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
Domain
Os Nvram Source - 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.
- template
Format 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
Domain
Os Nvram Source - 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.
- template
Format String - Format of the template file (e.g., 'raw', 'qcow2').
DomainOsNvramSource, DomainOsNvramSourceArgs
DomainPm, DomainPmArgs
- Suspend
To stringDisk - Suspend to disk policy (yes, no).
- Suspend
To stringMem - Suspend to memory policy (yes, no).
- Suspend
To stringDisk - Suspend to disk policy (yes, no).
- Suspend
To stringMem - Suspend to memory policy (yes, no).
- suspend
To StringDisk - Suspend to disk policy (yes, no).
- suspend
To StringMem - Suspend to memory policy (yes, no).
- suspend
To stringDisk - Suspend to disk policy (yes, no).
- suspend
To stringMem - Suspend to memory policy (yes, no).
- suspend_
to_ strdisk - Suspend to disk policy (yes, no).
- suspend_
to_ strmem - Suspend to memory policy (yes, no).
- suspend
To StringDisk - Suspend to disk policy (yes, no).
- suspend
To StringMem - Suspend to memory policy (yes, no).
Package Details
- Repository
- libvirt dmacvicar/terraform-provider-libvirt
- License
- Notes
- This Pulumi package is based on the
libvirtTerraform Provider.
