libvirt.Domain
Explore with Pulumi AI
Manages a VM domain resource within libvirt. For more information see the official documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as libvirt from "@pulumi/libvirt";
const _default = new libvirt.Domain("default", {name: "test"});
import pulumi
import pulumi_libvirt as libvirt
default = libvirt.Domain("default", name="test")
package main
import (
"github.com/pulumi/pulumi-libvirt/sdk/go/libvirt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := libvirt.NewDomain(ctx, "default", &libvirt.DomainArgs{
Name: pulumi.String("test"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Libvirt = Pulumi.Libvirt;
return await Deployment.RunAsync(() =>
{
var @default = new Libvirt.Domain("default", new()
{
Name = "test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.libvirt.Domain;
import com.pulumi.libvirt.DomainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Domain("default", DomainArgs.builder()
.name("test")
.build());
}
}
resources:
default:
type: libvirt:Domain
properties:
name: test
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: Optional[DomainArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Domain(resource_name: str,
opts: Optional[ResourceOptions] = None,
arch: Optional[str] = None,
autostart: Optional[bool] = None,
boot_devices: Optional[Sequence[DomainBootDeviceArgs]] = None,
cloudinit: Optional[str] = None,
cmdlines: Optional[Sequence[Mapping[str, Any]]] = None,
consoles: Optional[Sequence[DomainConsoleArgs]] = None,
coreos_ignition: Optional[str] = None,
cpu: Optional[DomainCpuArgs] = None,
description: Optional[str] = None,
disks: Optional[Sequence[DomainDiskArgs]] = None,
emulator: Optional[str] = None,
filesystems: Optional[Sequence[DomainFilesystemArgs]] = None,
firmware: Optional[str] = None,
fw_cfg_name: Optional[str] = None,
graphics: Optional[DomainGraphicsArgs] = None,
initrd: Optional[str] = None,
kernel: Optional[str] = None,
machine: Optional[str] = None,
memory: Optional[int] = None,
metadata: Optional[str] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[DomainNetworkInterfaceArgs]] = None,
nvram: Optional[DomainNvramArgs] = None,
qemu_agent: Optional[bool] = None,
running: Optional[bool] = None,
tpm: Optional[DomainTpmArgs] = None,
type: Optional[str] = None,
vcpu: Optional[int] = None,
video: Optional[DomainVideoArgs] = None,
xml: Optional[DomainXmlArgs] = None)
func NewDomain(ctx *Context, name string, args *DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs? args = null, 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()
{
Arch = "string",
Autostart = false,
BootDevices = new[]
{
new Libvirt.Inputs.DomainBootDeviceArgs
{
Devs = new[]
{
"string",
},
},
},
Cloudinit = "string",
Cmdlines = new[]
{
{
{ "string", "any" },
},
},
Consoles = new[]
{
new Libvirt.Inputs.DomainConsoleArgs
{
TargetPort = "string",
Type = "string",
SourceHost = "string",
SourcePath = "string",
SourceService = "string",
TargetType = "string",
},
},
CoreosIgnition = "string",
Cpu = new Libvirt.Inputs.DomainCpuArgs
{
Mode = "string",
},
Description = "string",
Disks = new[]
{
new Libvirt.Inputs.DomainDiskArgs
{
BlockDevice = "string",
File = "string",
Scsi = false,
Url = "string",
VolumeId = "string",
Wwn = "string",
},
},
Emulator = "string",
Filesystems = new[]
{
new Libvirt.Inputs.DomainFilesystemArgs
{
Source = "string",
Target = "string",
Accessmode = "string",
Readonly = false,
},
},
Firmware = "string",
FwCfgName = "string",
Graphics = new Libvirt.Inputs.DomainGraphicsArgs
{
Autoport = false,
ListenAddress = "string",
ListenType = "string",
Type = "string",
Websocket = 0,
},
Initrd = "string",
Kernel = "string",
Machine = "string",
Memory = 0,
Metadata = "string",
Name = "string",
NetworkInterfaces = new[]
{
new Libvirt.Inputs.DomainNetworkInterfaceArgs
{
Addresses = new[]
{
"string",
},
Bridge = "string",
Hostname = "string",
Mac = "string",
Macvtap = "string",
NetworkId = "string",
NetworkName = "string",
Passthrough = "string",
Vepa = "string",
WaitForLease = false,
},
},
Nvram = new Libvirt.Inputs.DomainNvramArgs
{
File = "string",
Template = "string",
},
QemuAgent = false,
Running = false,
Tpm = new Libvirt.Inputs.DomainTpmArgs
{
BackendDevicePath = "string",
BackendEncryptionSecret = "string",
BackendPersistentState = false,
BackendType = "string",
BackendVersion = "string",
Model = "string",
},
Type = "string",
Vcpu = 0,
Video = new Libvirt.Inputs.DomainVideoArgs
{
Type = "string",
},
Xml = new Libvirt.Inputs.DomainXmlArgs
{
Xslt = "string",
},
});
example, err := libvirt.NewDomain(ctx, "domainResource", &libvirt.DomainArgs{
Arch: pulumi.String("string"),
Autostart: pulumi.Bool(false),
BootDevices: libvirt.DomainBootDeviceArray{
&libvirt.DomainBootDeviceArgs{
Devs: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Cloudinit: pulumi.String("string"),
Cmdlines: pulumi.MapArray{
pulumi.Map{
"string": pulumi.Any("any"),
},
},
Consoles: libvirt.DomainConsoleArray{
&libvirt.DomainConsoleArgs{
TargetPort: pulumi.String("string"),
Type: pulumi.String("string"),
SourceHost: pulumi.String("string"),
SourcePath: pulumi.String("string"),
SourceService: pulumi.String("string"),
TargetType: pulumi.String("string"),
},
},
CoreosIgnition: pulumi.String("string"),
Cpu: &libvirt.DomainCpuArgs{
Mode: pulumi.String("string"),
},
Description: pulumi.String("string"),
Disks: libvirt.DomainDiskArray{
&libvirt.DomainDiskArgs{
BlockDevice: pulumi.String("string"),
File: pulumi.String("string"),
Scsi: pulumi.Bool(false),
Url: pulumi.String("string"),
VolumeId: pulumi.String("string"),
Wwn: pulumi.String("string"),
},
},
Emulator: pulumi.String("string"),
Filesystems: libvirt.DomainFilesystemArray{
&libvirt.DomainFilesystemArgs{
Source: pulumi.String("string"),
Target: pulumi.String("string"),
Accessmode: pulumi.String("string"),
Readonly: pulumi.Bool(false),
},
},
Firmware: pulumi.String("string"),
FwCfgName: pulumi.String("string"),
Graphics: &libvirt.DomainGraphicsArgs{
Autoport: pulumi.Bool(false),
ListenAddress: pulumi.String("string"),
ListenType: pulumi.String("string"),
Type: pulumi.String("string"),
Websocket: pulumi.Int(0),
},
Initrd: pulumi.String("string"),
Kernel: pulumi.String("string"),
Machine: pulumi.String("string"),
Memory: pulumi.Int(0),
Metadata: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkInterfaces: libvirt.DomainNetworkInterfaceArray{
&libvirt.DomainNetworkInterfaceArgs{
Addresses: pulumi.StringArray{
pulumi.String("string"),
},
Bridge: pulumi.String("string"),
Hostname: pulumi.String("string"),
Mac: pulumi.String("string"),
Macvtap: pulumi.String("string"),
NetworkId: pulumi.String("string"),
NetworkName: pulumi.String("string"),
Passthrough: pulumi.String("string"),
Vepa: pulumi.String("string"),
WaitForLease: pulumi.Bool(false),
},
},
Nvram: &libvirt.DomainNvramArgs{
File: pulumi.String("string"),
Template: pulumi.String("string"),
},
QemuAgent: pulumi.Bool(false),
Running: pulumi.Bool(false),
Tpm: &libvirt.DomainTpmArgs{
BackendDevicePath: pulumi.String("string"),
BackendEncryptionSecret: pulumi.String("string"),
BackendPersistentState: pulumi.Bool(false),
BackendType: pulumi.String("string"),
BackendVersion: pulumi.String("string"),
Model: pulumi.String("string"),
},
Type: pulumi.String("string"),
Vcpu: pulumi.Int(0),
Video: &libvirt.DomainVideoArgs{
Type: pulumi.String("string"),
},
Xml: &libvirt.DomainXmlArgs{
Xslt: pulumi.String("string"),
},
})
var domainResource = new Domain("domainResource", DomainArgs.builder()
.arch("string")
.autostart(false)
.bootDevices(DomainBootDeviceArgs.builder()
.devs("string")
.build())
.cloudinit("string")
.cmdlines(Map.of("string", "any"))
.consoles(DomainConsoleArgs.builder()
.targetPort("string")
.type("string")
.sourceHost("string")
.sourcePath("string")
.sourceService("string")
.targetType("string")
.build())
.coreosIgnition("string")
.cpu(DomainCpuArgs.builder()
.mode("string")
.build())
.description("string")
.disks(DomainDiskArgs.builder()
.blockDevice("string")
.file("string")
.scsi(false)
.url("string")
.volumeId("string")
.wwn("string")
.build())
.emulator("string")
.filesystems(DomainFilesystemArgs.builder()
.source("string")
.target("string")
.accessmode("string")
.readonly(false)
.build())
.firmware("string")
.fwCfgName("string")
.graphics(DomainGraphicsArgs.builder()
.autoport(false)
.listenAddress("string")
.listenType("string")
.type("string")
.websocket(0)
.build())
.initrd("string")
.kernel("string")
.machine("string")
.memory(0)
.metadata("string")
.name("string")
.networkInterfaces(DomainNetworkInterfaceArgs.builder()
.addresses("string")
.bridge("string")
.hostname("string")
.mac("string")
.macvtap("string")
.networkId("string")
.networkName("string")
.passthrough("string")
.vepa("string")
.waitForLease(false)
.build())
.nvram(DomainNvramArgs.builder()
.file("string")
.template("string")
.build())
.qemuAgent(false)
.running(false)
.tpm(DomainTpmArgs.builder()
.backendDevicePath("string")
.backendEncryptionSecret("string")
.backendPersistentState(false)
.backendType("string")
.backendVersion("string")
.model("string")
.build())
.type("string")
.vcpu(0)
.video(DomainVideoArgs.builder()
.type("string")
.build())
.xml(DomainXmlArgs.builder()
.xslt("string")
.build())
.build());
domain_resource = libvirt.Domain("domainResource",
arch="string",
autostart=False,
boot_devices=[libvirt.DomainBootDeviceArgs(
devs=["string"],
)],
cloudinit="string",
cmdlines=[{
"string": "any",
}],
consoles=[libvirt.DomainConsoleArgs(
target_port="string",
type="string",
source_host="string",
source_path="string",
source_service="string",
target_type="string",
)],
coreos_ignition="string",
cpu=libvirt.DomainCpuArgs(
mode="string",
),
description="string",
disks=[libvirt.DomainDiskArgs(
block_device="string",
file="string",
scsi=False,
url="string",
volume_id="string",
wwn="string",
)],
emulator="string",
filesystems=[libvirt.DomainFilesystemArgs(
source="string",
target="string",
accessmode="string",
readonly=False,
)],
firmware="string",
fw_cfg_name="string",
graphics=libvirt.DomainGraphicsArgs(
autoport=False,
listen_address="string",
listen_type="string",
type="string",
websocket=0,
),
initrd="string",
kernel="string",
machine="string",
memory=0,
metadata="string",
name="string",
network_interfaces=[libvirt.DomainNetworkInterfaceArgs(
addresses=["string"],
bridge="string",
hostname="string",
mac="string",
macvtap="string",
network_id="string",
network_name="string",
passthrough="string",
vepa="string",
wait_for_lease=False,
)],
nvram=libvirt.DomainNvramArgs(
file="string",
template="string",
),
qemu_agent=False,
running=False,
tpm=libvirt.DomainTpmArgs(
backend_device_path="string",
backend_encryption_secret="string",
backend_persistent_state=False,
backend_type="string",
backend_version="string",
model="string",
),
type="string",
vcpu=0,
video=libvirt.DomainVideoArgs(
type="string",
),
xml=libvirt.DomainXmlArgs(
xslt="string",
))
const domainResource = new libvirt.Domain("domainResource", {
arch: "string",
autostart: false,
bootDevices: [{
devs: ["string"],
}],
cloudinit: "string",
cmdlines: [{
string: "any",
}],
consoles: [{
targetPort: "string",
type: "string",
sourceHost: "string",
sourcePath: "string",
sourceService: "string",
targetType: "string",
}],
coreosIgnition: "string",
cpu: {
mode: "string",
},
description: "string",
disks: [{
blockDevice: "string",
file: "string",
scsi: false,
url: "string",
volumeId: "string",
wwn: "string",
}],
emulator: "string",
filesystems: [{
source: "string",
target: "string",
accessmode: "string",
readonly: false,
}],
firmware: "string",
fwCfgName: "string",
graphics: {
autoport: false,
listenAddress: "string",
listenType: "string",
type: "string",
websocket: 0,
},
initrd: "string",
kernel: "string",
machine: "string",
memory: 0,
metadata: "string",
name: "string",
networkInterfaces: [{
addresses: ["string"],
bridge: "string",
hostname: "string",
mac: "string",
macvtap: "string",
networkId: "string",
networkName: "string",
passthrough: "string",
vepa: "string",
waitForLease: false,
}],
nvram: {
file: "string",
template: "string",
},
qemuAgent: false,
running: false,
tpm: {
backendDevicePath: "string",
backendEncryptionSecret: "string",
backendPersistentState: false,
backendType: "string",
backendVersion: "string",
model: "string",
},
type: "string",
vcpu: 0,
video: {
type: "string",
},
xml: {
xslt: "string",
},
});
type: libvirt:Domain
properties:
arch: string
autostart: false
bootDevices:
- devs:
- string
cloudinit: string
cmdlines:
- string: any
consoles:
- sourceHost: string
sourcePath: string
sourceService: string
targetPort: string
targetType: string
type: string
coreosIgnition: string
cpu:
mode: string
description: string
disks:
- blockDevice: string
file: string
scsi: false
url: string
volumeId: string
wwn: string
emulator: string
filesystems:
- accessmode: string
readonly: false
source: string
target: string
firmware: string
fwCfgName: string
graphics:
autoport: false
listenAddress: string
listenType: string
type: string
websocket: 0
initrd: string
kernel: string
machine: string
memory: 0
metadata: string
name: string
networkInterfaces:
- addresses:
- string
bridge: string
hostname: string
mac: string
macvtap: string
networkId: string
networkName: string
passthrough: string
vepa: string
waitForLease: false
nvram:
file: string
template: string
qemuAgent: false
running: false
tpm:
backendDevicePath: string
backendEncryptionSecret: string
backendPersistentState: false
backendType: string
backendVersion: string
model: string
type: string
vcpu: 0
video:
type: string
xml:
xslt: string
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
The Domain resource accepts the following input properties:
- Arch string
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- Autostart bool
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - Boot
Devices List<DomainBoot Device> - A list of devices (dev) which defines boot order. Example below.
- Cloudinit string
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - Cmdlines
List<Immutable
Dictionary<string, object>> - Consoles
List<Domain
Console> - Coreos
Ignition string - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- Cpu
Domain
Cpu - Configures CPU mode. See below for more details.
- Description string
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- Disks
List<Domain
Disk> - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - Emulator string
- The path of the emulator to use
- Filesystems
List<Domain
Filesystem> - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - Firmware string
- Fw
Cfg stringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - Graphics
Domain
Graphics - Initrd string
- Kernel string
- Machine string
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- Memory int
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- Metadata string
- Name string
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- Network
Interfaces List<DomainNetwork Interface> - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - Nvram
Domain
Nvram - Qemu
Agent bool - By default is disabled, set to true for enabling it. More info qemu-agent.
- Running bool
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - Tpm
Domain
Tpm - TPM device to attach to the domain. The
tpm
object structure is documented below. - Type string
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - Vcpu int
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- Video
Domain
Video - Xml
Domain
Xml
- Arch string
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- Autostart bool
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - Boot
Devices []DomainBoot Device Args - A list of devices (dev) which defines boot order. Example below.
- Cloudinit string
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - Cmdlines []map[string]interface{}
- Consoles
[]Domain
Console Args - Coreos
Ignition string - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- Cpu
Domain
Cpu Args - Configures CPU mode. See below for more details.
- Description string
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- Disks
[]Domain
Disk Args - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - Emulator string
- The path of the emulator to use
- Filesystems
[]Domain
Filesystem Args - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - Firmware string
- Fw
Cfg stringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - Graphics
Domain
Graphics Args - Initrd string
- Kernel string
- Machine string
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- Memory int
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- Metadata string
- Name string
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- Network
Interfaces []DomainNetwork Interface Args - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - Nvram
Domain
Nvram Args - Qemu
Agent bool - By default is disabled, set to true for enabling it. More info qemu-agent.
- Running bool
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - Tpm
Domain
Tpm Args - TPM device to attach to the domain. The
tpm
object structure is documented below. - Type string
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - Vcpu int
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- Video
Domain
Video Args - Xml
Domain
Xml Args
- arch String
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- autostart Boolean
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - boot
Devices List<DomainBoot Device> - A list of devices (dev) which defines boot order. Example below.
- cloudinit String
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - cmdlines List<Map<String,Object>>
- consoles
List<Domain
Console> - coreos
Ignition String - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- cpu
Domain
Cpu - Configures CPU mode. See below for more details.
- description String
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- disks
List<Domain
Disk> - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - emulator String
- The path of the emulator to use
- filesystems
List<Domain
Filesystem> - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - firmware String
- fw
Cfg StringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - graphics
Domain
Graphics - initrd String
- kernel String
- machine String
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- memory Integer
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- metadata String
- name String
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- network
Interfaces List<DomainNetwork Interface> - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - nvram
Domain
Nvram - qemu
Agent Boolean - By default is disabled, set to true for enabling it. More info qemu-agent.
- running Boolean
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - tpm
Domain
Tpm - TPM device to attach to the domain. The
tpm
object structure is documented below. - type String
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - vcpu Integer
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- video
Domain
Video - xml
Domain
Xml
- arch string
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- autostart boolean
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - boot
Devices DomainBoot Device[] - A list of devices (dev) which defines boot order. Example below.
- cloudinit string
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - cmdlines {[key: string]: any}[]
- consoles
Domain
Console[] - coreos
Ignition string - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- cpu
Domain
Cpu - Configures CPU mode. See below for more details.
- description string
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- disks
Domain
Disk[] - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - emulator string
- The path of the emulator to use
- filesystems
Domain
Filesystem[] - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - firmware string
- fw
Cfg stringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - graphics
Domain
Graphics - initrd string
- kernel string
- machine string
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- memory number
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- metadata string
- name string
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- network
Interfaces DomainNetwork Interface[] - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - nvram
Domain
Nvram - qemu
Agent boolean - By default is disabled, set to true for enabling it. More info qemu-agent.
- running boolean
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - tpm
Domain
Tpm - TPM device to attach to the domain. The
tpm
object structure is documented below. - type string
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - vcpu number
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- video
Domain
Video - xml
Domain
Xml
- arch str
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- autostart bool
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - boot_
devices Sequence[DomainBoot Device Args] - A list of devices (dev) which defines boot order. Example below.
- cloudinit str
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - cmdlines Sequence[Mapping[str, Any]]
- consoles
Sequence[Domain
Console Args] - coreos_
ignition str - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- cpu
Domain
Cpu Args - Configures CPU mode. See below for more details.
- description str
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- disks
Sequence[Domain
Disk Args] - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - emulator str
- The path of the emulator to use
- filesystems
Sequence[Domain
Filesystem Args] - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - firmware str
- fw_
cfg_ strname - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - graphics
Domain
Graphics Args - initrd str
- kernel str
- machine str
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- memory int
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- metadata str
- name str
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- network_
interfaces Sequence[DomainNetwork Interface Args] - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - nvram
Domain
Nvram Args - qemu_
agent bool - By default is disabled, set to true for enabling it. More info qemu-agent.
- running bool
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - tpm
Domain
Tpm Args - TPM device to attach to the domain. The
tpm
object structure is documented below. - type str
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - vcpu int
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- video
Domain
Video Args - xml
Domain
Xml Args
- arch String
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- autostart Boolean
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - boot
Devices List<Property Map> - A list of devices (dev) which defines boot order. Example below.
- cloudinit String
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - cmdlines List<Map<Any>>
- consoles List<Property Map>
- coreos
Ignition String - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- cpu Property Map
- Configures CPU mode. See below for more details.
- description String
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- disks List<Property Map>
- An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - emulator String
- The path of the emulator to use
- filesystems List<Property Map>
- An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - firmware String
- fw
Cfg StringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - graphics Property Map
- initrd String
- kernel String
- machine String
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- memory Number
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- metadata String
- name String
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- network
Interfaces List<Property Map> - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - nvram Property Map
- qemu
Agent Boolean - By default is disabled, set to true for enabling it. More info qemu-agent.
- running Boolean
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - tpm Property Map
- TPM device to attach to the domain. The
tpm
object structure is documented below. - type String
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - vcpu Number
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- video Property Map
- xml Property Map
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,
arch: Optional[str] = None,
autostart: Optional[bool] = None,
boot_devices: Optional[Sequence[DomainBootDeviceArgs]] = None,
cloudinit: Optional[str] = None,
cmdlines: Optional[Sequence[Mapping[str, Any]]] = None,
consoles: Optional[Sequence[DomainConsoleArgs]] = None,
coreos_ignition: Optional[str] = None,
cpu: Optional[DomainCpuArgs] = None,
description: Optional[str] = None,
disks: Optional[Sequence[DomainDiskArgs]] = None,
emulator: Optional[str] = None,
filesystems: Optional[Sequence[DomainFilesystemArgs]] = None,
firmware: Optional[str] = None,
fw_cfg_name: Optional[str] = None,
graphics: Optional[DomainGraphicsArgs] = None,
initrd: Optional[str] = None,
kernel: Optional[str] = None,
machine: Optional[str] = None,
memory: Optional[int] = None,
metadata: Optional[str] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[DomainNetworkInterfaceArgs]] = None,
nvram: Optional[DomainNvramArgs] = None,
qemu_agent: Optional[bool] = None,
running: Optional[bool] = None,
tpm: Optional[DomainTpmArgs] = None,
type: Optional[str] = None,
vcpu: Optional[int] = None,
video: Optional[DomainVideoArgs] = None,
xml: Optional[DomainXmlArgs] = None) -> Domain
func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
public static Domain get(String name, Output<String> id, DomainState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arch string
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- Autostart bool
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - Boot
Devices List<DomainBoot Device> - A list of devices (dev) which defines boot order. Example below.
- Cloudinit string
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - Cmdlines
List<Immutable
Dictionary<string, object>> - Consoles
List<Domain
Console> - Coreos
Ignition string - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- Cpu
Domain
Cpu - Configures CPU mode. See below for more details.
- Description string
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- Disks
List<Domain
Disk> - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - Emulator string
- The path of the emulator to use
- Filesystems
List<Domain
Filesystem> - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - Firmware string
- Fw
Cfg stringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - Graphics
Domain
Graphics - Initrd string
- Kernel string
- Machine string
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- Memory int
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- Metadata string
- Name string
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- Network
Interfaces List<DomainNetwork Interface> - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - Nvram
Domain
Nvram - Qemu
Agent bool - By default is disabled, set to true for enabling it. More info qemu-agent.
- Running bool
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - Tpm
Domain
Tpm - TPM device to attach to the domain. The
tpm
object structure is documented below. - Type string
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - Vcpu int
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- Video
Domain
Video - Xml
Domain
Xml
- Arch string
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- Autostart bool
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - Boot
Devices []DomainBoot Device Args - A list of devices (dev) which defines boot order. Example below.
- Cloudinit string
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - Cmdlines []map[string]interface{}
- Consoles
[]Domain
Console Args - Coreos
Ignition string - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- Cpu
Domain
Cpu Args - Configures CPU mode. See below for more details.
- Description string
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- Disks
[]Domain
Disk Args - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - Emulator string
- The path of the emulator to use
- Filesystems
[]Domain
Filesystem Args - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - Firmware string
- Fw
Cfg stringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - Graphics
Domain
Graphics Args - Initrd string
- Kernel string
- Machine string
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- Memory int
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- Metadata string
- Name string
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- Network
Interfaces []DomainNetwork Interface Args - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - Nvram
Domain
Nvram Args - Qemu
Agent bool - By default is disabled, set to true for enabling it. More info qemu-agent.
- Running bool
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - Tpm
Domain
Tpm Args - TPM device to attach to the domain. The
tpm
object structure is documented below. - Type string
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - Vcpu int
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- Video
Domain
Video Args - Xml
Domain
Xml Args
- arch String
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- autostart Boolean
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - boot
Devices List<DomainBoot Device> - A list of devices (dev) which defines boot order. Example below.
- cloudinit String
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - cmdlines List<Map<String,Object>>
- consoles
List<Domain
Console> - coreos
Ignition String - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- cpu
Domain
Cpu - Configures CPU mode. See below for more details.
- description String
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- disks
List<Domain
Disk> - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - emulator String
- The path of the emulator to use
- filesystems
List<Domain
Filesystem> - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - firmware String
- fw
Cfg StringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - graphics
Domain
Graphics - initrd String
- kernel String
- machine String
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- memory Integer
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- metadata String
- name String
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- network
Interfaces List<DomainNetwork Interface> - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - nvram
Domain
Nvram - qemu
Agent Boolean - By default is disabled, set to true for enabling it. More info qemu-agent.
- running Boolean
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - tpm
Domain
Tpm - TPM device to attach to the domain. The
tpm
object structure is documented below. - type String
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - vcpu Integer
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- video
Domain
Video - xml
Domain
Xml
- arch string
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- autostart boolean
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - boot
Devices DomainBoot Device[] - A list of devices (dev) which defines boot order. Example below.
- cloudinit string
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - cmdlines {[key: string]: any}[]
- consoles
Domain
Console[] - coreos
Ignition string - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- cpu
Domain
Cpu - Configures CPU mode. See below for more details.
- description string
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- disks
Domain
Disk[] - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - emulator string
- The path of the emulator to use
- filesystems
Domain
Filesystem[] - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - firmware string
- fw
Cfg stringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - graphics
Domain
Graphics - initrd string
- kernel string
- machine string
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- memory number
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- metadata string
- name string
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- network
Interfaces DomainNetwork Interface[] - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - nvram
Domain
Nvram - qemu
Agent boolean - By default is disabled, set to true for enabling it. More info qemu-agent.
- running boolean
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - tpm
Domain
Tpm - TPM device to attach to the domain. The
tpm
object structure is documented below. - type string
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - vcpu number
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- video
Domain
Video - xml
Domain
Xml
- arch str
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- autostart bool
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - boot_
devices Sequence[DomainBoot Device Args] - A list of devices (dev) which defines boot order. Example below.
- cloudinit str
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - cmdlines Sequence[Mapping[str, Any]]
- consoles
Sequence[Domain
Console Args] - coreos_
ignition str - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- cpu
Domain
Cpu Args - Configures CPU mode. See below for more details.
- description str
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- disks
Sequence[Domain
Disk Args] - An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - emulator str
- The path of the emulator to use
- filesystems
Sequence[Domain
Filesystem Args] - An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - firmware str
- fw_
cfg_ strname - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - graphics
Domain
Graphics Args - initrd str
- kernel str
- machine str
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- memory int
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- metadata str
- name str
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- network_
interfaces Sequence[DomainNetwork Interface Args] - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - nvram
Domain
Nvram Args - qemu_
agent bool - By default is disabled, set to true for enabling it. More info qemu-agent.
- running bool
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - tpm
Domain
Tpm Args - TPM device to attach to the domain. The
tpm
object structure is documented below. - type str
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - vcpu int
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- video
Domain
Video Args - xml
Domain
Xml Args
- arch String
- The architecture for the VM (probably x86_64 or i686), you normally won't need to set this unless you are building a special VM
- autostart Boolean
- Set to
true
to start the domain on host boot up. If not specifiedfalse
is assumed. - boot
Devices List<Property Map> - A list of devices (dev) which defines boot order. Example below.
- cloudinit String
- The
libvirt.CloudInitDisk
disk that has to be used by the domain. This is going to be attached as a CDROM ISO. Changing the cloud-init won't cause the domain to be recreated, however the change will have effect on the next reboot. - cmdlines List<Map<Any>>
- consoles List<Property Map>
- coreos
Ignition String - The libvirt.Ignition resource that is to be used by the CoreOS domain.
- cpu Property Map
- Configures CPU mode. See below for more details.
- description String
- The description for domain. Changing this forces a new resource to be created. This data is not used by libvirt in any way, it can contain any information the user wants.
- disks List<Property Map>
- An array of one or more disks to attach to the domain. The
disk
object structure is documented below. - emulator String
- The path of the emulator to use
- filesystems List<Property Map>
- An array of one or more host filesystems to attach to
the domain. The
filesystem
object structure is documented below. - firmware String
- fw
Cfg StringName - The name of the firmware config path where ignition file is stored: default is
opt/com.coreos/config
. If you are using Flatcar Linux, the value isopt/org.flatcar-linux/config
. - graphics Property Map
- initrd String
- kernel String
- machine String
- The machine type, you normally won't need to set this unless you are running on a platform that defaults to the wrong machine type for your template
- memory Number
- The amount of memory in MiB. If not specified the domain will be created with 512 MiB of memory be used.
- metadata String
- name String
- A unique name for the resource, required by libvirt. Changing this forces a new resource to be created.
- network
Interfaces List<Property Map> - An array of one or more network interfaces to
attach to the domain. The
network_interface
object structure is documented below. - nvram Property Map
- qemu
Agent Boolean - By default is disabled, set to true for enabling it. More info qemu-agent.
- running Boolean
- Use
false
to turn off the instance. If not specified, true is assumed and the instance, if stopped, will be started at next apply. - tpm Property Map
- TPM device to attach to the domain. The
tpm
object structure is documented below. - type String
- The type of hypervisor to use for the domain. Defaults to
kvm
, other values can be found here - vcpu Number
- The amount of virtual CPUs. If not specified, a single CPU will be created.
- video Property Map
- xml Property Map
Supporting Types
DomainBootDevice, DomainBootDeviceArgs
- Devs List<string>
- Devs []string
- devs List<String>
- devs string[]
- devs Sequence[str]
- devs List<String>
DomainConsole, DomainConsoleArgs
- Target
Port string - Target port
- Type string
- Console device type. Valid values are "pty" and "tcp".
- Source
Host string - IP address to listen on. Defaults to 127.0.0.1.
- Source
Path string Source path
Additional attributes when type is "tcp":
- Source
Service string Port number or a service name. Defaults to a random port.
Note that you can repeat the
console
block to create more than one console. This works the same way as with thedisk
blocks (see above).See libvirt Domain XML Console element for more information.
- Target
Type string for the first console and defaults to
serial
. Subsequentconsole
blocks must have a different type - usuallyvirtio
.Additional attributes when type is "pty":
- Target
Port string - Target port
- Type string
- Console device type. Valid values are "pty" and "tcp".
- Source
Host string - IP address to listen on. Defaults to 127.0.0.1.
- Source
Path string Source path
Additional attributes when type is "tcp":
- Source
Service string Port number or a service name. Defaults to a random port.
Note that you can repeat the
console
block to create more than one console. This works the same way as with thedisk
blocks (see above).See libvirt Domain XML Console element for more information.
- Target
Type string for the first console and defaults to
serial
. Subsequentconsole
blocks must have a different type - usuallyvirtio
.Additional attributes when type is "pty":
- target
Port String - Target port
- type String
- Console device type. Valid values are "pty" and "tcp".
- source
Host String - IP address to listen on. Defaults to 127.0.0.1.
- source
Path String Source path
Additional attributes when type is "tcp":
- source
Service String Port number or a service name. Defaults to a random port.
Note that you can repeat the
console
block to create more than one console. This works the same way as with thedisk
blocks (see above).See libvirt Domain XML Console element for more information.
- target
Type String for the first console and defaults to
serial
. Subsequentconsole
blocks must have a different type - usuallyvirtio
.Additional attributes when type is "pty":
- target
Port string - Target port
- type string
- Console device type. Valid values are "pty" and "tcp".
- source
Host string - IP address to listen on. Defaults to 127.0.0.1.
- source
Path string Source path
Additional attributes when type is "tcp":
- source
Service string Port number or a service name. Defaults to a random port.
Note that you can repeat the
console
block to create more than one console. This works the same way as with thedisk
blocks (see above).See libvirt Domain XML Console element for more information.
- target
Type string for the first console and defaults to
serial
. Subsequentconsole
blocks must have a different type - usuallyvirtio
.Additional attributes when type is "pty":
- target_
port str - Target port
- type str
- Console device type. Valid values are "pty" and "tcp".
- source_
host str - IP address to listen on. Defaults to 127.0.0.1.
- source_
path str Source path
Additional attributes when type is "tcp":
- source_
service str Port number or a service name. Defaults to a random port.
Note that you can repeat the
console
block to create more than one console. This works the same way as with thedisk
blocks (see above).See libvirt Domain XML Console element for more information.
- target_
type str for the first console and defaults to
serial
. Subsequentconsole
blocks must have a different type - usuallyvirtio
.Additional attributes when type is "pty":
- target
Port String - Target port
- type String
- Console device type. Valid values are "pty" and "tcp".
- source
Host String - IP address to listen on. Defaults to 127.0.0.1.
- source
Path String Source path
Additional attributes when type is "tcp":
- source
Service String Port number or a service name. Defaults to a random port.
Note that you can repeat the
console
block to create more than one console. This works the same way as with thedisk
blocks (see above).See libvirt Domain XML Console element for more information.
- target
Type String for the first console and defaults to
serial
. Subsequentconsole
blocks must have a different type - usuallyvirtio
.Additional attributes when type is "pty":
DomainCpu, DomainCpuArgs
- Mode string
- Mode string
- mode String
- mode string
- mode str
- mode String
DomainDisk, DomainDiskArgs
- Block
Device string The path to the host device to use as the block device for this disk.
While
volume_id
,url
,file
andblock_device
are optional, it is intended that you use one of them.- File string
- The filename to use as the block device for this disk (read-only)
- Scsi bool
- Use a scsi controller for this disk. The controller
model is set to
virtio-scsi
- Url string
- The http url to use as the block device for this disk (read-only)
- Volume
Id string - The volume id to use for this disk.
- Wwn string
Specify a WWN to use for the disk if the disk is using a scsi controller, if not specified then a random wwn is generated for the disk
import * as pulumi from "@pulumi/pulumi"; import * as libvirt from "@pulumi/libvirt";
const leap = new libvirt.Volume("leap", { name: "leap", source: "http://someurl/openSUSE_Leap-42.1.qcow2", }); const mydisk = new libvirt.Volume("mydisk", { name: "mydisk", baseVolumeId: leap.id, }); const domain1 = new libvirt.Domain("domain1", { name: "domain1", disks: [ { volumeId: mydisk.id, scsi: true, }, { url: "http://foo.com/install.iso", }, { file: "/absolute/path/to/disk.iso", }, { blockDevice: "/dev/mapper/36005076802810e55400000000000145f", }, ], });
import pulumi import pulumi_libvirt as libvirt leap = libvirt.Volume("leap", name="leap", source="http://someurl/openSUSE_Leap-42.1.qcow2") mydisk = libvirt.Volume("mydisk", name="mydisk", base_volume_id=leap.id) domain1 = libvirt.Domain("domain1", name="domain1", disks=[ libvirt.DomainDiskArgs( volume_id=mydisk.id, scsi=True, ), libvirt.DomainDiskArgs( url="http://foo.com/install.iso", ), libvirt.DomainDiskArgs( file="/absolute/path/to/disk.iso", ), libvirt.DomainDiskArgs( block_device="/dev/mapper/36005076802810e55400000000000145f", ), ])
using System.Collections.Generic; using System.Linq; using Pulumi; using Libvirt = Pulumi.Libvirt; return await Deployment.RunAsync(() => { var leap = new Libvirt.Volume("leap", new() { Name = "leap", Source = "http://someurl/openSUSE_Leap-42.1.qcow2", }); var mydisk = new Libvirt.Volume("mydisk", new() { Name = "mydisk", BaseVolumeId = leap.Id, }); var domain1 = new Libvirt.Domain("domain1", new() { Name = "domain1", Disks = new[] { new Libvirt.Inputs.DomainDiskArgs { VolumeId = mydisk.Id, Scsi = true, }, new Libvirt.Inputs.DomainDiskArgs { Url = "http://foo.com/install.iso", }, new Libvirt.Inputs.DomainDiskArgs { File = "/absolute/path/to/disk.iso", }, new Libvirt.Inputs.DomainDiskArgs { BlockDevice = "/dev/mapper/36005076802810e55400000000000145f", }, }, }); });
package main import ( "github.com/pulumi/pulumi-libvirt/sdk/go/libvirt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { leap, err := libvirt.NewVolume(ctx, "leap", &libvirt.VolumeArgs{ Name: pulumi.String("leap"), Source: pulumi.String("http://someurl/openSUSE_Leap-42.1.qcow2"), }) if err != nil { return err } mydisk, err := libvirt.NewVolume(ctx, "mydisk", &libvirt.VolumeArgs{ Name: pulumi.String("mydisk"), BaseVolumeId: leap.ID(), }) if err != nil { return err } _, err = libvirt.NewDomain(ctx, "domain1", &libvirt.DomainArgs{ Name: pulumi.String("domain1"), Disks: libvirt.DomainDiskArray{ &libvirt.DomainDiskArgs{ VolumeId: mydisk.ID(), Scsi: pulumi.Bool(true), }, &libvirt.DomainDiskArgs{ Url: pulumi.String("http://foo.com/install.iso"), }, &libvirt.DomainDiskArgs{ File: pulumi.String("/absolute/path/to/disk.iso"), }, &libvirt.DomainDiskArgs{ BlockDevice: pulumi.String("/dev/mapper/36005076802810e55400000000000145f"), }, }, }) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.libvirt.Volume; import com.pulumi.libvirt.VolumeArgs; import com.pulumi.libvirt.Domain; import com.pulumi.libvirt.DomainArgs; import com.pulumi.libvirt.inputs.DomainDiskArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var leap = new Volume("leap", VolumeArgs.builder() .name("leap") .source("http://someurl/openSUSE_Leap-42.1.qcow2") .build()); var mydisk = new Volume("mydisk", VolumeArgs.builder() .name("mydisk") .baseVolumeId(leap.id()) .build()); var domain1 = new Domain("domain1", DomainArgs.builder() .name("domain1") .disks( DomainDiskArgs.builder() .volumeId(mydisk.id()) .scsi("true") .build(), DomainDiskArgs.builder() .url("http://foo.com/install.iso") .build(), DomainDiskArgs.builder() .file("/absolute/path/to/disk.iso") .build(), DomainDiskArgs.builder() .blockDevice("/dev/mapper/36005076802810e55400000000000145f") .build()) .build()); } }
resources: leap: type: libvirt:Volume properties: name: leap source: http://someurl/openSUSE_Leap-42.1.qcow2 mydisk: type: libvirt:Volume properties: name: mydisk baseVolumeId: ${leap.id} domain1: type: libvirt:Domain properties: name: domain1 disks: - volumeId: ${mydisk.id} scsi: 'true' - url: http://foo.com/install.iso - file: /absolute/path/to/disk.iso - blockDevice: /dev/mapper/36005076802810e55400000000000145f
Also note that the
disk
block is actually a list of maps, so it is possible to declare several of them by using either the literal list and map syntax as in the following examples:
- Block
Device string The path to the host device to use as the block device for this disk.
While
volume_id
,url
,file
andblock_device
are optional, it is intended that you use one of them.- File string
- The filename to use as the block device for this disk (read-only)
- Scsi bool
- Use a scsi controller for this disk. The controller
model is set to
virtio-scsi
- Url string
- The http url to use as the block device for this disk (read-only)
- Volume
Id string - The volume id to use for this disk.
- Wwn string
Specify a WWN to use for the disk if the disk is using a scsi controller, if not specified then a random wwn is generated for the disk
import * as pulumi from "@pulumi/pulumi"; import * as libvirt from "@pulumi/libvirt";
const leap = new libvirt.Volume("leap", { name: "leap", source: "http://someurl/openSUSE_Leap-42.1.qcow2", }); const mydisk = new libvirt.Volume("mydisk", { name: "mydisk", baseVolumeId: leap.id, }); const domain1 = new libvirt.Domain("domain1", { name: "domain1", disks: [ { volumeId: mydisk.id, scsi: true, }, { url: "http://foo.com/install.iso", }, { file: "/absolute/path/to/disk.iso", }, { blockDevice: "/dev/mapper/36005076802810e55400000000000145f", }, ], });
import pulumi import pulumi_libvirt as libvirt leap = libvirt.Volume("leap", name="leap", source="http://someurl/openSUSE_Leap-42.1.qcow2") mydisk = libvirt.Volume("mydisk", name="mydisk", base_volume_id=leap.id) domain1 = libvirt.Domain("domain1", name="domain1", disks=[ libvirt.DomainDiskArgs( volume_id=mydisk.id, scsi=True, ), libvirt.DomainDiskArgs( url="http://foo.com/install.iso", ), libvirt.DomainDiskArgs( file="/absolute/path/to/disk.iso", ), libvirt.DomainDiskArgs( block_device="/dev/mapper/36005076802810e55400000000000145f", ), ])
using System.Collections.Generic; using System.Linq; using Pulumi; using Libvirt = Pulumi.Libvirt; return await Deployment.RunAsync(() => { var leap = new Libvirt.Volume("leap", new() { Name = "leap", Source = "http://someurl/openSUSE_Leap-42.1.qcow2", }); var mydisk = new Libvirt.Volume("mydisk", new() { Name = "mydisk", BaseVolumeId = leap.Id, }); var domain1 = new Libvirt.Domain("domain1", new() { Name = "domain1", Disks = new[] { new Libvirt.Inputs.DomainDiskArgs { VolumeId = mydisk.Id, Scsi = true, }, new Libvirt.Inputs.DomainDiskArgs { Url = "http://foo.com/install.iso", }, new Libvirt.Inputs.DomainDiskArgs { File = "/absolute/path/to/disk.iso", }, new Libvirt.Inputs.DomainDiskArgs { BlockDevice = "/dev/mapper/36005076802810e55400000000000145f", }, }, }); });
package main import ( "github.com/pulumi/pulumi-libvirt/sdk/go/libvirt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { leap, err := libvirt.NewVolume(ctx, "leap", &libvirt.VolumeArgs{ Name: pulumi.String("leap"), Source: pulumi.String("http://someurl/openSUSE_Leap-42.1.qcow2"), }) if err != nil { return err } mydisk, err := libvirt.NewVolume(ctx, "mydisk", &libvirt.VolumeArgs{ Name: pulumi.String("mydisk"), BaseVolumeId: leap.ID(), }) if err != nil { return err } _, err = libvirt.NewDomain(ctx, "domain1", &libvirt.DomainArgs{ Name: pulumi.String("domain1"), Disks: libvirt.DomainDiskArray{ &libvirt.DomainDiskArgs{ VolumeId: mydisk.ID(), Scsi: pulumi.Bool(true), }, &libvirt.DomainDiskArgs{ Url: pulumi.String("http://foo.com/install.iso"), }, &libvirt.DomainDiskArgs{ File: pulumi.String("/absolute/path/to/disk.iso"), }, &libvirt.DomainDiskArgs{ BlockDevice: pulumi.String("/dev/mapper/36005076802810e55400000000000145f"), }, }, }) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.libvirt.Volume; import com.pulumi.libvirt.VolumeArgs; import com.pulumi.libvirt.Domain; import com.pulumi.libvirt.DomainArgs; import com.pulumi.libvirt.inputs.DomainDiskArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var leap = new Volume("leap", VolumeArgs.builder() .name("leap") .source("http://someurl/openSUSE_Leap-42.1.qcow2") .build()); var mydisk = new Volume("mydisk", VolumeArgs.builder() .name("mydisk") .baseVolumeId(leap.id()) .build()); var domain1 = new Domain("domain1", DomainArgs.builder() .name("domain1") .disks( DomainDiskArgs.builder() .volumeId(mydisk.id()) .scsi("true") .build(), DomainDiskArgs.builder() .url("http://foo.com/install.iso") .build(), DomainDiskArgs.builder() .file("/absolute/path/to/disk.iso") .build(), DomainDiskArgs.builder() .blockDevice("/dev/mapper/36005076802810e55400000000000145f") .build()) .build()); } }
resources: leap: type: libvirt:Volume properties: name: leap source: http://someurl/openSUSE_Leap-42.1.qcow2 mydisk: type: libvirt:Volume properties: name: mydisk baseVolumeId: ${leap.id} domain1: type: libvirt:Domain properties: name: domain1 disks: - volumeId: ${mydisk.id} scsi: 'true' - url: http://foo.com/install.iso - file: /absolute/path/to/disk.iso - blockDevice: /dev/mapper/36005076802810e55400000000000145f
Also note that the
disk
block is actually a list of maps, so it is possible to declare several of them by using either the literal list and map syntax as in the following examples:
- block
Device String The path to the host device to use as the block device for this disk.
While
volume_id
,url
,file
andblock_device
are optional, it is intended that you use one of them.- file String
- The filename to use as the block device for this disk (read-only)
- scsi Boolean
- Use a scsi controller for this disk. The controller
model is set to
virtio-scsi
- url String
- The http url to use as the block device for this disk (read-only)
- volume
Id String - The volume id to use for this disk.
- wwn String
Specify a WWN to use for the disk if the disk is using a scsi controller, if not specified then a random wwn is generated for the disk
import * as pulumi from "@pulumi/pulumi"; import * as libvirt from "@pulumi/libvirt";
const leap = new libvirt.Volume("leap", { name: "leap", source: "http://someurl/openSUSE_Leap-42.1.qcow2", }); const mydisk = new libvirt.Volume("mydisk", { name: "mydisk", baseVolumeId: leap.id, }); const domain1 = new libvirt.Domain("domain1", { name: "domain1", disks: [ { volumeId: mydisk.id, scsi: true, }, { url: "http://foo.com/install.iso", }, { file: "/absolute/path/to/disk.iso", }, { blockDevice: "/dev/mapper/36005076802810e55400000000000145f", }, ], });
import pulumi import pulumi_libvirt as libvirt leap = libvirt.Volume("leap", name="leap", source="http://someurl/openSUSE_Leap-42.1.qcow2") mydisk = libvirt.Volume("mydisk", name="mydisk", base_volume_id=leap.id) domain1 = libvirt.Domain("domain1", name="domain1", disks=[ libvirt.DomainDiskArgs( volume_id=mydisk.id, scsi=True, ), libvirt.DomainDiskArgs( url="http://foo.com/install.iso", ), libvirt.DomainDiskArgs( file="/absolute/path/to/disk.iso", ), libvirt.DomainDiskArgs( block_device="/dev/mapper/36005076802810e55400000000000145f", ), ])
using System.Collections.Generic; using System.Linq; using Pulumi; using Libvirt = Pulumi.Libvirt; return await Deployment.RunAsync(() => { var leap = new Libvirt.Volume("leap", new() { Name = "leap", Source = "http://someurl/openSUSE_Leap-42.1.qcow2", }); var mydisk = new Libvirt.Volume("mydisk", new() { Name = "mydisk", BaseVolumeId = leap.Id, }); var domain1 = new Libvirt.Domain("domain1", new() { Name = "domain1", Disks = new[] { new Libvirt.Inputs.DomainDiskArgs { VolumeId = mydisk.Id, Scsi = true, }, new Libvirt.Inputs.DomainDiskArgs { Url = "http://foo.com/install.iso", }, new Libvirt.Inputs.DomainDiskArgs { File = "/absolute/path/to/disk.iso", }, new Libvirt.Inputs.DomainDiskArgs { BlockDevice = "/dev/mapper/36005076802810e55400000000000145f", }, }, }); });
package main import ( "github.com/pulumi/pulumi-libvirt/sdk/go/libvirt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { leap, err := libvirt.NewVolume(ctx, "leap", &libvirt.VolumeArgs{ Name: pulumi.String("leap"), Source: pulumi.String("http://someurl/openSUSE_Leap-42.1.qcow2"), }) if err != nil { return err } mydisk, err := libvirt.NewVolume(ctx, "mydisk", &libvirt.VolumeArgs{ Name: pulumi.String("mydisk"), BaseVolumeId: leap.ID(), }) if err != nil { return err } _, err = libvirt.NewDomain(ctx, "domain1", &libvirt.DomainArgs{ Name: pulumi.String("domain1"), Disks: libvirt.DomainDiskArray{ &libvirt.DomainDiskArgs{ VolumeId: mydisk.ID(), Scsi: pulumi.Bool(true), }, &libvirt.DomainDiskArgs{ Url: pulumi.String("http://foo.com/install.iso"), }, &libvirt.DomainDiskArgs{ File: pulumi.String("/absolute/path/to/disk.iso"), }, &libvirt.DomainDiskArgs{ BlockDevice: pulumi.String("/dev/mapper/36005076802810e55400000000000145f"), }, }, }) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.libvirt.Volume; import com.pulumi.libvirt.VolumeArgs; import com.pulumi.libvirt.Domain; import com.pulumi.libvirt.DomainArgs; import com.pulumi.libvirt.inputs.DomainDiskArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var leap = new Volume("leap", VolumeArgs.builder() .name("leap") .source("http://someurl/openSUSE_Leap-42.1.qcow2") .build()); var mydisk = new Volume("mydisk", VolumeArgs.builder() .name("mydisk") .baseVolumeId(leap.id()) .build()); var domain1 = new Domain("domain1", DomainArgs.builder() .name("domain1") .disks( DomainDiskArgs.builder() .volumeId(mydisk.id()) .scsi("true") .build(), DomainDiskArgs.builder() .url("http://foo.com/install.iso") .build(), DomainDiskArgs.builder() .file("/absolute/path/to/disk.iso") .build(), DomainDiskArgs.builder() .blockDevice("/dev/mapper/36005076802810e55400000000000145f") .build()) .build()); } }
resources: leap: type: libvirt:Volume properties: name: leap source: http://someurl/openSUSE_Leap-42.1.qcow2 mydisk: type: libvirt:Volume properties: name: mydisk baseVolumeId: ${leap.id} domain1: type: libvirt:Domain properties: name: domain1 disks: - volumeId: ${mydisk.id} scsi: 'true' - url: http://foo.com/install.iso - file: /absolute/path/to/disk.iso - blockDevice: /dev/mapper/36005076802810e55400000000000145f
Also note that the
disk
block is actually a list of maps, so it is possible to declare several of them by using either the literal list and map syntax as in the following examples:
- block
Device string The path to the host device to use as the block device for this disk.
While
volume_id
,url
,file
andblock_device
are optional, it is intended that you use one of them.- file string
- The filename to use as the block device for this disk (read-only)
- scsi boolean
- Use a scsi controller for this disk. The controller
model is set to
virtio-scsi
- url string
- The http url to use as the block device for this disk (read-only)
- volume
Id string - The volume id to use for this disk.
- wwn string
Specify a WWN to use for the disk if the disk is using a scsi controller, if not specified then a random wwn is generated for the disk
import * as pulumi from "@pulumi/pulumi"; import * as libvirt from "@pulumi/libvirt";
const leap = new libvirt.Volume("leap", { name: "leap", source: "http://someurl/openSUSE_Leap-42.1.qcow2", }); const mydisk = new libvirt.Volume("mydisk", { name: "mydisk", baseVolumeId: leap.id, }); const domain1 = new libvirt.Domain("domain1", { name: "domain1", disks: [ { volumeId: mydisk.id, scsi: true, }, { url: "http://foo.com/install.iso", }, { file: "/absolute/path/to/disk.iso", }, { blockDevice: "/dev/mapper/36005076802810e55400000000000145f", }, ], });
import pulumi import pulumi_libvirt as libvirt leap = libvirt.Volume("leap", name="leap", source="http://someurl/openSUSE_Leap-42.1.qcow2") mydisk = libvirt.Volume("mydisk", name="mydisk", base_volume_id=leap.id) domain1 = libvirt.Domain("domain1", name="domain1", disks=[ libvirt.DomainDiskArgs( volume_id=mydisk.id, scsi=True, ), libvirt.DomainDiskArgs( url="http://foo.com/install.iso", ), libvirt.DomainDiskArgs( file="/absolute/path/to/disk.iso", ), libvirt.DomainDiskArgs( block_device="/dev/mapper/36005076802810e55400000000000145f", ), ])
using System.Collections.Generic; using System.Linq; using Pulumi; using Libvirt = Pulumi.Libvirt; return await Deployment.RunAsync(() => { var leap = new Libvirt.Volume("leap", new() { Name = "leap", Source = "http://someurl/openSUSE_Leap-42.1.qcow2", }); var mydisk = new Libvirt.Volume("mydisk", new() { Name = "mydisk", BaseVolumeId = leap.Id, }); var domain1 = new Libvirt.Domain("domain1", new() { Name = "domain1", Disks = new[] { new Libvirt.Inputs.DomainDiskArgs { VolumeId = mydisk.Id, Scsi = true, }, new Libvirt.Inputs.DomainDiskArgs { Url = "http://foo.com/install.iso", }, new Libvirt.Inputs.DomainDiskArgs { File = "/absolute/path/to/disk.iso", }, new Libvirt.Inputs.DomainDiskArgs { BlockDevice = "/dev/mapper/36005076802810e55400000000000145f", }, }, }); });
package main import ( "github.com/pulumi/pulumi-libvirt/sdk/go/libvirt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { leap, err := libvirt.NewVolume(ctx, "leap", &libvirt.VolumeArgs{ Name: pulumi.String("leap"), Source: pulumi.String("http://someurl/openSUSE_Leap-42.1.qcow2"), }) if err != nil { return err } mydisk, err := libvirt.NewVolume(ctx, "mydisk", &libvirt.VolumeArgs{ Name: pulumi.String("mydisk"), BaseVolumeId: leap.ID(), }) if err != nil { return err } _, err = libvirt.NewDomain(ctx, "domain1", &libvirt.DomainArgs{ Name: pulumi.String("domain1"), Disks: libvirt.DomainDiskArray{ &libvirt.DomainDiskArgs{ VolumeId: mydisk.ID(), Scsi: pulumi.Bool(true), }, &libvirt.DomainDiskArgs{ Url: pulumi.String("http://foo.com/install.iso"), }, &libvirt.DomainDiskArgs{ File: pulumi.String("/absolute/path/to/disk.iso"), }, &libvirt.DomainDiskArgs{ BlockDevice: pulumi.String("/dev/mapper/36005076802810e55400000000000145f"), }, }, }) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.libvirt.Volume; import com.pulumi.libvirt.VolumeArgs; import com.pulumi.libvirt.Domain; import com.pulumi.libvirt.DomainArgs; import com.pulumi.libvirt.inputs.DomainDiskArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var leap = new Volume("leap", VolumeArgs.builder() .name("leap") .source("http://someurl/openSUSE_Leap-42.1.qcow2") .build()); var mydisk = new Volume("mydisk", VolumeArgs.builder() .name("mydisk") .baseVolumeId(leap.id()) .build()); var domain1 = new Domain("domain1", DomainArgs.builder() .name("domain1") .disks( DomainDiskArgs.builder() .volumeId(mydisk.id()) .scsi("true") .build(), DomainDiskArgs.builder() .url("http://foo.com/install.iso") .build(), DomainDiskArgs.builder() .file("/absolute/path/to/disk.iso") .build(), DomainDiskArgs.builder() .blockDevice("/dev/mapper/36005076802810e55400000000000145f") .build()) .build()); } }
resources: leap: type: libvirt:Volume properties: name: leap source: http://someurl/openSUSE_Leap-42.1.qcow2 mydisk: type: libvirt:Volume properties: name: mydisk baseVolumeId: ${leap.id} domain1: type: libvirt:Domain properties: name: domain1 disks: - volumeId: ${mydisk.id} scsi: 'true' - url: http://foo.com/install.iso - file: /absolute/path/to/disk.iso - blockDevice: /dev/mapper/36005076802810e55400000000000145f
Also note that the
disk
block is actually a list of maps, so it is possible to declare several of them by using either the literal list and map syntax as in the following examples:
- block_
device str The path to the host device to use as the block device for this disk.
While
volume_id
,url
,file
andblock_device
are optional, it is intended that you use one of them.- file str
- The filename to use as the block device for this disk (read-only)
- scsi bool
- Use a scsi controller for this disk. The controller
model is set to
virtio-scsi
- url str
- The http url to use as the block device for this disk (read-only)
- volume_
id str - The volume id to use for this disk.
- wwn str
Specify a WWN to use for the disk if the disk is using a scsi controller, if not specified then a random wwn is generated for the disk
import * as pulumi from "@pulumi/pulumi"; import * as libvirt from "@pulumi/libvirt";
const leap = new libvirt.Volume("leap", { name: "leap", source: "http://someurl/openSUSE_Leap-42.1.qcow2", }); const mydisk = new libvirt.Volume("mydisk", { name: "mydisk", baseVolumeId: leap.id, }); const domain1 = new libvirt.Domain("domain1", { name: "domain1", disks: [ { volumeId: mydisk.id, scsi: true, }, { url: "http://foo.com/install.iso", }, { file: "/absolute/path/to/disk.iso", }, { blockDevice: "/dev/mapper/36005076802810e55400000000000145f", }, ], });
import pulumi import pulumi_libvirt as libvirt leap = libvirt.Volume("leap", name="leap", source="http://someurl/openSUSE_Leap-42.1.qcow2") mydisk = libvirt.Volume("mydisk", name="mydisk", base_volume_id=leap.id) domain1 = libvirt.Domain("domain1", name="domain1", disks=[ libvirt.DomainDiskArgs( volume_id=mydisk.id, scsi=True, ), libvirt.DomainDiskArgs( url="http://foo.com/install.iso", ), libvirt.DomainDiskArgs( file="/absolute/path/to/disk.iso", ), libvirt.DomainDiskArgs( block_device="/dev/mapper/36005076802810e55400000000000145f", ), ])
using System.Collections.Generic; using System.Linq; using Pulumi; using Libvirt = Pulumi.Libvirt; return await Deployment.RunAsync(() => { var leap = new Libvirt.Volume("leap", new() { Name = "leap", Source = "http://someurl/openSUSE_Leap-42.1.qcow2", }); var mydisk = new Libvirt.Volume("mydisk", new() { Name = "mydisk", BaseVolumeId = leap.Id, }); var domain1 = new Libvirt.Domain("domain1", new() { Name = "domain1", Disks = new[] { new Libvirt.Inputs.DomainDiskArgs { VolumeId = mydisk.Id, Scsi = true, }, new Libvirt.Inputs.DomainDiskArgs { Url = "http://foo.com/install.iso", }, new Libvirt.Inputs.DomainDiskArgs { File = "/absolute/path/to/disk.iso", }, new Libvirt.Inputs.DomainDiskArgs { BlockDevice = "/dev/mapper/36005076802810e55400000000000145f", }, }, }); });
package main import ( "github.com/pulumi/pulumi-libvirt/sdk/go/libvirt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { leap, err := libvirt.NewVolume(ctx, "leap", &libvirt.VolumeArgs{ Name: pulumi.String("leap"), Source: pulumi.String("http://someurl/openSUSE_Leap-42.1.qcow2"), }) if err != nil { return err } mydisk, err := libvirt.NewVolume(ctx, "mydisk", &libvirt.VolumeArgs{ Name: pulumi.String("mydisk"), BaseVolumeId: leap.ID(), }) if err != nil { return err } _, err = libvirt.NewDomain(ctx, "domain1", &libvirt.DomainArgs{ Name: pulumi.String("domain1"), Disks: libvirt.DomainDiskArray{ &libvirt.DomainDiskArgs{ VolumeId: mydisk.ID(), Scsi: pulumi.Bool(true), }, &libvirt.DomainDiskArgs{ Url: pulumi.String("http://foo.com/install.iso"), }, &libvirt.DomainDiskArgs{ File: pulumi.String("/absolute/path/to/disk.iso"), }, &libvirt.DomainDiskArgs{ BlockDevice: pulumi.String("/dev/mapper/36005076802810e55400000000000145f"), }, }, }) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.libvirt.Volume; import com.pulumi.libvirt.VolumeArgs; import com.pulumi.libvirt.Domain; import com.pulumi.libvirt.DomainArgs; import com.pulumi.libvirt.inputs.DomainDiskArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var leap = new Volume("leap", VolumeArgs.builder() .name("leap") .source("http://someurl/openSUSE_Leap-42.1.qcow2") .build()); var mydisk = new Volume("mydisk", VolumeArgs.builder() .name("mydisk") .baseVolumeId(leap.id()) .build()); var domain1 = new Domain("domain1", DomainArgs.builder() .name("domain1") .disks( DomainDiskArgs.builder() .volumeId(mydisk.id()) .scsi("true") .build(), DomainDiskArgs.builder() .url("http://foo.com/install.iso") .build(), DomainDiskArgs.builder() .file("/absolute/path/to/disk.iso") .build(), DomainDiskArgs.builder() .blockDevice("/dev/mapper/36005076802810e55400000000000145f") .build()) .build()); } }
resources: leap: type: libvirt:Volume properties: name: leap source: http://someurl/openSUSE_Leap-42.1.qcow2 mydisk: type: libvirt:Volume properties: name: mydisk baseVolumeId: ${leap.id} domain1: type: libvirt:Domain properties: name: domain1 disks: - volumeId: ${mydisk.id} scsi: 'true' - url: http://foo.com/install.iso - file: /absolute/path/to/disk.iso - blockDevice: /dev/mapper/36005076802810e55400000000000145f
Also note that the
disk
block is actually a list of maps, so it is possible to declare several of them by using either the literal list and map syntax as in the following examples:
- block
Device String The path to the host device to use as the block device for this disk.
While
volume_id
,url
,file
andblock_device
are optional, it is intended that you use one of them.- file String
- The filename to use as the block device for this disk (read-only)
- scsi Boolean
- Use a scsi controller for this disk. The controller
model is set to
virtio-scsi
- url String
- The http url to use as the block device for this disk (read-only)
- volume
Id String - The volume id to use for this disk.
- wwn String
Specify a WWN to use for the disk if the disk is using a scsi controller, if not specified then a random wwn is generated for the disk
import * as pulumi from "@pulumi/pulumi"; import * as libvirt from "@pulumi/libvirt";
const leap = new libvirt.Volume("leap", { name: "leap", source: "http://someurl/openSUSE_Leap-42.1.qcow2", }); const mydisk = new libvirt.Volume("mydisk", { name: "mydisk", baseVolumeId: leap.id, }); const domain1 = new libvirt.Domain("domain1", { name: "domain1", disks: [ { volumeId: mydisk.id, scsi: true, }, { url: "http://foo.com/install.iso", }, { file: "/absolute/path/to/disk.iso", }, { blockDevice: "/dev/mapper/36005076802810e55400000000000145f", }, ], });
import pulumi import pulumi_libvirt as libvirt leap = libvirt.Volume("leap", name="leap", source="http://someurl/openSUSE_Leap-42.1.qcow2") mydisk = libvirt.Volume("mydisk", name="mydisk", base_volume_id=leap.id) domain1 = libvirt.Domain("domain1", name="domain1", disks=[ libvirt.DomainDiskArgs( volume_id=mydisk.id, scsi=True, ), libvirt.DomainDiskArgs( url="http://foo.com/install.iso", ), libvirt.DomainDiskArgs( file="/absolute/path/to/disk.iso", ), libvirt.DomainDiskArgs( block_device="/dev/mapper/36005076802810e55400000000000145f", ), ])
using System.Collections.Generic; using System.Linq; using Pulumi; using Libvirt = Pulumi.Libvirt; return await Deployment.RunAsync(() => { var leap = new Libvirt.Volume("leap", new() { Name = "leap", Source = "http://someurl/openSUSE_Leap-42.1.qcow2", }); var mydisk = new Libvirt.Volume("mydisk", new() { Name = "mydisk", BaseVolumeId = leap.Id, }); var domain1 = new Libvirt.Domain("domain1", new() { Name = "domain1", Disks = new[] { new Libvirt.Inputs.DomainDiskArgs { VolumeId = mydisk.Id, Scsi = true, }, new Libvirt.Inputs.DomainDiskArgs { Url = "http://foo.com/install.iso", }, new Libvirt.Inputs.DomainDiskArgs { File = "/absolute/path/to/disk.iso", }, new Libvirt.Inputs.DomainDiskArgs { BlockDevice = "/dev/mapper/36005076802810e55400000000000145f", }, }, }); });
package main import ( "github.com/pulumi/pulumi-libvirt/sdk/go/libvirt" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { leap, err := libvirt.NewVolume(ctx, "leap", &libvirt.VolumeArgs{ Name: pulumi.String("leap"), Source: pulumi.String("http://someurl/openSUSE_Leap-42.1.qcow2"), }) if err != nil { return err } mydisk, err := libvirt.NewVolume(ctx, "mydisk", &libvirt.VolumeArgs{ Name: pulumi.String("mydisk"), BaseVolumeId: leap.ID(), }) if err != nil { return err } _, err = libvirt.NewDomain(ctx, "domain1", &libvirt.DomainArgs{ Name: pulumi.String("domain1"), Disks: libvirt.DomainDiskArray{ &libvirt.DomainDiskArgs{ VolumeId: mydisk.ID(), Scsi: pulumi.Bool(true), }, &libvirt.DomainDiskArgs{ Url: pulumi.String("http://foo.com/install.iso"), }, &libvirt.DomainDiskArgs{ File: pulumi.String("/absolute/path/to/disk.iso"), }, &libvirt.DomainDiskArgs{ BlockDevice: pulumi.String("/dev/mapper/36005076802810e55400000000000145f"), }, }, }) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.libvirt.Volume; import com.pulumi.libvirt.VolumeArgs; import com.pulumi.libvirt.Domain; import com.pulumi.libvirt.DomainArgs; import com.pulumi.libvirt.inputs.DomainDiskArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var leap = new Volume("leap", VolumeArgs.builder() .name("leap") .source("http://someurl/openSUSE_Leap-42.1.qcow2") .build()); var mydisk = new Volume("mydisk", VolumeArgs.builder() .name("mydisk") .baseVolumeId(leap.id()) .build()); var domain1 = new Domain("domain1", DomainArgs.builder() .name("domain1") .disks( DomainDiskArgs.builder() .volumeId(mydisk.id()) .scsi("true") .build(), DomainDiskArgs.builder() .url("http://foo.com/install.iso") .build(), DomainDiskArgs.builder() .file("/absolute/path/to/disk.iso") .build(), DomainDiskArgs.builder() .blockDevice("/dev/mapper/36005076802810e55400000000000145f") .build()) .build()); } }
resources: leap: type: libvirt:Volume properties: name: leap source: http://someurl/openSUSE_Leap-42.1.qcow2 mydisk: type: libvirt:Volume properties: name: mydisk baseVolumeId: ${leap.id} domain1: type: libvirt:Domain properties: name: domain1 disks: - volumeId: ${mydisk.id} scsi: 'true' - url: http://foo.com/install.iso - file: /absolute/path/to/disk.iso - blockDevice: /dev/mapper/36005076802810e55400000000000145f
Also note that the
disk
block is actually a list of maps, so it is possible to declare several of them by using either the literal list and map syntax as in the following examples:
DomainFilesystem, DomainFilesystemArgs
- Source string
- the directory of the host to be shared with the guest.
- Target string
- an arbitrary string tag that is exported to the guest as a hint for where to mount the source.
- Accessmode string
- specifies the security mode for accessing the source. By default
the
mapped
mode is chosen. - Readonly bool
enables exporting filesystem as a readonly mount for guest, by default read-only access is given.
Example:
- Source string
- the directory of the host to be shared with the guest.
- Target string
- an arbitrary string tag that is exported to the guest as a hint for where to mount the source.
- Accessmode string
- specifies the security mode for accessing the source. By default
the
mapped
mode is chosen. - Readonly bool
enables exporting filesystem as a readonly mount for guest, by default read-only access is given.
Example:
- source String
- the directory of the host to be shared with the guest.
- target String
- an arbitrary string tag that is exported to the guest as a hint for where to mount the source.
- accessmode String
- specifies the security mode for accessing the source. By default
the
mapped
mode is chosen. - readonly Boolean
enables exporting filesystem as a readonly mount for guest, by default read-only access is given.
Example:
- source string
- the directory of the host to be shared with the guest.
- target string
- an arbitrary string tag that is exported to the guest as a hint for where to mount the source.
- accessmode string
- specifies the security mode for accessing the source. By default
the
mapped
mode is chosen. - readonly boolean
enables exporting filesystem as a readonly mount for guest, by default read-only access is given.
Example:
- source str
- the directory of the host to be shared with the guest.
- target str
- an arbitrary string tag that is exported to the guest as a hint for where to mount the source.
- accessmode str
- specifies the security mode for accessing the source. By default
the
mapped
mode is chosen. - readonly bool
enables exporting filesystem as a readonly mount for guest, by default read-only access is given.
Example:
- source String
- the directory of the host to be shared with the guest.
- target String
- an arbitrary string tag that is exported to the guest as a hint for where to mount the source.
- accessmode String
- specifies the security mode for accessing the source. By default
the
mapped
mode is chosen. - readonly Boolean
enables exporting filesystem as a readonly mount for guest, by default read-only access is given.
Example:
DomainGraphics, DomainGraphicsArgs
- Autoport bool
- defaults to "yes"
- Listen
Address string - IP Address where the VNC listener should be started if
listen_type
is set toaddress
. Defaults to 127.0.0.1 - Listen
Type string - "listen type", defaults to "none"
- Type string
- the type of graphics emulation (default is "spice")
- Websocket int
Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
On occasion we have found it necessary to set a
type
ofvnc
and alisten_type
ofaddress
with certain builds of QEMU.With
listen_address
it is possible to specify a listener address for the virtual machines VNC server. Usually this is an IP of the host system.The
graphics
block will look as follows:
- Autoport bool
- defaults to "yes"
- Listen
Address string - IP Address where the VNC listener should be started if
listen_type
is set toaddress
. Defaults to 127.0.0.1 - Listen
Type string - "listen type", defaults to "none"
- Type string
- the type of graphics emulation (default is "spice")
- Websocket int
Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
On occasion we have found it necessary to set a
type
ofvnc
and alisten_type
ofaddress
with certain builds of QEMU.With
listen_address
it is possible to specify a listener address for the virtual machines VNC server. Usually this is an IP of the host system.The
graphics
block will look as follows:
- autoport Boolean
- defaults to "yes"
- listen
Address String - IP Address where the VNC listener should be started if
listen_type
is set toaddress
. Defaults to 127.0.0.1 - listen
Type String - "listen type", defaults to "none"
- type String
- the type of graphics emulation (default is "spice")
- websocket Integer
Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
On occasion we have found it necessary to set a
type
ofvnc
and alisten_type
ofaddress
with certain builds of QEMU.With
listen_address
it is possible to specify a listener address for the virtual machines VNC server. Usually this is an IP of the host system.The
graphics
block will look as follows:
- autoport boolean
- defaults to "yes"
- listen
Address string - IP Address where the VNC listener should be started if
listen_type
is set toaddress
. Defaults to 127.0.0.1 - listen
Type string - "listen type", defaults to "none"
- type string
- the type of graphics emulation (default is "spice")
- websocket number
Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
On occasion we have found it necessary to set a
type
ofvnc
and alisten_type
ofaddress
with certain builds of QEMU.With
listen_address
it is possible to specify a listener address for the virtual machines VNC server. Usually this is an IP of the host system.The
graphics
block will look as follows:
- autoport bool
- defaults to "yes"
- listen_
address str - IP Address where the VNC listener should be started if
listen_type
is set toaddress
. Defaults to 127.0.0.1 - listen_
type str - "listen type", defaults to "none"
- type str
- the type of graphics emulation (default is "spice")
- websocket int
Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
On occasion we have found it necessary to set a
type
ofvnc
and alisten_type
ofaddress
with certain builds of QEMU.With
listen_address
it is possible to specify a listener address for the virtual machines VNC server. Usually this is an IP of the host system.The
graphics
block will look as follows:
- autoport Boolean
- defaults to "yes"
- listen
Address String - IP Address where the VNC listener should be started if
listen_type
is set toaddress
. Defaults to 127.0.0.1 - listen
Type String - "listen type", defaults to "none"
- type String
- the type of graphics emulation (default is "spice")
- websocket Number
Port to listen on for VNC WebSocket functionality (-1 meaning auto-allocation)
On occasion we have found it necessary to set a
type
ofvnc
and alisten_type
ofaddress
with certain builds of QEMU.With
listen_address
it is possible to specify a listener address for the virtual machines VNC server. Usually this is an IP of the host system.The
graphics
block will look as follows:
DomainNetworkInterface, DomainNetworkInterfaceArgs
- Addresses List<string>
- Bridge string
- Hostname string
- Mac string
- Macvtap string
- Network
Id string - Network
Name string - Passthrough string
- Vepa string
- Wait
For boolLease
- Addresses []string
- Bridge string
- Hostname string
- Mac string
- Macvtap string
- Network
Id string - Network
Name string - Passthrough string
- Vepa string
- Wait
For boolLease
- addresses List<String>
- bridge String
- hostname String
- mac String
- macvtap String
- network
Id String - network
Name String - passthrough String
- vepa String
- wait
For BooleanLease
- addresses string[]
- bridge string
- hostname string
- mac string
- macvtap string
- network
Id string - network
Name string - passthrough string
- vepa string
- wait
For booleanLease
- addresses Sequence[str]
- bridge str
- hostname str
- mac str
- macvtap str
- network_
id str - network_
name str - passthrough str
- vepa str
- wait_
for_ boollease
- addresses List<String>
- bridge String
- hostname String
- mac String
- macvtap String
- network
Id String - network
Name String - passthrough String
- vepa String
- wait
For BooleanLease
DomainNvram, DomainNvramArgs
DomainTpm, DomainTpmArgs
- Backend
Device stringPath Path to TPM device on the host, ex:
/dev/tpm0
Additional attributes when
backend_type
is "emulator":- Backend
Encryption stringSecret - Secret object for encrypting the TPM state
- Backend
Persistent boolState - Keep the TPM state when a transient domain is powered off or undefined
- Backend
Type string TPM backend, either
passthrough
oremulator
(default:emulator
)Additional attributes when
backend_type
is "passthrough":- Backend
Version string - TPM version
- Model string
- TPM model provided to the guest
- Backend
Device stringPath Path to TPM device on the host, ex:
/dev/tpm0
Additional attributes when
backend_type
is "emulator":- Backend
Encryption stringSecret - Secret object for encrypting the TPM state
- Backend
Persistent boolState - Keep the TPM state when a transient domain is powered off or undefined
- Backend
Type string TPM backend, either
passthrough
oremulator
(default:emulator
)Additional attributes when
backend_type
is "passthrough":- Backend
Version string - TPM version
- Model string
- TPM model provided to the guest
- backend
Device StringPath Path to TPM device on the host, ex:
/dev/tpm0
Additional attributes when
backend_type
is "emulator":- backend
Encryption StringSecret - Secret object for encrypting the TPM state
- backend
Persistent BooleanState - Keep the TPM state when a transient domain is powered off or undefined
- backend
Type String TPM backend, either
passthrough
oremulator
(default:emulator
)Additional attributes when
backend_type
is "passthrough":- backend
Version String - TPM version
- model String
- TPM model provided to the guest
- backend
Device stringPath Path to TPM device on the host, ex:
/dev/tpm0
Additional attributes when
backend_type
is "emulator":- backend
Encryption stringSecret - Secret object for encrypting the TPM state
- backend
Persistent booleanState - Keep the TPM state when a transient domain is powered off or undefined
- backend
Type string TPM backend, either
passthrough
oremulator
(default:emulator
)Additional attributes when
backend_type
is "passthrough":- backend
Version string - TPM version
- model string
- TPM model provided to the guest
- backend_
device_ strpath Path to TPM device on the host, ex:
/dev/tpm0
Additional attributes when
backend_type
is "emulator":- backend_
encryption_ strsecret - Secret object for encrypting the TPM state
- backend_
persistent_ boolstate - Keep the TPM state when a transient domain is powered off or undefined
- backend_
type str TPM backend, either
passthrough
oremulator
(default:emulator
)Additional attributes when
backend_type
is "passthrough":- backend_
version str - TPM version
- model str
- TPM model provided to the guest
- backend
Device StringPath Path to TPM device on the host, ex:
/dev/tpm0
Additional attributes when
backend_type
is "emulator":- backend
Encryption StringSecret - Secret object for encrypting the TPM state
- backend
Persistent BooleanState - Keep the TPM state when a transient domain is powered off or undefined
- backend
Type String TPM backend, either
passthrough
oremulator
(default:emulator
)Additional attributes when
backend_type
is "passthrough":- backend
Version String - TPM version
- model String
- TPM model provided to the guest
DomainVideo, DomainVideoArgs
DomainXml, DomainXmlArgs
- Xslt string
- Xslt string
- xslt String
- xslt string
- xslt str
- xslt String
Package Details
- Repository
- libvirt pulumi/pulumi-libvirt
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
libvirt
Terraform Provider.