VirtualMachine
Create a VirtualMachine Resource
new VirtualMachine(name: string, args: VirtualMachineArgs, opts?: CustomResourceOptions);def VirtualMachine(resource_name, opts=None, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, cdrom=None, clone=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, custom_attributes=None, datacenter_id=None, datastore_cluster_id=None, datastore_id=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, firmware=None, folder=None, force_power_off=None, guest_id=None, hardware_version=None, host_system_id=None, hv_mode=None, ide_controller_count=None, ignored_guest_ips=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_share_count=None, memory_share_level=None, migrate_wait_timeout=None, name=None, nested_hv_enabled=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, ovf_deploy=None, pci_device_ids=None, poweron_timeout=None, resource_pool_id=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_count=None, scsi_bus_sharing=None, scsi_controller_count=None, scsi_type=None, shutdown_wait_timeout=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, tags=None, vapp=None, wait_for_guest_ip_timeout=None, wait_for_guest_net_routable=None, wait_for_guest_net_timeout=None, __props__=None);func NewVirtualMachine(ctx *Context, name string, args VirtualMachineArgs, opts ...ResourceOption) (*VirtualMachine, error)public VirtualMachine(string name, VirtualMachineArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
VirtualMachine Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The VirtualMachine resource accepts the following input properties:
- Resource
Pool stringId The managed object reference ID of the resource pool to put this virtual machine in. See the section on virtual machine migration for details on changing this value.
- Alternate
Guest stringName The guest name for the operating system when
guest_idisotherorother-64.- Annotation string
A user-provided description of the virtual machine. The default is no annotation.
- Boot
Delay int The number of milliseconds to wait before starting the boot sequence. The default is no delay.
- Boot
Retry intDelay The number of milliseconds to wait before retrying the boot sequence. This only valid if
boot_retry_enabledis true. Default:10000(10 seconds).- Boot
Retry boolEnabled If set to true, a virtual machine that fails to boot will try again after the delay defined in
boot_retry_delay. Default:false.- Cdrom
Pulumi.
VSphere. Inputs. Virtual Machine Cdrom Args A specification for a CDROM device on this virtual machine. See CDROM options below.
- Clone
Pulumi.
VSphere. Inputs. Virtual Machine Clone Args When specified, the VM will be created as a clone of a specified template. Optional customization options can be submitted as well. See creating a virtual machine from a template for more details.
- Cpu
Hot boolAdd Enabled Allow CPUs to be added to this virtual machine while it is running.
- Cpu
Hot boolRemove Enabled Allow CPUs to be removed to this virtual machine while it is running.
- Cpu
Limit int The maximum amount of CPU (in MHz) that this virtual machine can consume, regardless of available resources. The default is no limit.
- Cpu
Performance boolCounters Enabled Enable CPU performance counters on this virtual machine. Default:
false.- Cpu
Reservation int The amount of CPU (in MHz) that this virtual machine is guaranteed. The default is no reservation.
- int
The number of CPU shares allocated to the virtual machine when the
cpu_share_leveliscustom.- string
The allocation level for CPU resources. Can be one of
high,low,normal, orcustom. Default:custom.- Custom
Attributes Dictionary<string, string> Map of custom attribute ids to attribute value strings to set for virtual machine.
- Datacenter
Id string The datacenter id. Required only when deploying an ovf template.
- Datastore
Cluster stringId The managed object reference ID of the datastore cluster ID to use. This setting applies to entire virtual machine and implies that you wish to use Storage DRS with this virtual machine. See the section on virtual machine migration for details on changing this value.
- Datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- Disks
List<Pulumi.
VSphere. Inputs. Virtual Machine Disk Args> A specification for a virtual disk device on this virtual machine. See disk options below.
- Efi
Secure boolBoot Enabled When the
firmwaretype is set to isefi, this enables EFI secure boot. Default:false.- Enable
Disk boolUuid Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest. Default:
false.- Enable
Logging bool Enable logging of virtual machine events to a log file stored in the virtual machine directory. Default:
false.- Ept
Rvi stringMode The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of
automatic,on, oroff. Default:automatic.- Extra
Config Dictionary<string, string> Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata.
- Firmware string
The firmware interface to use on the virtual machine. Can be one of
biosorEFI. Default:bios.- Folder string
The path to the folder to put this virtual machine in, relative to the datacenter that the resource pool is in.
- Force
Power boolOff If a guest shutdown failed or timed out while updating or destroying (see
shutdown_wait_timeout), force the power-off of the virtual machine. Default:true.- Guest
Id string The guest ID for the operating system type. For a full list of possible values, see [here][vmware-docs-guest-ids]. Default:
other-64.- Hardware
Version int The hardware version number. Valid range is from 4 to 15. The hardware version cannot be downgraded. See [virtual machine hardware compatibility][virtual-machine-hardware-compatibility] for more details.
- Host
System stringId An optional managed object reference ID of a host to put this virtual machine on. See the section on virtual machine migration for details on changing this value. If a
host_system_idis not supplied, vSphere will select a host in the resource pool to place the virtual machine, according to any defaults or DRS policies in place.- Hv
Mode string The (non-nested) hardware virtualization setting for this virtual machine. Can be one of
hvAuto,hvOn, orhvOff. Default:hvAuto.- Ide
Controller intCount The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- Ignored
Guest List<string>Ips List of IP addresses and CIDR networks to ignore while waiting for an available IP address using either of the waiters. Any IP addresses in this list will be ignored if they show up so that the waiter will continue to wait for a real IP address. Default: [].
- Latency
Sensitivity string Controls the scheduling delay of the virtual machine. Use a higher sensitivity for applications that require lower latency, such as VOIP, media player applications, or applications that require frequent access to mouse or keyboard devices. Can be one of
low,normal,medium, orhigh.- Memory int
The size of the virtual machine’s memory, in MB. Default:
1024(1 GB).- Memory
Hot boolAdd Enabled Allow memory to be added to this virtual machine while it is running.
- Memory
Limit int The maximum amount of memory (in MB) that this virtual machine can consume, regardless of available resources. The default is no limit.
- Memory
Reservation int The amount of memory (in MB) that this virtual machine is guaranteed. The default is no reservation.
- int
The number of memory shares allocated to the virtual machine when the
memory_share_leveliscustom.- string
The allocation level for memory resources. Can be one of
high,low,normal, orcustom. Default:custom.- Migrate
Wait intTimeout The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: 10 minutes. Also see the section on virtual machine migration.
- Name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.- Nested
Hv boolEnabled Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest. Default:
false.- Network
Interfaces List<Pulumi.VSphere. Inputs. Virtual Machine Network Interface Args> A specification for a virtual NIC on this virtual machine. See network interface options below.
- Num
Cores intPer Socket The number of cores per socket in this virtual machine. The number of vCPUs on the virtual machine will be
num_cpusdivided bynum_cores_per_socket. If specified, the value supplied tonum_cpusmust be evenly divisible by this value. Default:1.- Num
Cpus int The total number of virtual processor cores to assign to this virtual machine. Default:
1.- Ovf
Deploy Pulumi.VSphere. Inputs. Virtual Machine Ovf Deploy Args When specified, the VM will be deployed from the provided ovf/ova template. See creating a virtual machine from a ovf/ova template for more details.
- Pci
Device List<string>Ids List of host PCI device IDs to create PCI passthroughs for.
- Poweron
Timeout int The amount of time, in seconds, that we will be trying to power on a VM
- Run
Tools boolScripts After Power On Enable the execution of post-power-on scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts After Resume Enable the execution of post-resume scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts Before Guest Reboot Enable the execution of pre-reboot scripts when VMware tools is installed. Default:
false.- Run
Tools boolScripts Before Guest Shutdown Enable the execution of pre-shutdown scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts Before Guest Standby Enable the execution of pre-standby scripts when VMware tools is installed. Default:
true.- Sata
Controller intCount The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- Scsi
Bus stringSharing Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Default:
noSharing.- Scsi
Controller intCount The number of SCSI controllers that this provider manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers. Default:
1.- Scsi
Type string The type of SCSI bus this virtual machine will have. Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or pvscsi (VMware Paravirtual). Defualt:
pvscsi.- Shutdown
Wait intTimeout The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If
force_power_offis set to true, the VM will be force powered-off after this timeout, otherwise an error is returned. Default: 3 minutes.- Storage
Policy stringId The UUID of the storage policy to assign to this disk.
- Swap
Placement stringPolicy The swap file placement policy for this virtual machine. Can be one of
inherit,hostLocal, orvmDirectory. Default:inherit.- Sync
Time boolWith Host Enable guest clock synchronization with the host. Requires VMware tools to be installed. Default:
false.- List<string>
The IDs of any tags to attach to this resource.
- Vapp
Pulumi.
VSphere. Inputs. Virtual Machine Vapp Args Optional vApp configuration. The only sub-key available is
properties, which is a key/value map of properties for virtual machines imported from OVF or OVA files. See Using vApp properties to supply OVF/OVA configuration for more details.- Wait
For intGuest Ip Timeout The amount of time, in minutes, to wait for an available guest IP address on this virtual machine. This should only be used if your version of VMware Tools does not allow the
wait_for_guest_net_timeoutwaiter to be used. A value less than 1 disables the waiter. Default: 0.- Wait
For boolGuest Net Routable Controls whether or not the guest network waiter waits for a routable address. When
false, the waiter does not wait for a default gateway, nor are IP addresses checked against any discovered default gateways as part of its success criteria. This property is ignored if thewait_for_guest_ip_timeoutwaiter is used. Default:true.- Wait
For intGuest Net Timeout The amount of time, in minutes, to wait for an available IP address on this virtual machine’s NICs. Older versions of VMware Tools do not populate this property. In those cases, this waiter can be disabled and the
wait_for_guest_ip_timeoutwaiter can be used instead. A value less than 1 disables the waiter. Default: 5 minutes.
- Resource
Pool stringId The managed object reference ID of the resource pool to put this virtual machine in. See the section on virtual machine migration for details on changing this value.
- Alternate
Guest stringName The guest name for the operating system when
guest_idisotherorother-64.- Annotation string
A user-provided description of the virtual machine. The default is no annotation.
- Boot
Delay int The number of milliseconds to wait before starting the boot sequence. The default is no delay.
- Boot
Retry intDelay The number of milliseconds to wait before retrying the boot sequence. This only valid if
boot_retry_enabledis true. Default:10000(10 seconds).- Boot
Retry boolEnabled If set to true, a virtual machine that fails to boot will try again after the delay defined in
boot_retry_delay. Default:false.- Cdrom
Virtual
Machine Cdrom A specification for a CDROM device on this virtual machine. See CDROM options below.
- Clone
Virtual
Machine Clone When specified, the VM will be created as a clone of a specified template. Optional customization options can be submitted as well. See creating a virtual machine from a template for more details.
- Cpu
Hot boolAdd Enabled Allow CPUs to be added to this virtual machine while it is running.
- Cpu
Hot boolRemove Enabled Allow CPUs to be removed to this virtual machine while it is running.
- Cpu
Limit int The maximum amount of CPU (in MHz) that this virtual machine can consume, regardless of available resources. The default is no limit.
- Cpu
Performance boolCounters Enabled Enable CPU performance counters on this virtual machine. Default:
false.- Cpu
Reservation int The amount of CPU (in MHz) that this virtual machine is guaranteed. The default is no reservation.
- int
The number of CPU shares allocated to the virtual machine when the
cpu_share_leveliscustom.- string
The allocation level for CPU resources. Can be one of
high,low,normal, orcustom. Default:custom.- Custom
Attributes map[string]string Map of custom attribute ids to attribute value strings to set for virtual machine.
- Datacenter
Id string The datacenter id. Required only when deploying an ovf template.
- Datastore
Cluster stringId The managed object reference ID of the datastore cluster ID to use. This setting applies to entire virtual machine and implies that you wish to use Storage DRS with this virtual machine. See the section on virtual machine migration for details on changing this value.
- Datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- Disks
[]Virtual
Machine Disk A specification for a virtual disk device on this virtual machine. See disk options below.
- Efi
Secure boolBoot Enabled When the
firmwaretype is set to isefi, this enables EFI secure boot. Default:false.- Enable
Disk boolUuid Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest. Default:
false.- Enable
Logging bool Enable logging of virtual machine events to a log file stored in the virtual machine directory. Default:
false.- Ept
Rvi stringMode The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of
automatic,on, oroff. Default:automatic.- Extra
Config map[string]string Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata.
- Firmware string
The firmware interface to use on the virtual machine. Can be one of
biosorEFI. Default:bios.- Folder string
The path to the folder to put this virtual machine in, relative to the datacenter that the resource pool is in.
- Force
Power boolOff If a guest shutdown failed or timed out while updating or destroying (see
shutdown_wait_timeout), force the power-off of the virtual machine. Default:true.- Guest
Id string The guest ID for the operating system type. For a full list of possible values, see [here][vmware-docs-guest-ids]. Default:
other-64.- Hardware
Version int The hardware version number. Valid range is from 4 to 15. The hardware version cannot be downgraded. See [virtual machine hardware compatibility][virtual-machine-hardware-compatibility] for more details.
- Host
System stringId An optional managed object reference ID of a host to put this virtual machine on. See the section on virtual machine migration for details on changing this value. If a
host_system_idis not supplied, vSphere will select a host in the resource pool to place the virtual machine, according to any defaults or DRS policies in place.- Hv
Mode string The (non-nested) hardware virtualization setting for this virtual machine. Can be one of
hvAuto,hvOn, orhvOff. Default:hvAuto.- Ide
Controller intCount The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- Ignored
Guest []stringIps List of IP addresses and CIDR networks to ignore while waiting for an available IP address using either of the waiters. Any IP addresses in this list will be ignored if they show up so that the waiter will continue to wait for a real IP address. Default: [].
- Latency
Sensitivity string Controls the scheduling delay of the virtual machine. Use a higher sensitivity for applications that require lower latency, such as VOIP, media player applications, or applications that require frequent access to mouse or keyboard devices. Can be one of
low,normal,medium, orhigh.- Memory int
The size of the virtual machine’s memory, in MB. Default:
1024(1 GB).- Memory
Hot boolAdd Enabled Allow memory to be added to this virtual machine while it is running.
- Memory
Limit int The maximum amount of memory (in MB) that this virtual machine can consume, regardless of available resources. The default is no limit.
- Memory
Reservation int The amount of memory (in MB) that this virtual machine is guaranteed. The default is no reservation.
- int
The number of memory shares allocated to the virtual machine when the
memory_share_leveliscustom.- string
The allocation level for memory resources. Can be one of
high,low,normal, orcustom. Default:custom.- Migrate
Wait intTimeout The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: 10 minutes. Also see the section on virtual machine migration.
- Name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.- Nested
Hv boolEnabled Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest. Default:
false.- Network
Interfaces []VirtualMachine Network Interface A specification for a virtual NIC on this virtual machine. See network interface options below.
- Num
Cores intPer Socket The number of cores per socket in this virtual machine. The number of vCPUs on the virtual machine will be
num_cpusdivided bynum_cores_per_socket. If specified, the value supplied tonum_cpusmust be evenly divisible by this value. Default:1.- Num
Cpus int The total number of virtual processor cores to assign to this virtual machine. Default:
1.- Ovf
Deploy VirtualMachine Ovf Deploy When specified, the VM will be deployed from the provided ovf/ova template. See creating a virtual machine from a ovf/ova template for more details.
- Pci
Device []stringIds List of host PCI device IDs to create PCI passthroughs for.
- Poweron
Timeout int The amount of time, in seconds, that we will be trying to power on a VM
- Run
Tools boolScripts After Power On Enable the execution of post-power-on scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts After Resume Enable the execution of post-resume scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts Before Guest Reboot Enable the execution of pre-reboot scripts when VMware tools is installed. Default:
false.- Run
Tools boolScripts Before Guest Shutdown Enable the execution of pre-shutdown scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts Before Guest Standby Enable the execution of pre-standby scripts when VMware tools is installed. Default:
true.- Sata
Controller intCount The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- Scsi
Bus stringSharing Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Default:
noSharing.- Scsi
Controller intCount The number of SCSI controllers that this provider manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers. Default:
1.- Scsi
Type string The type of SCSI bus this virtual machine will have. Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or pvscsi (VMware Paravirtual). Defualt:
pvscsi.- Shutdown
Wait intTimeout The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If
force_power_offis set to true, the VM will be force powered-off after this timeout, otherwise an error is returned. Default: 3 minutes.- Storage
Policy stringId The UUID of the storage policy to assign to this disk.
- Swap
Placement stringPolicy The swap file placement policy for this virtual machine. Can be one of
inherit,hostLocal, orvmDirectory. Default:inherit.- Sync
Time boolWith Host Enable guest clock synchronization with the host. Requires VMware tools to be installed. Default:
false.- []string
The IDs of any tags to attach to this resource.
- Vapp
Virtual
Machine Vapp Optional vApp configuration. The only sub-key available is
properties, which is a key/value map of properties for virtual machines imported from OVF or OVA files. See Using vApp properties to supply OVF/OVA configuration for more details.- Wait
For intGuest Ip Timeout The amount of time, in minutes, to wait for an available guest IP address on this virtual machine. This should only be used if your version of VMware Tools does not allow the
wait_for_guest_net_timeoutwaiter to be used. A value less than 1 disables the waiter. Default: 0.- Wait
For boolGuest Net Routable Controls whether or not the guest network waiter waits for a routable address. When
false, the waiter does not wait for a default gateway, nor are IP addresses checked against any discovered default gateways as part of its success criteria. This property is ignored if thewait_for_guest_ip_timeoutwaiter is used. Default:true.- Wait
For intGuest Net Timeout The amount of time, in minutes, to wait for an available IP address on this virtual machine’s NICs. Older versions of VMware Tools do not populate this property. In those cases, this waiter can be disabled and the
wait_for_guest_ip_timeoutwaiter can be used instead. A value less than 1 disables the waiter. Default: 5 minutes.
- resource
Pool stringId The managed object reference ID of the resource pool to put this virtual machine in. See the section on virtual machine migration for details on changing this value.
- alternate
Guest stringName The guest name for the operating system when
guest_idisotherorother-64.- annotation string
A user-provided description of the virtual machine. The default is no annotation.
- boot
Delay number The number of milliseconds to wait before starting the boot sequence. The default is no delay.
- boot
Retry numberDelay The number of milliseconds to wait before retrying the boot sequence. This only valid if
boot_retry_enabledis true. Default:10000(10 seconds).- boot
Retry booleanEnabled If set to true, a virtual machine that fails to boot will try again after the delay defined in
boot_retry_delay. Default:false.- cdrom
Virtual
Machine Cdrom A specification for a CDROM device on this virtual machine. See CDROM options below.
- clone
Virtual
Machine Clone When specified, the VM will be created as a clone of a specified template. Optional customization options can be submitted as well. See creating a virtual machine from a template for more details.
- cpu
Hot booleanAdd Enabled Allow CPUs to be added to this virtual machine while it is running.
- cpu
Hot booleanRemove Enabled Allow CPUs to be removed to this virtual machine while it is running.
- cpu
Limit number The maximum amount of CPU (in MHz) that this virtual machine can consume, regardless of available resources. The default is no limit.
- cpu
Performance booleanCounters Enabled Enable CPU performance counters on this virtual machine. Default:
false.- cpu
Reservation number The amount of CPU (in MHz) that this virtual machine is guaranteed. The default is no reservation.
- number
The number of CPU shares allocated to the virtual machine when the
cpu_share_leveliscustom.- string
The allocation level for CPU resources. Can be one of
high,low,normal, orcustom. Default:custom.- custom
Attributes {[key: string]: string} Map of custom attribute ids to attribute value strings to set for virtual machine.
- datacenter
Id string The datacenter id. Required only when deploying an ovf template.
- datastore
Cluster stringId The managed object reference ID of the datastore cluster ID to use. This setting applies to entire virtual machine and implies that you wish to use Storage DRS with this virtual machine. See the section on virtual machine migration for details on changing this value.
- datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- disks
Virtual
Machine Disk[] A specification for a virtual disk device on this virtual machine. See disk options below.
- efi
Secure booleanBoot Enabled When the
firmwaretype is set to isefi, this enables EFI secure boot. Default:false.- enable
Disk booleanUuid Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest. Default:
false.- enable
Logging boolean Enable logging of virtual machine events to a log file stored in the virtual machine directory. Default:
false.- ept
Rvi stringMode The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of
automatic,on, oroff. Default:automatic.- extra
Config {[key: string]: string} Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata.
- firmware string
The firmware interface to use on the virtual machine. Can be one of
biosorEFI. Default:bios.- folder string
The path to the folder to put this virtual machine in, relative to the datacenter that the resource pool is in.
- force
Power booleanOff If a guest shutdown failed or timed out while updating or destroying (see
shutdown_wait_timeout), force the power-off of the virtual machine. Default:true.- guest
Id string The guest ID for the operating system type. For a full list of possible values, see [here][vmware-docs-guest-ids]. Default:
other-64.- hardware
Version number The hardware version number. Valid range is from 4 to 15. The hardware version cannot be downgraded. See [virtual machine hardware compatibility][virtual-machine-hardware-compatibility] for more details.
- host
System stringId An optional managed object reference ID of a host to put this virtual machine on. See the section on virtual machine migration for details on changing this value. If a
host_system_idis not supplied, vSphere will select a host in the resource pool to place the virtual machine, according to any defaults or DRS policies in place.- hv
Mode string The (non-nested) hardware virtualization setting for this virtual machine. Can be one of
hvAuto,hvOn, orhvOff. Default:hvAuto.- ide
Controller numberCount The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- ignored
Guest string[]Ips List of IP addresses and CIDR networks to ignore while waiting for an available IP address using either of the waiters. Any IP addresses in this list will be ignored if they show up so that the waiter will continue to wait for a real IP address. Default: [].
- latency
Sensitivity string Controls the scheduling delay of the virtual machine. Use a higher sensitivity for applications that require lower latency, such as VOIP, media player applications, or applications that require frequent access to mouse or keyboard devices. Can be one of
low,normal,medium, orhigh.- memory number
The size of the virtual machine’s memory, in MB. Default:
1024(1 GB).- memory
Hot booleanAdd Enabled Allow memory to be added to this virtual machine while it is running.
- memory
Limit number The maximum amount of memory (in MB) that this virtual machine can consume, regardless of available resources. The default is no limit.
- memory
Reservation number The amount of memory (in MB) that this virtual machine is guaranteed. The default is no reservation.
- number
The number of memory shares allocated to the virtual machine when the
memory_share_leveliscustom.- string
The allocation level for memory resources. Can be one of
high,low,normal, orcustom. Default:custom.- migrate
Wait numberTimeout The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: 10 minutes. Also see the section on virtual machine migration.
- name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.- nested
Hv booleanEnabled Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest. Default:
false.- network
Interfaces VirtualMachine Network Interface[] A specification for a virtual NIC on this virtual machine. See network interface options below.
- num
Cores numberPer Socket The number of cores per socket in this virtual machine. The number of vCPUs on the virtual machine will be
num_cpusdivided bynum_cores_per_socket. If specified, the value supplied tonum_cpusmust be evenly divisible by this value. Default:1.- num
Cpus number The total number of virtual processor cores to assign to this virtual machine. Default:
1.- ovf
Deploy VirtualMachine Ovf Deploy When specified, the VM will be deployed from the provided ovf/ova template. See creating a virtual machine from a ovf/ova template for more details.
- pci
Device string[]Ids List of host PCI device IDs to create PCI passthroughs for.
- poweron
Timeout number The amount of time, in seconds, that we will be trying to power on a VM
- run
Tools booleanScripts After Power On Enable the execution of post-power-on scripts when VMware tools is installed. Default:
true.- run
Tools booleanScripts After Resume Enable the execution of post-resume scripts when VMware tools is installed. Default:
true.- run
Tools booleanScripts Before Guest Reboot Enable the execution of pre-reboot scripts when VMware tools is installed. Default:
false.- run
Tools booleanScripts Before Guest Shutdown Enable the execution of pre-shutdown scripts when VMware tools is installed. Default:
true.- run
Tools booleanScripts Before Guest Standby Enable the execution of pre-standby scripts when VMware tools is installed. Default:
true.- sata
Controller numberCount The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- scsi
Bus stringSharing Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Default:
noSharing.- scsi
Controller numberCount The number of SCSI controllers that this provider manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers. Default:
1.- scsi
Type string The type of SCSI bus this virtual machine will have. Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or pvscsi (VMware Paravirtual). Defualt:
pvscsi.- shutdown
Wait numberTimeout The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If
force_power_offis set to true, the VM will be force powered-off after this timeout, otherwise an error is returned. Default: 3 minutes.- storage
Policy stringId The UUID of the storage policy to assign to this disk.
- swap
Placement stringPolicy The swap file placement policy for this virtual machine. Can be one of
inherit,hostLocal, orvmDirectory. Default:inherit.- sync
Time booleanWith Host Enable guest clock synchronization with the host. Requires VMware tools to be installed. Default:
false.- string[]
The IDs of any tags to attach to this resource.
- vapp
Virtual
Machine Vapp Optional vApp configuration. The only sub-key available is
properties, which is a key/value map of properties for virtual machines imported from OVF or OVA files. See Using vApp properties to supply OVF/OVA configuration for more details.- wait
For numberGuest Ip Timeout The amount of time, in minutes, to wait for an available guest IP address on this virtual machine. This should only be used if your version of VMware Tools does not allow the
wait_for_guest_net_timeoutwaiter to be used. A value less than 1 disables the waiter. Default: 0.- wait
For booleanGuest Net Routable Controls whether or not the guest network waiter waits for a routable address. When
false, the waiter does not wait for a default gateway, nor are IP addresses checked against any discovered default gateways as part of its success criteria. This property is ignored if thewait_for_guest_ip_timeoutwaiter is used. Default:true.- wait
For numberGuest Net Timeout The amount of time, in minutes, to wait for an available IP address on this virtual machine’s NICs. Older versions of VMware Tools do not populate this property. In those cases, this waiter can be disabled and the
wait_for_guest_ip_timeoutwaiter can be used instead. A value less than 1 disables the waiter. Default: 5 minutes.
- resource_
pool_ strid The managed object reference ID of the resource pool to put this virtual machine in. See the section on virtual machine migration for details on changing this value.
- alternate_
guest_ strname The guest name for the operating system when
guest_idisotherorother-64.- annotation str
A user-provided description of the virtual machine. The default is no annotation.
- boot_
delay float The number of milliseconds to wait before starting the boot sequence. The default is no delay.
- boot_
retry_ floatdelay The number of milliseconds to wait before retrying the boot sequence. This only valid if
boot_retry_enabledis true. Default:10000(10 seconds).- boot_
retry_ boolenabled If set to true, a virtual machine that fails to boot will try again after the delay defined in
boot_retry_delay. Default:false.- cdrom
Dict[Virtual
Machine Cdrom] A specification for a CDROM device on this virtual machine. See CDROM options below.
- clone
Dict[Virtual
Machine Clone] When specified, the VM will be created as a clone of a specified template. Optional customization options can be submitted as well. See creating a virtual machine from a template for more details.
- cpu_
hot_ booladd_ enabled Allow CPUs to be added to this virtual machine while it is running.
- cpu_
hot_ boolremove_ enabled Allow CPUs to be removed to this virtual machine while it is running.
- cpu_
limit float The maximum amount of CPU (in MHz) that this virtual machine can consume, regardless of available resources. The default is no limit.
- cpu_
performance_ boolcounters_ enabled Enable CPU performance counters on this virtual machine. Default:
false.- cpu_
reservation float The amount of CPU (in MHz) that this virtual machine is guaranteed. The default is no reservation.
- float
The number of CPU shares allocated to the virtual machine when the
cpu_share_leveliscustom.- str
The allocation level for CPU resources. Can be one of
high,low,normal, orcustom. Default:custom.- custom_
attributes Dict[str, str] Map of custom attribute ids to attribute value strings to set for virtual machine.
- datacenter_
id str The datacenter id. Required only when deploying an ovf template.
- datastore_
cluster_ strid The managed object reference ID of the datastore cluster ID to use. This setting applies to entire virtual machine and implies that you wish to use Storage DRS with this virtual machine. See the section on virtual machine migration for details on changing this value.
- datastore_
id str The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- disks
List[Virtual
Machine Disk] A specification for a virtual disk device on this virtual machine. See disk options below.
- efi_
secure_ boolboot_ enabled When the
firmwaretype is set to isefi, this enables EFI secure boot. Default:false.- enable_
disk_ booluuid Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest. Default:
false.- enable_
logging bool Enable logging of virtual machine events to a log file stored in the virtual machine directory. Default:
false.- ept_
rvi_ strmode The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of
automatic,on, oroff. Default:automatic.- extra_
config Dict[str, str] Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata.
- firmware str
The firmware interface to use on the virtual machine. Can be one of
biosorEFI. Default:bios.- folder str
The path to the folder to put this virtual machine in, relative to the datacenter that the resource pool is in.
- force_
power_ booloff If a guest shutdown failed or timed out while updating or destroying (see
shutdown_wait_timeout), force the power-off of the virtual machine. Default:true.- guest_
id str The guest ID for the operating system type. For a full list of possible values, see [here][vmware-docs-guest-ids]. Default:
other-64.- hardware_
version float The hardware version number. Valid range is from 4 to 15. The hardware version cannot be downgraded. See [virtual machine hardware compatibility][virtual-machine-hardware-compatibility] for more details.
- host_
system_ strid An optional managed object reference ID of a host to put this virtual machine on. See the section on virtual machine migration for details on changing this value. If a
host_system_idis not supplied, vSphere will select a host in the resource pool to place the virtual machine, according to any defaults or DRS policies in place.- hv_
mode str The (non-nested) hardware virtualization setting for this virtual machine. Can be one of
hvAuto,hvOn, orhvOff. Default:hvAuto.- ide_
controller_ floatcount The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- ignored_
guest_ List[str]ips List of IP addresses and CIDR networks to ignore while waiting for an available IP address using either of the waiters. Any IP addresses in this list will be ignored if they show up so that the waiter will continue to wait for a real IP address. Default: [].
- latency_
sensitivity str Controls the scheduling delay of the virtual machine. Use a higher sensitivity for applications that require lower latency, such as VOIP, media player applications, or applications that require frequent access to mouse or keyboard devices. Can be one of
low,normal,medium, orhigh.- memory float
The size of the virtual machine’s memory, in MB. Default:
1024(1 GB).- memory_
hot_ booladd_ enabled Allow memory to be added to this virtual machine while it is running.
- memory_
limit float The maximum amount of memory (in MB) that this virtual machine can consume, regardless of available resources. The default is no limit.
- memory_
reservation float The amount of memory (in MB) that this virtual machine is guaranteed. The default is no reservation.
- float
The number of memory shares allocated to the virtual machine when the
memory_share_leveliscustom.- str
The allocation level for memory resources. Can be one of
high,low,normal, orcustom. Default:custom.- migrate_
wait_ floattimeout The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: 10 minutes. Also see the section on virtual machine migration.
- name str
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.- nested_
hv_ boolenabled Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest. Default:
false.- network_
interfaces List[VirtualMachine Network Interface] A specification for a virtual NIC on this virtual machine. See network interface options below.
- num_
cores_ floatper_ socket The number of cores per socket in this virtual machine. The number of vCPUs on the virtual machine will be
num_cpusdivided bynum_cores_per_socket. If specified, the value supplied tonum_cpusmust be evenly divisible by this value. Default:1.- num_
cpus float The total number of virtual processor cores to assign to this virtual machine. Default:
1.- ovf_
deploy Dict[VirtualMachine Ovf Deploy] When specified, the VM will be deployed from the provided ovf/ova template. See creating a virtual machine from a ovf/ova template for more details.
- pci_
device_ List[str]ids List of host PCI device IDs to create PCI passthroughs for.
- poweron_
timeout float The amount of time, in seconds, that we will be trying to power on a VM
- run_
tools_ boolscripts_ after_ power_ on Enable the execution of post-power-on scripts when VMware tools is installed. Default:
true.- run_
tools_ boolscripts_ after_ resume Enable the execution of post-resume scripts when VMware tools is installed. Default:
true.- run_
tools_ boolscripts_ before_ guest_ reboot Enable the execution of pre-reboot scripts when VMware tools is installed. Default:
false.- run_
tools_ boolscripts_ before_ guest_ shutdown Enable the execution of pre-shutdown scripts when VMware tools is installed. Default:
true.- run_
tools_ boolscripts_ before_ guest_ standby Enable the execution of pre-standby scripts when VMware tools is installed. Default:
true.- sata_
controller_ floatcount The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- scsi_
bus_ strsharing Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Default:
noSharing.- scsi_
controller_ floatcount The number of SCSI controllers that this provider manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers. Default:
1.- scsi_
type str The type of SCSI bus this virtual machine will have. Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or pvscsi (VMware Paravirtual). Defualt:
pvscsi.- shutdown_
wait_ floattimeout The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If
force_power_offis set to true, the VM will be force powered-off after this timeout, otherwise an error is returned. Default: 3 minutes.- storage_
policy_ strid The UUID of the storage policy to assign to this disk.
- swap_
placement_ strpolicy The swap file placement policy for this virtual machine. Can be one of
inherit,hostLocal, orvmDirectory. Default:inherit.- sync_
time_ boolwith_ host Enable guest clock synchronization with the host. Requires VMware tools to be installed. Default:
false.- List[str]
The IDs of any tags to attach to this resource.
- vapp
Dict[Virtual
Machine Vapp] Optional vApp configuration. The only sub-key available is
properties, which is a key/value map of properties for virtual machines imported from OVF or OVA files. See Using vApp properties to supply OVF/OVA configuration for more details.- wait_
for_ floatguest_ ip_ timeout The amount of time, in minutes, to wait for an available guest IP address on this virtual machine. This should only be used if your version of VMware Tools does not allow the
wait_for_guest_net_timeoutwaiter to be used. A value less than 1 disables the waiter. Default: 0.- wait_
for_ boolguest_ net_ routable Controls whether or not the guest network waiter waits for a routable address. When
false, the waiter does not wait for a default gateway, nor are IP addresses checked against any discovered default gateways as part of its success criteria. This property is ignored if thewait_for_guest_ip_timeoutwaiter is used. Default:true.- wait_
for_ floatguest_ net_ timeout The amount of time, in minutes, to wait for an available IP address on this virtual machine’s NICs. Older versions of VMware Tools do not populate this property. In those cases, this waiter can be disabled and the
wait_for_guest_ip_timeoutwaiter can be used instead. A value less than 1 disables the waiter. Default: 5 minutes.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachine resource produces the following output properties:
- Change
Version string A unique identifier for a given version of the last configuration applied, such the timestamp of the last update to the configuration.
- Default
Ip stringAddress The IP address selected by the provider to be used with any provisioners configured on this resource. Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- Guest
Ip List<string>Addresses The current list of IP addresses on this machine, including the value of
default_ip_address. If VMware tools is not running on the virtual machine, or if the VM is powered off, this list will be empty. *moid: The managed object reference ID of the created virtual machine.- Id string
- The provider-assigned unique ID for this managed resource.
- Imported bool
This is flagged if the virtual machine has been imported, or the state has been migrated from a previous version of the resource. It influences the behavior of the first post-import apply operation. See the section on importing below.
- Moid string
The machine object ID from VMWare
- Reboot
Required bool Value internal to the provider used to determine if a configuration set change requires a reboot. This value is only useful during an update process and gets reset on refresh.
- Uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- Vapp
Transports List<string> Computed value which is only valid for cloned virtual machines. A list of vApp transport methods supported by the source virtual machine or template.
- Vmware
Tools stringStatus The state of VMware tools in the guest. This will determine the proper course of action for some device operations.
- Vmx
Path string The path of the virtual machine’s configuration file in the VM’s datastore.
- Change
Version string A unique identifier for a given version of the last configuration applied, such the timestamp of the last update to the configuration.
- Default
Ip stringAddress The IP address selected by the provider to be used with any provisioners configured on this resource. Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- Guest
Ip []stringAddresses The current list of IP addresses on this machine, including the value of
default_ip_address. If VMware tools is not running on the virtual machine, or if the VM is powered off, this list will be empty. *moid: The managed object reference ID of the created virtual machine.- Id string
- The provider-assigned unique ID for this managed resource.
- Imported bool
This is flagged if the virtual machine has been imported, or the state has been migrated from a previous version of the resource. It influences the behavior of the first post-import apply operation. See the section on importing below.
- Moid string
The machine object ID from VMWare
- Reboot
Required bool Value internal to the provider used to determine if a configuration set change requires a reboot. This value is only useful during an update process and gets reset on refresh.
- Uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- Vapp
Transports []string Computed value which is only valid for cloned virtual machines. A list of vApp transport methods supported by the source virtual machine or template.
- Vmware
Tools stringStatus The state of VMware tools in the guest. This will determine the proper course of action for some device operations.
- Vmx
Path string The path of the virtual machine’s configuration file in the VM’s datastore.
- change
Version string A unique identifier for a given version of the last configuration applied, such the timestamp of the last update to the configuration.
- default
Ip stringAddress The IP address selected by the provider to be used with any provisioners configured on this resource. Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- guest
Ip string[]Addresses The current list of IP addresses on this machine, including the value of
default_ip_address. If VMware tools is not running on the virtual machine, or if the VM is powered off, this list will be empty. *moid: The managed object reference ID of the created virtual machine.- id string
- The provider-assigned unique ID for this managed resource.
- imported boolean
This is flagged if the virtual machine has been imported, or the state has been migrated from a previous version of the resource. It influences the behavior of the first post-import apply operation. See the section on importing below.
- moid string
The machine object ID from VMWare
- reboot
Required boolean Value internal to the provider used to determine if a configuration set change requires a reboot. This value is only useful during an update process and gets reset on refresh.
- uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- vapp
Transports string[] Computed value which is only valid for cloned virtual machines. A list of vApp transport methods supported by the source virtual machine or template.
- vmware
Tools stringStatus The state of VMware tools in the guest. This will determine the proper course of action for some device operations.
- vmx
Path string The path of the virtual machine’s configuration file in the VM’s datastore.
- change_
version str A unique identifier for a given version of the last configuration applied, such the timestamp of the last update to the configuration.
- default_
ip_ straddress The IP address selected by the provider to be used with any provisioners configured on this resource. Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- guest_
ip_ List[str]addresses The current list of IP addresses on this machine, including the value of
default_ip_address. If VMware tools is not running on the virtual machine, or if the VM is powered off, this list will be empty. *moid: The managed object reference ID of the created virtual machine.- id str
- The provider-assigned unique ID for this managed resource.
- imported bool
This is flagged if the virtual machine has been imported, or the state has been migrated from a previous version of the resource. It influences the behavior of the first post-import apply operation. See the section on importing below.
- moid str
The machine object ID from VMWare
- reboot_
required bool Value internal to the provider used to determine if a configuration set change requires a reboot. This value is only useful during an update process and gets reset on refresh.
- uuid str
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- vapp_
transports List[str] Computed value which is only valid for cloned virtual machines. A list of vApp transport methods supported by the source virtual machine or template.
- vmware_
tools_ strstatus The state of VMware tools in the guest. This will determine the proper course of action for some device operations.
- vmx_
path str The path of the virtual machine’s configuration file in the VM’s datastore.
Look up an Existing VirtualMachine Resource
Get an existing VirtualMachine 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?: VirtualMachineState, opts?: CustomResourceOptions): VirtualMachinestatic get(resource_name, id, opts=None, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, cdrom=None, change_version=None, clone=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, custom_attributes=None, datacenter_id=None, datastore_cluster_id=None, datastore_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, firmware=None, folder=None, force_power_off=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, host_system_id=None, hv_mode=None, ide_controller_count=None, ignored_guest_ips=None, imported=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_share_count=None, memory_share_level=None, migrate_wait_timeout=None, moid=None, name=None, nested_hv_enabled=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, ovf_deploy=None, pci_device_ids=None, poweron_timeout=None, reboot_required=None, resource_pool_id=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_count=None, scsi_bus_sharing=None, scsi_controller_count=None, scsi_type=None, shutdown_wait_timeout=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, tags=None, uuid=None, vapp=None, vapp_transports=None, vmware_tools_status=None, vmx_path=None, wait_for_guest_ip_timeout=None, wait_for_guest_net_routable=None, wait_for_guest_net_timeout=None, __props__=None);func GetVirtualMachine(ctx *Context, name string, id IDInput, state *VirtualMachineState, opts ...ResourceOption) (*VirtualMachine, error)public static VirtualMachine Get(string name, Input<string> id, VirtualMachineState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Alternate
Guest stringName The guest name for the operating system when
guest_idisotherorother-64.- Annotation string
A user-provided description of the virtual machine. The default is no annotation.
- Boot
Delay int The number of milliseconds to wait before starting the boot sequence. The default is no delay.
- Boot
Retry intDelay The number of milliseconds to wait before retrying the boot sequence. This only valid if
boot_retry_enabledis true. Default:10000(10 seconds).- Boot
Retry boolEnabled If set to true, a virtual machine that fails to boot will try again after the delay defined in
boot_retry_delay. Default:false.- Cdrom
Pulumi.
VSphere. Inputs. Virtual Machine Cdrom Args A specification for a CDROM device on this virtual machine. See CDROM options below.
- Change
Version string A unique identifier for a given version of the last configuration applied, such the timestamp of the last update to the configuration.
- Clone
Pulumi.
VSphere. Inputs. Virtual Machine Clone Args When specified, the VM will be created as a clone of a specified template. Optional customization options can be submitted as well. See creating a virtual machine from a template for more details.
- Cpu
Hot boolAdd Enabled Allow CPUs to be added to this virtual machine while it is running.
- Cpu
Hot boolRemove Enabled Allow CPUs to be removed to this virtual machine while it is running.
- Cpu
Limit int The maximum amount of CPU (in MHz) that this virtual machine can consume, regardless of available resources. The default is no limit.
- Cpu
Performance boolCounters Enabled Enable CPU performance counters on this virtual machine. Default:
false.- Cpu
Reservation int The amount of CPU (in MHz) that this virtual machine is guaranteed. The default is no reservation.
- int
The number of CPU shares allocated to the virtual machine when the
cpu_share_leveliscustom.- string
The allocation level for CPU resources. Can be one of
high,low,normal, orcustom. Default:custom.- Custom
Attributes Dictionary<string, string> Map of custom attribute ids to attribute value strings to set for virtual machine.
- Datacenter
Id string The datacenter id. Required only when deploying an ovf template.
- Datastore
Cluster stringId The managed object reference ID of the datastore cluster ID to use. This setting applies to entire virtual machine and implies that you wish to use Storage DRS with this virtual machine. See the section on virtual machine migration for details on changing this value.
- Datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- Default
Ip stringAddress The IP address selected by the provider to be used with any provisioners configured on this resource. Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- Disks
List<Pulumi.
VSphere. Inputs. Virtual Machine Disk Args> A specification for a virtual disk device on this virtual machine. See disk options below.
- Efi
Secure boolBoot Enabled When the
firmwaretype is set to isefi, this enables EFI secure boot. Default:false.- Enable
Disk boolUuid Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest. Default:
false.- Enable
Logging bool Enable logging of virtual machine events to a log file stored in the virtual machine directory. Default:
false.- Ept
Rvi stringMode The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of
automatic,on, oroff. Default:automatic.- Extra
Config Dictionary<string, string> Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata.
- Firmware string
The firmware interface to use on the virtual machine. Can be one of
biosorEFI. Default:bios.- Folder string
The path to the folder to put this virtual machine in, relative to the datacenter that the resource pool is in.
- Force
Power boolOff If a guest shutdown failed or timed out while updating or destroying (see
shutdown_wait_timeout), force the power-off of the virtual machine. Default:true.- Guest
Id string The guest ID for the operating system type. For a full list of possible values, see [here][vmware-docs-guest-ids]. Default:
other-64.- Guest
Ip List<string>Addresses The current list of IP addresses on this machine, including the value of
default_ip_address. If VMware tools is not running on the virtual machine, or if the VM is powered off, this list will be empty. *moid: The managed object reference ID of the created virtual machine.- Hardware
Version int The hardware version number. Valid range is from 4 to 15. The hardware version cannot be downgraded. See [virtual machine hardware compatibility][virtual-machine-hardware-compatibility] for more details.
- Host
System stringId An optional managed object reference ID of a host to put this virtual machine on. See the section on virtual machine migration for details on changing this value. If a
host_system_idis not supplied, vSphere will select a host in the resource pool to place the virtual machine, according to any defaults or DRS policies in place.- Hv
Mode string The (non-nested) hardware virtualization setting for this virtual machine. Can be one of
hvAuto,hvOn, orhvOff. Default:hvAuto.- Ide
Controller intCount The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- Ignored
Guest List<string>Ips List of IP addresses and CIDR networks to ignore while waiting for an available IP address using either of the waiters. Any IP addresses in this list will be ignored if they show up so that the waiter will continue to wait for a real IP address. Default: [].
- Imported bool
This is flagged if the virtual machine has been imported, or the state has been migrated from a previous version of the resource. It influences the behavior of the first post-import apply operation. See the section on importing below.
- Latency
Sensitivity string Controls the scheduling delay of the virtual machine. Use a higher sensitivity for applications that require lower latency, such as VOIP, media player applications, or applications that require frequent access to mouse or keyboard devices. Can be one of
low,normal,medium, orhigh.- Memory int
The size of the virtual machine’s memory, in MB. Default:
1024(1 GB).- Memory
Hot boolAdd Enabled Allow memory to be added to this virtual machine while it is running.
- Memory
Limit int The maximum amount of memory (in MB) that this virtual machine can consume, regardless of available resources. The default is no limit.
- Memory
Reservation int The amount of memory (in MB) that this virtual machine is guaranteed. The default is no reservation.
- int
The number of memory shares allocated to the virtual machine when the
memory_share_leveliscustom.- string
The allocation level for memory resources. Can be one of
high,low,normal, orcustom. Default:custom.- Migrate
Wait intTimeout The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: 10 minutes. Also see the section on virtual machine migration.
- Moid string
The machine object ID from VMWare
- Name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.- Nested
Hv boolEnabled Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest. Default:
false.- Network
Interfaces List<Pulumi.VSphere. Inputs. Virtual Machine Network Interface Args> A specification for a virtual NIC on this virtual machine. See network interface options below.
- Num
Cores intPer Socket The number of cores per socket in this virtual machine. The number of vCPUs on the virtual machine will be
num_cpusdivided bynum_cores_per_socket. If specified, the value supplied tonum_cpusmust be evenly divisible by this value. Default:1.- Num
Cpus int The total number of virtual processor cores to assign to this virtual machine. Default:
1.- Ovf
Deploy Pulumi.VSphere. Inputs. Virtual Machine Ovf Deploy Args When specified, the VM will be deployed from the provided ovf/ova template. See creating a virtual machine from a ovf/ova template for more details.
- Pci
Device List<string>Ids List of host PCI device IDs to create PCI passthroughs for.
- Poweron
Timeout int The amount of time, in seconds, that we will be trying to power on a VM
- Reboot
Required bool Value internal to the provider used to determine if a configuration set change requires a reboot. This value is only useful during an update process and gets reset on refresh.
- Resource
Pool stringId The managed object reference ID of the resource pool to put this virtual machine in. See the section on virtual machine migration for details on changing this value.
- Run
Tools boolScripts After Power On Enable the execution of post-power-on scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts After Resume Enable the execution of post-resume scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts Before Guest Reboot Enable the execution of pre-reboot scripts when VMware tools is installed. Default:
false.- Run
Tools boolScripts Before Guest Shutdown Enable the execution of pre-shutdown scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts Before Guest Standby Enable the execution of pre-standby scripts when VMware tools is installed. Default:
true.- Sata
Controller intCount The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- Scsi
Bus stringSharing Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Default:
noSharing.- Scsi
Controller intCount The number of SCSI controllers that this provider manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers. Default:
1.- Scsi
Type string The type of SCSI bus this virtual machine will have. Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or pvscsi (VMware Paravirtual). Defualt:
pvscsi.- Shutdown
Wait intTimeout The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If
force_power_offis set to true, the VM will be force powered-off after this timeout, otherwise an error is returned. Default: 3 minutes.- Storage
Policy stringId The UUID of the storage policy to assign to this disk.
- Swap
Placement stringPolicy The swap file placement policy for this virtual machine. Can be one of
inherit,hostLocal, orvmDirectory. Default:inherit.- Sync
Time boolWith Host Enable guest clock synchronization with the host. Requires VMware tools to be installed. Default:
false.- List<string>
The IDs of any tags to attach to this resource.
- Uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- Vapp
Pulumi.
VSphere. Inputs. Virtual Machine Vapp Args Optional vApp configuration. The only sub-key available is
properties, which is a key/value map of properties for virtual machines imported from OVF or OVA files. See Using vApp properties to supply OVF/OVA configuration for more details.- Vapp
Transports List<string> Computed value which is only valid for cloned virtual machines. A list of vApp transport methods supported by the source virtual machine or template.
- Vmware
Tools stringStatus The state of VMware tools in the guest. This will determine the proper course of action for some device operations.
- Vmx
Path string The path of the virtual machine’s configuration file in the VM’s datastore.
- Wait
For intGuest Ip Timeout The amount of time, in minutes, to wait for an available guest IP address on this virtual machine. This should only be used if your version of VMware Tools does not allow the
wait_for_guest_net_timeoutwaiter to be used. A value less than 1 disables the waiter. Default: 0.- Wait
For boolGuest Net Routable Controls whether or not the guest network waiter waits for a routable address. When
false, the waiter does not wait for a default gateway, nor are IP addresses checked against any discovered default gateways as part of its success criteria. This property is ignored if thewait_for_guest_ip_timeoutwaiter is used. Default:true.- Wait
For intGuest Net Timeout The amount of time, in minutes, to wait for an available IP address on this virtual machine’s NICs. Older versions of VMware Tools do not populate this property. In those cases, this waiter can be disabled and the
wait_for_guest_ip_timeoutwaiter can be used instead. A value less than 1 disables the waiter. Default: 5 minutes.
- Alternate
Guest stringName The guest name for the operating system when
guest_idisotherorother-64.- Annotation string
A user-provided description of the virtual machine. The default is no annotation.
- Boot
Delay int The number of milliseconds to wait before starting the boot sequence. The default is no delay.
- Boot
Retry intDelay The number of milliseconds to wait before retrying the boot sequence. This only valid if
boot_retry_enabledis true. Default:10000(10 seconds).- Boot
Retry boolEnabled If set to true, a virtual machine that fails to boot will try again after the delay defined in
boot_retry_delay. Default:false.- Cdrom
Virtual
Machine Cdrom A specification for a CDROM device on this virtual machine. See CDROM options below.
- Change
Version string A unique identifier for a given version of the last configuration applied, such the timestamp of the last update to the configuration.
- Clone
Virtual
Machine Clone When specified, the VM will be created as a clone of a specified template. Optional customization options can be submitted as well. See creating a virtual machine from a template for more details.
- Cpu
Hot boolAdd Enabled Allow CPUs to be added to this virtual machine while it is running.
- Cpu
Hot boolRemove Enabled Allow CPUs to be removed to this virtual machine while it is running.
- Cpu
Limit int The maximum amount of CPU (in MHz) that this virtual machine can consume, regardless of available resources. The default is no limit.
- Cpu
Performance boolCounters Enabled Enable CPU performance counters on this virtual machine. Default:
false.- Cpu
Reservation int The amount of CPU (in MHz) that this virtual machine is guaranteed. The default is no reservation.
- int
The number of CPU shares allocated to the virtual machine when the
cpu_share_leveliscustom.- string
The allocation level for CPU resources. Can be one of
high,low,normal, orcustom. Default:custom.- Custom
Attributes map[string]string Map of custom attribute ids to attribute value strings to set for virtual machine.
- Datacenter
Id string The datacenter id. Required only when deploying an ovf template.
- Datastore
Cluster stringId The managed object reference ID of the datastore cluster ID to use. This setting applies to entire virtual machine and implies that you wish to use Storage DRS with this virtual machine. See the section on virtual machine migration for details on changing this value.
- Datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- Default
Ip stringAddress The IP address selected by the provider to be used with any provisioners configured on this resource. Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- Disks
[]Virtual
Machine Disk A specification for a virtual disk device on this virtual machine. See disk options below.
- Efi
Secure boolBoot Enabled When the
firmwaretype is set to isefi, this enables EFI secure boot. Default:false.- Enable
Disk boolUuid Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest. Default:
false.- Enable
Logging bool Enable logging of virtual machine events to a log file stored in the virtual machine directory. Default:
false.- Ept
Rvi stringMode The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of
automatic,on, oroff. Default:automatic.- Extra
Config map[string]string Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata.
- Firmware string
The firmware interface to use on the virtual machine. Can be one of
biosorEFI. Default:bios.- Folder string
The path to the folder to put this virtual machine in, relative to the datacenter that the resource pool is in.
- Force
Power boolOff If a guest shutdown failed or timed out while updating or destroying (see
shutdown_wait_timeout), force the power-off of the virtual machine. Default:true.- Guest
Id string The guest ID for the operating system type. For a full list of possible values, see [here][vmware-docs-guest-ids]. Default:
other-64.- Guest
Ip []stringAddresses The current list of IP addresses on this machine, including the value of
default_ip_address. If VMware tools is not running on the virtual machine, or if the VM is powered off, this list will be empty. *moid: The managed object reference ID of the created virtual machine.- Hardware
Version int The hardware version number. Valid range is from 4 to 15. The hardware version cannot be downgraded. See [virtual machine hardware compatibility][virtual-machine-hardware-compatibility] for more details.
- Host
System stringId An optional managed object reference ID of a host to put this virtual machine on. See the section on virtual machine migration for details on changing this value. If a
host_system_idis not supplied, vSphere will select a host in the resource pool to place the virtual machine, according to any defaults or DRS policies in place.- Hv
Mode string The (non-nested) hardware virtualization setting for this virtual machine. Can be one of
hvAuto,hvOn, orhvOff. Default:hvAuto.- Ide
Controller intCount The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- Ignored
Guest []stringIps List of IP addresses and CIDR networks to ignore while waiting for an available IP address using either of the waiters. Any IP addresses in this list will be ignored if they show up so that the waiter will continue to wait for a real IP address. Default: [].
- Imported bool
This is flagged if the virtual machine has been imported, or the state has been migrated from a previous version of the resource. It influences the behavior of the first post-import apply operation. See the section on importing below.
- Latency
Sensitivity string Controls the scheduling delay of the virtual machine. Use a higher sensitivity for applications that require lower latency, such as VOIP, media player applications, or applications that require frequent access to mouse or keyboard devices. Can be one of
low,normal,medium, orhigh.- Memory int
The size of the virtual machine’s memory, in MB. Default:
1024(1 GB).- Memory
Hot boolAdd Enabled Allow memory to be added to this virtual machine while it is running.
- Memory
Limit int The maximum amount of memory (in MB) that this virtual machine can consume, regardless of available resources. The default is no limit.
- Memory
Reservation int The amount of memory (in MB) that this virtual machine is guaranteed. The default is no reservation.
- int
The number of memory shares allocated to the virtual machine when the
memory_share_leveliscustom.- string
The allocation level for memory resources. Can be one of
high,low,normal, orcustom. Default:custom.- Migrate
Wait intTimeout The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: 10 minutes. Also see the section on virtual machine migration.
- Moid string
The machine object ID from VMWare
- Name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.- Nested
Hv boolEnabled Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest. Default:
false.- Network
Interfaces []VirtualMachine Network Interface A specification for a virtual NIC on this virtual machine. See network interface options below.
- Num
Cores intPer Socket The number of cores per socket in this virtual machine. The number of vCPUs on the virtual machine will be
num_cpusdivided bynum_cores_per_socket. If specified, the value supplied tonum_cpusmust be evenly divisible by this value. Default:1.- Num
Cpus int The total number of virtual processor cores to assign to this virtual machine. Default:
1.- Ovf
Deploy VirtualMachine Ovf Deploy When specified, the VM will be deployed from the provided ovf/ova template. See creating a virtual machine from a ovf/ova template for more details.
- Pci
Device []stringIds List of host PCI device IDs to create PCI passthroughs for.
- Poweron
Timeout int The amount of time, in seconds, that we will be trying to power on a VM
- Reboot
Required bool Value internal to the provider used to determine if a configuration set change requires a reboot. This value is only useful during an update process and gets reset on refresh.
- Resource
Pool stringId The managed object reference ID of the resource pool to put this virtual machine in. See the section on virtual machine migration for details on changing this value.
- Run
Tools boolScripts After Power On Enable the execution of post-power-on scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts After Resume Enable the execution of post-resume scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts Before Guest Reboot Enable the execution of pre-reboot scripts when VMware tools is installed. Default:
false.- Run
Tools boolScripts Before Guest Shutdown Enable the execution of pre-shutdown scripts when VMware tools is installed. Default:
true.- Run
Tools boolScripts Before Guest Standby Enable the execution of pre-standby scripts when VMware tools is installed. Default:
true.- Sata
Controller intCount The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- Scsi
Bus stringSharing Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Default:
noSharing.- Scsi
Controller intCount The number of SCSI controllers that this provider manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers. Default:
1.- Scsi
Type string The type of SCSI bus this virtual machine will have. Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or pvscsi (VMware Paravirtual). Defualt:
pvscsi.- Shutdown
Wait intTimeout The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If
force_power_offis set to true, the VM will be force powered-off after this timeout, otherwise an error is returned. Default: 3 minutes.- Storage
Policy stringId The UUID of the storage policy to assign to this disk.
- Swap
Placement stringPolicy The swap file placement policy for this virtual machine. Can be one of
inherit,hostLocal, orvmDirectory. Default:inherit.- Sync
Time boolWith Host Enable guest clock synchronization with the host. Requires VMware tools to be installed. Default:
false.- []string
The IDs of any tags to attach to this resource.
- Uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- Vapp
Virtual
Machine Vapp Optional vApp configuration. The only sub-key available is
properties, which is a key/value map of properties for virtual machines imported from OVF or OVA files. See Using vApp properties to supply OVF/OVA configuration for more details.- Vapp
Transports []string Computed value which is only valid for cloned virtual machines. A list of vApp transport methods supported by the source virtual machine or template.
- Vmware
Tools stringStatus The state of VMware tools in the guest. This will determine the proper course of action for some device operations.
- Vmx
Path string The path of the virtual machine’s configuration file in the VM’s datastore.
- Wait
For intGuest Ip Timeout The amount of time, in minutes, to wait for an available guest IP address on this virtual machine. This should only be used if your version of VMware Tools does not allow the
wait_for_guest_net_timeoutwaiter to be used. A value less than 1 disables the waiter. Default: 0.- Wait
For boolGuest Net Routable Controls whether or not the guest network waiter waits for a routable address. When
false, the waiter does not wait for a default gateway, nor are IP addresses checked against any discovered default gateways as part of its success criteria. This property is ignored if thewait_for_guest_ip_timeoutwaiter is used. Default:true.- Wait
For intGuest Net Timeout The amount of time, in minutes, to wait for an available IP address on this virtual machine’s NICs. Older versions of VMware Tools do not populate this property. In those cases, this waiter can be disabled and the
wait_for_guest_ip_timeoutwaiter can be used instead. A value less than 1 disables the waiter. Default: 5 minutes.
- alternate
Guest stringName The guest name for the operating system when
guest_idisotherorother-64.- annotation string
A user-provided description of the virtual machine. The default is no annotation.
- boot
Delay number The number of milliseconds to wait before starting the boot sequence. The default is no delay.
- boot
Retry numberDelay The number of milliseconds to wait before retrying the boot sequence. This only valid if
boot_retry_enabledis true. Default:10000(10 seconds).- boot
Retry booleanEnabled If set to true, a virtual machine that fails to boot will try again after the delay defined in
boot_retry_delay. Default:false.- cdrom
Virtual
Machine Cdrom A specification for a CDROM device on this virtual machine. See CDROM options below.
- change
Version string A unique identifier for a given version of the last configuration applied, such the timestamp of the last update to the configuration.
- clone
Virtual
Machine Clone When specified, the VM will be created as a clone of a specified template. Optional customization options can be submitted as well. See creating a virtual machine from a template for more details.
- cpu
Hot booleanAdd Enabled Allow CPUs to be added to this virtual machine while it is running.
- cpu
Hot booleanRemove Enabled Allow CPUs to be removed to this virtual machine while it is running.
- cpu
Limit number The maximum amount of CPU (in MHz) that this virtual machine can consume, regardless of available resources. The default is no limit.
- cpu
Performance booleanCounters Enabled Enable CPU performance counters on this virtual machine. Default:
false.- cpu
Reservation number The amount of CPU (in MHz) that this virtual machine is guaranteed. The default is no reservation.
- number
The number of CPU shares allocated to the virtual machine when the
cpu_share_leveliscustom.- string
The allocation level for CPU resources. Can be one of
high,low,normal, orcustom. Default:custom.- custom
Attributes {[key: string]: string} Map of custom attribute ids to attribute value strings to set for virtual machine.
- datacenter
Id string The datacenter id. Required only when deploying an ovf template.
- datastore
Cluster stringId The managed object reference ID of the datastore cluster ID to use. This setting applies to entire virtual machine and implies that you wish to use Storage DRS with this virtual machine. See the section on virtual machine migration for details on changing this value.
- datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- default
Ip stringAddress The IP address selected by the provider to be used with any provisioners configured on this resource. Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- disks
Virtual
Machine Disk[] A specification for a virtual disk device on this virtual machine. See disk options below.
- efi
Secure booleanBoot Enabled When the
firmwaretype is set to isefi, this enables EFI secure boot. Default:false.- enable
Disk booleanUuid Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest. Default:
false.- enable
Logging boolean Enable logging of virtual machine events to a log file stored in the virtual machine directory. Default:
false.- ept
Rvi stringMode The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of
automatic,on, oroff. Default:automatic.- extra
Config {[key: string]: string} Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata.
- firmware string
The firmware interface to use on the virtual machine. Can be one of
biosorEFI. Default:bios.- folder string
The path to the folder to put this virtual machine in, relative to the datacenter that the resource pool is in.
- force
Power booleanOff If a guest shutdown failed or timed out while updating or destroying (see
shutdown_wait_timeout), force the power-off of the virtual machine. Default:true.- guest
Id string The guest ID for the operating system type. For a full list of possible values, see [here][vmware-docs-guest-ids]. Default:
other-64.- guest
Ip string[]Addresses The current list of IP addresses on this machine, including the value of
default_ip_address. If VMware tools is not running on the virtual machine, or if the VM is powered off, this list will be empty. *moid: The managed object reference ID of the created virtual machine.- hardware
Version number The hardware version number. Valid range is from 4 to 15. The hardware version cannot be downgraded. See [virtual machine hardware compatibility][virtual-machine-hardware-compatibility] for more details.
- host
System stringId An optional managed object reference ID of a host to put this virtual machine on. See the section on virtual machine migration for details on changing this value. If a
host_system_idis not supplied, vSphere will select a host in the resource pool to place the virtual machine, according to any defaults or DRS policies in place.- hv
Mode string The (non-nested) hardware virtualization setting for this virtual machine. Can be one of
hvAuto,hvOn, orhvOff. Default:hvAuto.- ide
Controller numberCount The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- ignored
Guest string[]Ips List of IP addresses and CIDR networks to ignore while waiting for an available IP address using either of the waiters. Any IP addresses in this list will be ignored if they show up so that the waiter will continue to wait for a real IP address. Default: [].
- imported boolean
This is flagged if the virtual machine has been imported, or the state has been migrated from a previous version of the resource. It influences the behavior of the first post-import apply operation. See the section on importing below.
- latency
Sensitivity string Controls the scheduling delay of the virtual machine. Use a higher sensitivity for applications that require lower latency, such as VOIP, media player applications, or applications that require frequent access to mouse or keyboard devices. Can be one of
low,normal,medium, orhigh.- memory number
The size of the virtual machine’s memory, in MB. Default:
1024(1 GB).- memory
Hot booleanAdd Enabled Allow memory to be added to this virtual machine while it is running.
- memory
Limit number The maximum amount of memory (in MB) that this virtual machine can consume, regardless of available resources. The default is no limit.
- memory
Reservation number The amount of memory (in MB) that this virtual machine is guaranteed. The default is no reservation.
- number
The number of memory shares allocated to the virtual machine when the
memory_share_leveliscustom.- string
The allocation level for memory resources. Can be one of
high,low,normal, orcustom. Default:custom.- migrate
Wait numberTimeout The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: 10 minutes. Also see the section on virtual machine migration.
- moid string
The machine object ID from VMWare
- name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.- nested
Hv booleanEnabled Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest. Default:
false.- network
Interfaces VirtualMachine Network Interface[] A specification for a virtual NIC on this virtual machine. See network interface options below.
- num
Cores numberPer Socket The number of cores per socket in this virtual machine. The number of vCPUs on the virtual machine will be
num_cpusdivided bynum_cores_per_socket. If specified, the value supplied tonum_cpusmust be evenly divisible by this value. Default:1.- num
Cpus number The total number of virtual processor cores to assign to this virtual machine. Default:
1.- ovf
Deploy VirtualMachine Ovf Deploy When specified, the VM will be deployed from the provided ovf/ova template. See creating a virtual machine from a ovf/ova template for more details.
- pci
Device string[]Ids List of host PCI device IDs to create PCI passthroughs for.
- poweron
Timeout number The amount of time, in seconds, that we will be trying to power on a VM
- reboot
Required boolean Value internal to the provider used to determine if a configuration set change requires a reboot. This value is only useful during an update process and gets reset on refresh.
- resource
Pool stringId The managed object reference ID of the resource pool to put this virtual machine in. See the section on virtual machine migration for details on changing this value.
- run
Tools booleanScripts After Power On Enable the execution of post-power-on scripts when VMware tools is installed. Default:
true.- run
Tools booleanScripts After Resume Enable the execution of post-resume scripts when VMware tools is installed. Default:
true.- run
Tools booleanScripts Before Guest Reboot Enable the execution of pre-reboot scripts when VMware tools is installed. Default:
false.- run
Tools booleanScripts Before Guest Shutdown Enable the execution of pre-shutdown scripts when VMware tools is installed. Default:
true.- run
Tools booleanScripts Before Guest Standby Enable the execution of pre-standby scripts when VMware tools is installed. Default:
true.- sata
Controller numberCount The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- scsi
Bus stringSharing Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Default:
noSharing.- scsi
Controller numberCount The number of SCSI controllers that this provider manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers. Default:
1.- scsi
Type string The type of SCSI bus this virtual machine will have. Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or pvscsi (VMware Paravirtual). Defualt:
pvscsi.- shutdown
Wait numberTimeout The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If
force_power_offis set to true, the VM will be force powered-off after this timeout, otherwise an error is returned. Default: 3 minutes.- storage
Policy stringId The UUID of the storage policy to assign to this disk.
- swap
Placement stringPolicy The swap file placement policy for this virtual machine. Can be one of
inherit,hostLocal, orvmDirectory. Default:inherit.- sync
Time booleanWith Host Enable guest clock synchronization with the host. Requires VMware tools to be installed. Default:
false.- string[]
The IDs of any tags to attach to this resource.
- uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- vapp
Virtual
Machine Vapp Optional vApp configuration. The only sub-key available is
properties, which is a key/value map of properties for virtual machines imported from OVF or OVA files. See Using vApp properties to supply OVF/OVA configuration for more details.- vapp
Transports string[] Computed value which is only valid for cloned virtual machines. A list of vApp transport methods supported by the source virtual machine or template.
- vmware
Tools stringStatus The state of VMware tools in the guest. This will determine the proper course of action for some device operations.
- vmx
Path string The path of the virtual machine’s configuration file in the VM’s datastore.
- wait
For numberGuest Ip Timeout The amount of time, in minutes, to wait for an available guest IP address on this virtual machine. This should only be used if your version of VMware Tools does not allow the
wait_for_guest_net_timeoutwaiter to be used. A value less than 1 disables the waiter. Default: 0.- wait
For booleanGuest Net Routable Controls whether or not the guest network waiter waits for a routable address. When
false, the waiter does not wait for a default gateway, nor are IP addresses checked against any discovered default gateways as part of its success criteria. This property is ignored if thewait_for_guest_ip_timeoutwaiter is used. Default:true.- wait
For numberGuest Net Timeout The amount of time, in minutes, to wait for an available IP address on this virtual machine’s NICs. Older versions of VMware Tools do not populate this property. In those cases, this waiter can be disabled and the
wait_for_guest_ip_timeoutwaiter can be used instead. A value less than 1 disables the waiter. Default: 5 minutes.
- alternate_
guest_ strname The guest name for the operating system when
guest_idisotherorother-64.- annotation str
A user-provided description of the virtual machine. The default is no annotation.
- boot_
delay float The number of milliseconds to wait before starting the boot sequence. The default is no delay.
- boot_
retry_ floatdelay The number of milliseconds to wait before retrying the boot sequence. This only valid if
boot_retry_enabledis true. Default:10000(10 seconds).- boot_
retry_ boolenabled If set to true, a virtual machine that fails to boot will try again after the delay defined in
boot_retry_delay. Default:false.- cdrom
Dict[Virtual
Machine Cdrom] A specification for a CDROM device on this virtual machine. See CDROM options below.
- change_
version str A unique identifier for a given version of the last configuration applied, such the timestamp of the last update to the configuration.
- clone
Dict[Virtual
Machine Clone] When specified, the VM will be created as a clone of a specified template. Optional customization options can be submitted as well. See creating a virtual machine from a template for more details.
- cpu_
hot_ booladd_ enabled Allow CPUs to be added to this virtual machine while it is running.
- cpu_
hot_ boolremove_ enabled Allow CPUs to be removed to this virtual machine while it is running.
- cpu_
limit float The maximum amount of CPU (in MHz) that this virtual machine can consume, regardless of available resources. The default is no limit.
- cpu_
performance_ boolcounters_ enabled Enable CPU performance counters on this virtual machine. Default:
false.- cpu_
reservation float The amount of CPU (in MHz) that this virtual machine is guaranteed. The default is no reservation.
- float
The number of CPU shares allocated to the virtual machine when the
cpu_share_leveliscustom.- str
The allocation level for CPU resources. Can be one of
high,low,normal, orcustom. Default:custom.- custom_
attributes Dict[str, str] Map of custom attribute ids to attribute value strings to set for virtual machine.
- datacenter_
id str The datacenter id. Required only when deploying an ovf template.
- datastore_
cluster_ strid The managed object reference ID of the datastore cluster ID to use. This setting applies to entire virtual machine and implies that you wish to use Storage DRS with this virtual machine. See the section on virtual machine migration for details on changing this value.
- datastore_
id str The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- default_
ip_ straddress The IP address selected by the provider to be used with any provisioners configured on this resource. Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- disks
List[Virtual
Machine Disk] A specification for a virtual disk device on this virtual machine. See disk options below.
- efi_
secure_ boolboot_ enabled When the
firmwaretype is set to isefi, this enables EFI secure boot. Default:false.- enable_
disk_ booluuid Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest. Default:
false.- enable_
logging bool Enable logging of virtual machine events to a log file stored in the virtual machine directory. Default:
false.- ept_
rvi_ strmode The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of
automatic,on, oroff. Default:automatic.- extra_
config Dict[str, str] Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata.
- firmware str
The firmware interface to use on the virtual machine. Can be one of
biosorEFI. Default:bios.- folder str
The path to the folder to put this virtual machine in, relative to the datacenter that the resource pool is in.
- force_
power_ booloff If a guest shutdown failed or timed out while updating or destroying (see
shutdown_wait_timeout), force the power-off of the virtual machine. Default:true.- guest_
id str The guest ID for the operating system type. For a full list of possible values, see [here][vmware-docs-guest-ids]. Default:
other-64.- guest_
ip_ List[str]addresses The current list of IP addresses on this machine, including the value of
default_ip_address. If VMware tools is not running on the virtual machine, or if the VM is powered off, this list will be empty. *moid: The managed object reference ID of the created virtual machine.- hardware_
version float The hardware version number. Valid range is from 4 to 15. The hardware version cannot be downgraded. See [virtual machine hardware compatibility][virtual-machine-hardware-compatibility] for more details.
- host_
system_ strid An optional managed object reference ID of a host to put this virtual machine on. See the section on virtual machine migration for details on changing this value. If a
host_system_idis not supplied, vSphere will select a host in the resource pool to place the virtual machine, according to any defaults or DRS policies in place.- hv_
mode str The (non-nested) hardware virtualization setting for this virtual machine. Can be one of
hvAuto,hvOn, orhvOff. Default:hvAuto.- ide_
controller_ floatcount The number of IDE controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- ignored_
guest_ List[str]ips List of IP addresses and CIDR networks to ignore while waiting for an available IP address using either of the waiters. Any IP addresses in this list will be ignored if they show up so that the waiter will continue to wait for a real IP address. Default: [].
- imported bool
This is flagged if the virtual machine has been imported, or the state has been migrated from a previous version of the resource. It influences the behavior of the first post-import apply operation. See the section on importing below.
- latency_
sensitivity str Controls the scheduling delay of the virtual machine. Use a higher sensitivity for applications that require lower latency, such as VOIP, media player applications, or applications that require frequent access to mouse or keyboard devices. Can be one of
low,normal,medium, orhigh.- memory float
The size of the virtual machine’s memory, in MB. Default:
1024(1 GB).- memory_
hot_ booladd_ enabled Allow memory to be added to this virtual machine while it is running.
- memory_
limit float The maximum amount of memory (in MB) that this virtual machine can consume, regardless of available resources. The default is no limit.
- memory_
reservation float The amount of memory (in MB) that this virtual machine is guaranteed. The default is no reservation.
- float
The number of memory shares allocated to the virtual machine when the
memory_share_leveliscustom.- str
The allocation level for memory resources. Can be one of
high,low,normal, orcustom. Default:custom.- migrate_
wait_ floattimeout The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: 10 minutes. Also see the section on virtual machine migration.
- moid str
The machine object ID from VMWare
- name str
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.- nested_
hv_ boolenabled Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest. Default:
false.- network_
interfaces List[VirtualMachine Network Interface] A specification for a virtual NIC on this virtual machine. See network interface options below.
- num_
cores_ floatper_ socket The number of cores per socket in this virtual machine. The number of vCPUs on the virtual machine will be
num_cpusdivided bynum_cores_per_socket. If specified, the value supplied tonum_cpusmust be evenly divisible by this value. Default:1.- num_
cpus float The total number of virtual processor cores to assign to this virtual machine. Default:
1.- ovf_
deploy Dict[VirtualMachine Ovf Deploy] When specified, the VM will be deployed from the provided ovf/ova template. See creating a virtual machine from a ovf/ova template for more details.
- pci_
device_ List[str]ids List of host PCI device IDs to create PCI passthroughs for.
- poweron_
timeout float The amount of time, in seconds, that we will be trying to power on a VM
- reboot_
required bool Value internal to the provider used to determine if a configuration set change requires a reboot. This value is only useful during an update process and gets reset on refresh.
- resource_
pool_ strid The managed object reference ID of the resource pool to put this virtual machine in. See the section on virtual machine migration for details on changing this value.
- run_
tools_ boolscripts_ after_ power_ on Enable the execution of post-power-on scripts when VMware tools is installed. Default:
true.- run_
tools_ boolscripts_ after_ resume Enable the execution of post-resume scripts when VMware tools is installed. Default:
true.- run_
tools_ boolscripts_ before_ guest_ reboot Enable the execution of pre-reboot scripts when VMware tools is installed. Default:
false.- run_
tools_ boolscripts_ before_ guest_ shutdown Enable the execution of pre-shutdown scripts when VMware tools is installed. Default:
true.- run_
tools_ boolscripts_ before_ guest_ standby Enable the execution of pre-standby scripts when VMware tools is installed. Default:
true.- sata_
controller_ floatcount The number of SATA controllers that Terraform manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers.
- scsi_
bus_ strsharing Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Default:
noSharing.- scsi_
controller_ floatcount The number of SCSI controllers that this provider manages on this virtual machine. This directly affects the amount of disks you can add to the virtual machine and the maximum disk unit number. Note that lowering this value does not remove controllers. Default:
1.- scsi_
type str The type of SCSI bus this virtual machine will have. Can be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS) or pvscsi (VMware Paravirtual). Defualt:
pvscsi.- shutdown_
wait_ floattimeout The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If
force_power_offis set to true, the VM will be force powered-off after this timeout, otherwise an error is returned. Default: 3 minutes.- storage_
policy_ strid The UUID of the storage policy to assign to this disk.
- swap_
placement_ strpolicy The swap file placement policy for this virtual machine. Can be one of
inherit,hostLocal, orvmDirectory. Default:inherit.- sync_
time_ boolwith_ host Enable guest clock synchronization with the host. Requires VMware tools to be installed. Default:
false.- List[str]
The IDs of any tags to attach to this resource.
- uuid str
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- vapp
Dict[Virtual
Machine Vapp] Optional vApp configuration. The only sub-key available is
properties, which is a key/value map of properties for virtual machines imported from OVF or OVA files. See Using vApp properties to supply OVF/OVA configuration for more details.- vapp_
transports List[str] Computed value which is only valid for cloned virtual machines. A list of vApp transport methods supported by the source virtual machine or template.
- vmware_
tools_ strstatus The state of VMware tools in the guest. This will determine the proper course of action for some device operations.
- vmx_
path str The path of the virtual machine’s configuration file in the VM’s datastore.
- wait_
for_ floatguest_ ip_ timeout The amount of time, in minutes, to wait for an available guest IP address on this virtual machine. This should only be used if your version of VMware Tools does not allow the
wait_for_guest_net_timeoutwaiter to be used. A value less than 1 disables the waiter. Default: 0.- wait_
for_ boolguest_ net_ routable Controls whether or not the guest network waiter waits for a routable address. When
false, the waiter does not wait for a default gateway, nor are IP addresses checked against any discovered default gateways as part of its success criteria. This property is ignored if thewait_for_guest_ip_timeoutwaiter is used. Default:true.- wait_
for_ floatguest_ net_ timeout The amount of time, in minutes, to wait for an available IP address on this virtual machine’s NICs. Older versions of VMware Tools do not populate this property. In those cases, this waiter can be disabled and the
wait_for_guest_ip_timeoutwaiter can be used instead. A value less than 1 disables the waiter. Default: 5 minutes.
Supporting Types
VirtualMachineCdrom
- Client
Device bool Indicates whether the device should be backed by remote client device. Conflicts with
datastore_idandpath.- Datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- Device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- Key int
The ID of the device within the virtual machine.
- Path string
The path to the ISO file. Required for using a datastore ISO. Conflicts with
client_device.
- Client
Device bool Indicates whether the device should be backed by remote client device. Conflicts with
datastore_idandpath.- Datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- Device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- Key int
The ID of the device within the virtual machine.
- Path string
The path to the ISO file. Required for using a datastore ISO. Conflicts with
client_device.
- client
Device boolean Indicates whether the device should be backed by remote client device. Conflicts with
datastore_idandpath.- datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- key number
The ID of the device within the virtual machine.
- path string
The path to the ISO file. Required for using a datastore ISO. Conflicts with
client_device.
- client
Device bool Indicates whether the device should be backed by remote client device. Conflicts with
datastore_idandpath.- datastore_
id str The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- device
Address str An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- key float
The ID of the device within the virtual machine.
- path str
The path to the ISO file. Required for using a datastore ISO. Conflicts with
client_device.
VirtualMachineClone
- Template
Uuid string - Customize
Pulumi.
VSphere. Inputs. Virtual Machine Clone Customize Args - Linked
Clone bool - Ovf
Network Dictionary<string, string>Map - Ovf
Storage Dictionary<string, string>Map - Timeout int
- Template
Uuid string - Customize
Virtual
Machine Clone Customize - Linked
Clone bool - Ovf
Network map[string]stringMap - Ovf
Storage map[string]stringMap - Timeout int
- template
Uuid string - customize
Virtual
Machine Clone Customize - linked
Clone boolean - ovf
Network {[key: string]: string}Map - ovf
Storage {[key: string]: string}Map - timeout number
- template
Uuid str - customize
Dict[Virtual
Machine Clone Customize] - linked
Clone bool - ovf
Network Dict[str, str]Map - ovf
Storage Dict[str, str]Map - timeout float
VirtualMachineCloneCustomize
- Dns
Server List<string>Lists - Dns
Suffix List<string>Lists - Ipv4Gateway string
- Ipv6Gateway string
- Linux
Options Pulumi.VSphere. Inputs. Virtual Machine Clone Customize Linux Options Args - Network
Interfaces List<Pulumi.VSphere. Inputs. Virtual Machine Clone Customize Network Interface Args> A specification for a virtual NIC on this virtual machine. See network interface options below.
- Timeout int
- Windows
Options Pulumi.VSphere. Inputs. Virtual Machine Clone Customize Windows Options Args - Windows
Sysprep stringText
- Dns
Server []stringLists - Dns
Suffix []stringLists - Ipv4Gateway string
- Ipv6Gateway string
- Linux
Options VirtualMachine Clone Customize Linux Options - Network
Interfaces []VirtualMachine Clone Customize Network Interface A specification for a virtual NIC on this virtual machine. See network interface options below.
- Timeout int
- Windows
Options VirtualMachine Clone Customize Windows Options - Windows
Sysprep stringText
- dns
Server string[]Lists - dns
Suffix string[]Lists - ipv4Gateway string
- ipv6Gateway string
- linux
Options VirtualMachine Clone Customize Linux Options - network
Interfaces VirtualMachine Clone Customize Network Interface[] A specification for a virtual NIC on this virtual machine. See network interface options below.
- timeout number
- windows
Options VirtualMachine Clone Customize Windows Options - windows
Sysprep stringText
- dns
Server List[str]Lists - dns
Suffix List[str]Lists - ipv4Gateway str
- ipv6Gateway str
- linux
Options Dict[VirtualMachine Clone Customize Linux Options] - network_
interfaces List[VirtualMachine Clone Customize Network Interface] A specification for a virtual NIC on this virtual machine. See network interface options below.
- timeout float
- windows
Options Dict[VirtualMachine Clone Customize Windows Options] - windows
Sysprep strText
VirtualMachineCloneCustomizeLinuxOptions
VirtualMachineCloneCustomizeNetworkInterface
VirtualMachineCloneCustomizeWindowsOptions
VirtualMachineDisk
- Attach bool
Attach an external disk instead of creating a new one. Implies and conflicts with
keep_on_remove. If set, you cannot setsize,eagerly_scrub, orthin_provisioned. Must setpathif used.- Controller
Type string The type of storage controller to attach the disk to. Can be
scsi,sata, oride. You must have the appropriate number of controllers enabled for the selected type. Defaultscsi.- Datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- Device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- Disk
Mode string The mode of this this virtual disk for purposes of writes and snapshotting. Can be one of
append,independent_nonpersistent,independent_persistent,nonpersistent,persistent, orundoable. Default:persistent. For an explanation of options, click [here][vmware-docs-disk-mode].- Disk
Sharing string The sharing mode of this virtual disk. Can be one of
sharingMultiWriterorsharingNone. Default:sharingNone.- Eagerly
Scrub bool If set to
true, the disk space is zeroed out on VM creation. This will delay the creation of the disk or virtual machine. Cannot be set totruewhenthin_provisionedistrue. See the section on picking a disk type. Default:false.- Io
Limit int The upper limit of IOPS that this disk can use. The default is no limit.
- Io
Reservation int The I/O reservation (guarantee) that this disk has, in IOPS. The default is no reservation.
- int
The share count for this disk when the share level is
custom.- string
The share allocation level for this disk. Can be one of
low,normal,high, orcustom. Default:normal.- Keep
On boolRemove Keep this disk when removing the device or destroying the virtual machine. Default:
false.- Key int
The ID of the device within the virtual machine.
- Label string
A label for the disk. Forces a new disk if changed.
- Name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.The name attribute for virtual disks will be removed in favor of "label" in future releases. To transition existing disks, rename the "name" attribute to "label". When doing so, ensure the value of the attribute stays the same.
Note that "label" does not control the name of a VMDK and does not need to bear the name of one on new disks or virtual machines. For more information, see the documentation for the label attribute at:
https://www.terraform.io/docs/providers/vsphere/r/virtual_machine.html#label
- Path string
The path to the ISO file. Required for using a datastore ISO. Conflicts with
client_device.- Size int
The size of the disk, in GB.
- Storage
Policy stringId The UUID of the storage policy to assign to this disk.
- Thin
Provisioned bool If
true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis. Cannot be set totruewheneagerly_scrubistrue. See the section on picking a disk type. Default:true.- Unit
Number int The disk number on the storage bus. The maximum value for this setting is the value of the controller count times the controller capacity (15 for SCSI, 30 for SATA, and 2 for IDE). The default is
0, for which one disk must be set to. Duplicate unit numbers are not allowed.- Uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- Write
Through bool If
true, writes for this disk are sent directly to the filesystem immediately instead of being buffered. Default:false.
- Attach bool
Attach an external disk instead of creating a new one. Implies and conflicts with
keep_on_remove. If set, you cannot setsize,eagerly_scrub, orthin_provisioned. Must setpathif used.- Controller
Type string The type of storage controller to attach the disk to. Can be
scsi,sata, oride. You must have the appropriate number of controllers enabled for the selected type. Defaultscsi.- Datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- Device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- Disk
Mode string The mode of this this virtual disk for purposes of writes and snapshotting. Can be one of
append,independent_nonpersistent,independent_persistent,nonpersistent,persistent, orundoable. Default:persistent. For an explanation of options, click [here][vmware-docs-disk-mode].- Disk
Sharing string The sharing mode of this virtual disk. Can be one of
sharingMultiWriterorsharingNone. Default:sharingNone.- Eagerly
Scrub bool If set to
true, the disk space is zeroed out on VM creation. This will delay the creation of the disk or virtual machine. Cannot be set totruewhenthin_provisionedistrue. See the section on picking a disk type. Default:false.- Io
Limit int The upper limit of IOPS that this disk can use. The default is no limit.
- Io
Reservation int The I/O reservation (guarantee) that this disk has, in IOPS. The default is no reservation.
- int
The share count for this disk when the share level is
custom.- string
The share allocation level for this disk. Can be one of
low,normal,high, orcustom. Default:normal.- Keep
On boolRemove Keep this disk when removing the device or destroying the virtual machine. Default:
false.- Key int
The ID of the device within the virtual machine.
- Label string
A label for the disk. Forces a new disk if changed.
- Name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.The name attribute for virtual disks will be removed in favor of "label" in future releases. To transition existing disks, rename the "name" attribute to "label". When doing so, ensure the value of the attribute stays the same.
Note that "label" does not control the name of a VMDK and does not need to bear the name of one on new disks or virtual machines. For more information, see the documentation for the label attribute at:
https://www.terraform.io/docs/providers/vsphere/r/virtual_machine.html#label
- Path string
The path to the ISO file. Required for using a datastore ISO. Conflicts with
client_device.- Size int
The size of the disk, in GB.
- Storage
Policy stringId The UUID of the storage policy to assign to this disk.
- Thin
Provisioned bool If
true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis. Cannot be set totruewheneagerly_scrubistrue. See the section on picking a disk type. Default:true.- Unit
Number int The disk number on the storage bus. The maximum value for this setting is the value of the controller count times the controller capacity (15 for SCSI, 30 for SATA, and 2 for IDE). The default is
0, for which one disk must be set to. Duplicate unit numbers are not allowed.- Uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- Write
Through bool If
true, writes for this disk are sent directly to the filesystem immediately instead of being buffered. Default:false.
- attach boolean
Attach an external disk instead of creating a new one. Implies and conflicts with
keep_on_remove. If set, you cannot setsize,eagerly_scrub, orthin_provisioned. Must setpathif used.- controller
Type string The type of storage controller to attach the disk to. Can be
scsi,sata, oride. You must have the appropriate number of controllers enabled for the selected type. Defaultscsi.- datastore
Id string The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- disk
Mode string The mode of this this virtual disk for purposes of writes and snapshotting. Can be one of
append,independent_nonpersistent,independent_persistent,nonpersistent,persistent, orundoable. Default:persistent. For an explanation of options, click [here][vmware-docs-disk-mode].- disk
Sharing string The sharing mode of this virtual disk. Can be one of
sharingMultiWriterorsharingNone. Default:sharingNone.- eagerly
Scrub boolean If set to
true, the disk space is zeroed out on VM creation. This will delay the creation of the disk or virtual machine. Cannot be set totruewhenthin_provisionedistrue. See the section on picking a disk type. Default:false.- io
Limit number The upper limit of IOPS that this disk can use. The default is no limit.
- io
Reservation number The I/O reservation (guarantee) that this disk has, in IOPS. The default is no reservation.
- number
The share count for this disk when the share level is
custom.- string
The share allocation level for this disk. Can be one of
low,normal,high, orcustom. Default:normal.- keep
On booleanRemove Keep this disk when removing the device or destroying the virtual machine. Default:
false.- key number
The ID of the device within the virtual machine.
- label string
A label for the disk. Forces a new disk if changed.
- name string
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.The name attribute for virtual disks will be removed in favor of "label" in future releases. To transition existing disks, rename the "name" attribute to "label". When doing so, ensure the value of the attribute stays the same.
Note that "label" does not control the name of a VMDK and does not need to bear the name of one on new disks or virtual machines. For more information, see the documentation for the label attribute at:
https://www.terraform.io/docs/providers/vsphere/r/virtual_machine.html#label
- path string
The path to the ISO file. Required for using a datastore ISO. Conflicts with
client_device.- size number
The size of the disk, in GB.
- storage
Policy stringId The UUID of the storage policy to assign to this disk.
- thin
Provisioned boolean If
true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis. Cannot be set totruewheneagerly_scrubistrue. See the section on picking a disk type. Default:true.- unit
Number number The disk number on the storage bus. The maximum value for this setting is the value of the controller count times the controller capacity (15 for SCSI, 30 for SATA, and 2 for IDE). The default is
0, for which one disk must be set to. Duplicate unit numbers are not allowed.- uuid string
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- write
Through boolean If
true, writes for this disk are sent directly to the filesystem immediately instead of being buffered. Default:false.
- attach bool
Attach an external disk instead of creating a new one. Implies and conflicts with
keep_on_remove. If set, you cannot setsize,eagerly_scrub, orthin_provisioned. Must setpathif used.- controller
Type str The type of storage controller to attach the disk to. Can be
scsi,sata, oride. You must have the appropriate number of controllers enabled for the selected type. Defaultscsi.- datastore_
id str The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with
client_device.- device
Address str An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- disk
Mode str The mode of this this virtual disk for purposes of writes and snapshotting. Can be one of
append,independent_nonpersistent,independent_persistent,nonpersistent,persistent, orundoable. Default:persistent. For an explanation of options, click [here][vmware-docs-disk-mode].- disk
Sharing str The sharing mode of this virtual disk. Can be one of
sharingMultiWriterorsharingNone. Default:sharingNone.- eagerly
Scrub bool If set to
true, the disk space is zeroed out on VM creation. This will delay the creation of the disk or virtual machine. Cannot be set totruewhenthin_provisionedistrue. See the section on picking a disk type. Default:false.- io
Limit float The upper limit of IOPS that this disk can use. The default is no limit.
- io
Reservation float The I/O reservation (guarantee) that this disk has, in IOPS. The default is no reservation.
- float
The share count for this disk when the share level is
custom.- str
The share allocation level for this disk. Can be one of
low,normal,high, orcustom. Default:normal.- keep
On boolRemove Keep this disk when removing the device or destroying the virtual machine. Default:
false.- key float
The ID of the device within the virtual machine.
- label str
A label for the disk. Forces a new disk if changed.
- name str
An alias for both
labelandpath, the latter when usingattach. Required if not usinglabel.The name attribute for virtual disks will be removed in favor of "label" in future releases. To transition existing disks, rename the "name" attribute to "label". When doing so, ensure the value of the attribute stays the same.
Note that "label" does not control the name of a VMDK and does not need to bear the name of one on new disks or virtual machines. For more information, see the documentation for the label attribute at:
https://www.terraform.io/docs/providers/vsphere/r/virtual_machine.html#label
- path str
The path to the ISO file. Required for using a datastore ISO. Conflicts with
client_device.- size float
The size of the disk, in GB.
- storage_
policy_ strid The UUID of the storage policy to assign to this disk.
- thin
Provisioned bool If
true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis. Cannot be set totruewheneagerly_scrubistrue. See the section on picking a disk type. Default:true.- unit
Number float The disk number on the storage bus. The maximum value for this setting is the value of the controller count times the controller capacity (15 for SCSI, 30 for SATA, and 2 for IDE). The default is
0, for which one disk must be set to. Duplicate unit numbers are not allowed.- uuid str
The UUID of the virtual disk’s VMDK file. This is used to track the virtual disk on the virtual machine.
- write
Through bool If
true, writes for this disk are sent directly to the filesystem immediately instead of being buffered. Default:false.
VirtualMachineNetworkInterface
- Network
Id string The managed object reference ID of the network to connect this interface to.
- Adapter
Type string The network interface type. Can be one of
e1000,e1000e, orvmxnet3. Default:vmxnet3.- Bandwidth
Limit int The upper bandwidth limit of this network interface, in Mbits/sec. The default is no limit.
- Bandwidth
Reservation int The bandwidth reservation of this network interface, in Mbits/sec. The default is no reservation.
- int
The share count for this network interface when the share level is
custom.- string
The bandwidth share allocation level for this interface. Can be one of
low,normal,high, orcustom. Default:normal.- Device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- Key int
The ID of the device within the virtual machine.
- Mac
Address string The MAC address of this network interface. Can only be manually set if
use_static_macis true, otherwise this is a computed value that gives the current MAC address of this interface.- Ovf
Mapping string Specifies which OVF NIC the
network_interfaceshould be associated with. Only applies at creation and only when deploying from an OVF source.- Use
Static boolMac If true, the
mac_addressfield is treated as a static MAC address and set accordingly. Setting this totruerequiresmac_addressto be set. Default:false.
- Network
Id string The managed object reference ID of the network to connect this interface to.
- Adapter
Type string The network interface type. Can be one of
e1000,e1000e, orvmxnet3. Default:vmxnet3.- Bandwidth
Limit int The upper bandwidth limit of this network interface, in Mbits/sec. The default is no limit.
- Bandwidth
Reservation int The bandwidth reservation of this network interface, in Mbits/sec. The default is no reservation.
- int
The share count for this network interface when the share level is
custom.- string
The bandwidth share allocation level for this interface. Can be one of
low,normal,high, orcustom. Default:normal.- Device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- Key int
The ID of the device within the virtual machine.
- Mac
Address string The MAC address of this network interface. Can only be manually set if
use_static_macis true, otherwise this is a computed value that gives the current MAC address of this interface.- Ovf
Mapping string Specifies which OVF NIC the
network_interfaceshould be associated with. Only applies at creation and only when deploying from an OVF source.- Use
Static boolMac If true, the
mac_addressfield is treated as a static MAC address and set accordingly. Setting this totruerequiresmac_addressto be set. Default:false.
- network
Id string The managed object reference ID of the network to connect this interface to.
- adapter
Type string The network interface type. Can be one of
e1000,e1000e, orvmxnet3. Default:vmxnet3.- bandwidth
Limit number The upper bandwidth limit of this network interface, in Mbits/sec. The default is no limit.
- bandwidth
Reservation number The bandwidth reservation of this network interface, in Mbits/sec. The default is no reservation.
- number
The share count for this network interface when the share level is
custom.- string
The bandwidth share allocation level for this interface. Can be one of
low,normal,high, orcustom. Default:normal.- device
Address string An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- key number
The ID of the device within the virtual machine.
- mac
Address string The MAC address of this network interface. Can only be manually set if
use_static_macis true, otherwise this is a computed value that gives the current MAC address of this interface.- ovf
Mapping string Specifies which OVF NIC the
network_interfaceshould be associated with. Only applies at creation and only when deploying from an OVF source.- use
Static booleanMac If true, the
mac_addressfield is treated as a static MAC address and set accordingly. Setting this totruerequiresmac_addressto be set. Default:false.
- network
Id str The managed object reference ID of the network to connect this interface to.
- adapter_
type str The network interface type. Can be one of
e1000,e1000e, orvmxnet3. Default:vmxnet3.- bandwidth
Limit float The upper bandwidth limit of this network interface, in Mbits/sec. The default is no limit.
- bandwidth
Reservation float The bandwidth reservation of this network interface, in Mbits/sec. The default is no reservation.
- float
The share count for this network interface when the share level is
custom.- str
The bandwidth share allocation level for this interface. Can be one of
low,normal,high, orcustom. Default:normal.- device
Address str An address internal to this provider that helps locate the device when
keyis unavailable. This follows a convention ofCONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example:scsi:0:1means device unit 1 on SCSI bus 0.- key float
The ID of the device within the virtual machine.
- mac
Address str The MAC address of this network interface. Can only be manually set if
use_static_macis true, otherwise this is a computed value that gives the current MAC address of this interface.- ovf
Mapping str Specifies which OVF NIC the
network_interfaceshould be associated with. Only applies at creation and only when deploying from an OVF source.- use
Static boolMac If true, the
mac_addressfield is treated as a static MAC address and set accordingly. Setting this totruerequiresmac_addressto be set. Default:false.
VirtualMachineOvfDeploy
VirtualMachineVapp
- Properties Dictionary<string, string>
- Properties map[string]string
- properties {[key: string]: string}
- properties Dict[str, str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphereTerraform Provider.