vsphere.VirtualMachine
Explore with Pulumi AI
Import
Additional Importing Requirements
Many of the requirements for cloning apply to importing. Although importing writes directly to the Terraform state, some rules can not be enforced during import time, so every effort should be made to ensure the correctness of the configuration before the import.
The following requirements apply to import:
The disks must have a
label
argument assigned in a convention matchingHard Disk
, starting with disk number 0, based on each virtual disk order on the SCSI bus. As an example, a disk on SCSI controller0
with a unit number of0
would be labeled asHard Disk 0
, a disk on the same controller with a unit number of1
would beHard Disk 1
, but the next disk, which is on SCSI controller1
with a unit number of0
, still becomesHard Disk 2
.Disks are always imported with
keep_on_remove
enabled until the firstpulumi up
run which will remove the setting for known disks. This process safeguards against naming or accounting mistakes in the disk configuration.The storage controller count for the resource is set to the number of contiguous storage controllers found, starting with the controller at SCSI bus number
0
. If no storage controllers are discovered, the virtual machine is not eligible for import. For maximum compatibility, ensure that the virtual machine has the exact number of storage controllers needed and set the storage controller count accordingly.
After importing, you should run pulumi preview
. Unless you have changed anything else in the configuration that would cause other attributes to change. The only difference should be configuration-only changes, which are typically comprised of:
The
imported
flag will transition fromtrue
tofalse
.The
keep_on_remove
of known disks will transition fromtrue
tofalse
.Configuration supplied in the
clone
block, if present, will be persisted to state. This initial persistence operation does not perform any cloning or customization actions, nor does it force a new resource. After the first apply operation, further changes toclone
will force the creation of a new resource.
These changes only update Terraform state when applied. Hence, it is safe to run when the virtual machine is running. If more settings are modified, you may need to plan maintenance accordingly for any necessary virtual machine re-configurations.
Create VirtualMachine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualMachine(name: string, args: VirtualMachineArgs, opts?: CustomResourceOptions);
@overload
def VirtualMachine(resource_name: str,
args: VirtualMachineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualMachine(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_pool_id: Optional[str] = None,
alternate_guest_name: Optional[str] = None,
annotation: Optional[str] = None,
boot_delay: Optional[int] = None,
boot_retry_delay: Optional[int] = None,
boot_retry_enabled: Optional[bool] = None,
cdroms: Optional[Sequence[VirtualMachineCdromArgs]] = None,
clone: Optional[VirtualMachineCloneArgs] = None,
cpu_hot_add_enabled: Optional[bool] = None,
cpu_hot_remove_enabled: Optional[bool] = None,
cpu_limit: Optional[int] = None,
cpu_performance_counters_enabled: Optional[bool] = None,
cpu_reservation: Optional[int] = None,
cpu_share_count: Optional[int] = None,
cpu_share_level: Optional[str] = None,
custom_attributes: Optional[Mapping[str, str]] = None,
datacenter_id: Optional[str] = None,
datastore_cluster_id: Optional[str] = None,
datastore_id: Optional[str] = None,
disks: Optional[Sequence[VirtualMachineDiskArgs]] = None,
efi_secure_boot_enabled: Optional[bool] = None,
enable_disk_uuid: Optional[bool] = None,
enable_logging: Optional[bool] = None,
ept_rvi_mode: Optional[str] = None,
extra_config: Optional[Mapping[str, str]] = None,
extra_config_reboot_required: Optional[bool] = None,
firmware: Optional[str] = None,
folder: Optional[str] = None,
force_power_off: Optional[bool] = None,
guest_id: Optional[str] = None,
hardware_version: Optional[int] = None,
host_system_id: Optional[str] = None,
hv_mode: Optional[str] = None,
ide_controller_count: Optional[int] = None,
ignored_guest_ips: Optional[Sequence[str]] = None,
latency_sensitivity: Optional[str] = None,
memory: Optional[int] = None,
memory_hot_add_enabled: Optional[bool] = None,
memory_limit: Optional[int] = None,
memory_reservation: Optional[int] = None,
memory_reservation_locked_to_max: Optional[bool] = None,
memory_share_count: Optional[int] = None,
memory_share_level: Optional[str] = None,
migrate_wait_timeout: Optional[int] = None,
name: Optional[str] = None,
nested_hv_enabled: Optional[bool] = None,
network_interfaces: Optional[Sequence[VirtualMachineNetworkInterfaceArgs]] = None,
num_cores_per_socket: Optional[int] = None,
num_cpus: Optional[int] = None,
ovf_deploy: Optional[VirtualMachineOvfDeployArgs] = None,
pci_device_ids: Optional[Sequence[str]] = None,
poweron_timeout: Optional[int] = None,
replace_trigger: Optional[str] = None,
run_tools_scripts_after_power_on: Optional[bool] = None,
run_tools_scripts_after_resume: Optional[bool] = None,
run_tools_scripts_before_guest_reboot: Optional[bool] = None,
run_tools_scripts_before_guest_shutdown: Optional[bool] = None,
run_tools_scripts_before_guest_standby: Optional[bool] = None,
sata_controller_count: Optional[int] = None,
scsi_bus_sharing: Optional[str] = None,
scsi_controller_count: Optional[int] = None,
scsi_type: Optional[str] = None,
shutdown_wait_timeout: Optional[int] = None,
storage_policy_id: Optional[str] = None,
swap_placement_policy: Optional[str] = None,
sync_time_with_host: Optional[bool] = None,
sync_time_with_host_periodically: Optional[bool] = None,
tags: Optional[Sequence[str]] = None,
tools_upgrade_policy: Optional[str] = None,
vapp: Optional[VirtualMachineVappArgs] = None,
vbs_enabled: Optional[bool] = None,
vtpm: Optional[VirtualMachineVtpmArgs] = None,
vvtd_enabled: Optional[bool] = None,
wait_for_guest_ip_timeout: Optional[int] = None,
wait_for_guest_net_routable: Optional[bool] = None,
wait_for_guest_net_timeout: Optional[int] = None)
func NewVirtualMachine(ctx *Context, name string, args VirtualMachineArgs, opts ...ResourceOption) (*VirtualMachine, error)
public VirtualMachine(string name, VirtualMachineArgs args, CustomResourceOptions? opts = null)
public VirtualMachine(String name, VirtualMachineArgs args)
public VirtualMachine(String name, VirtualMachineArgs args, CustomResourceOptions options)
type: vsphere:VirtualMachine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args 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.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args 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.
- name String
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var virtualMachineResource = new VSphere.VirtualMachine("virtualMachineResource", new()
{
ResourcePoolId = "string",
AlternateGuestName = "string",
Annotation = "string",
BootDelay = 0,
BootRetryDelay = 0,
BootRetryEnabled = false,
Cdroms = new[]
{
new VSphere.Inputs.VirtualMachineCdromArgs
{
ClientDevice = false,
DatastoreId = "string",
DeviceAddress = "string",
Key = 0,
Path = "string",
},
},
Clone = new VSphere.Inputs.VirtualMachineCloneArgs
{
TemplateUuid = "string",
CustomizationSpec = new VSphere.Inputs.VirtualMachineCloneCustomizationSpecArgs
{
Id = "string",
Timeout = 0,
},
Customize = new VSphere.Inputs.VirtualMachineCloneCustomizeArgs
{
DnsServerLists = new[]
{
"string",
},
DnsSuffixLists = new[]
{
"string",
},
Ipv4Gateway = "string",
Ipv6Gateway = "string",
LinuxOptions = new VSphere.Inputs.VirtualMachineCloneCustomizeLinuxOptionsArgs
{
Domain = "string",
HostName = "string",
HwClockUtc = false,
ScriptText = "string",
TimeZone = "string",
},
NetworkInterfaces = new[]
{
new VSphere.Inputs.VirtualMachineCloneCustomizeNetworkInterfaceArgs
{
DnsDomain = "string",
DnsServerLists = new[]
{
"string",
},
Ipv4Address = "string",
Ipv4Netmask = 0,
Ipv6Address = "string",
Ipv6Netmask = 0,
},
},
Timeout = 0,
WindowsOptions = new VSphere.Inputs.VirtualMachineCloneCustomizeWindowsOptionsArgs
{
ComputerName = "string",
DomainOu = "string",
AutoLogonCount = 0,
AutoLogon = false,
DomainAdminPassword = "string",
DomainAdminUser = "string",
AdminPassword = "string",
FullName = "string",
JoinDomain = "string",
OrganizationName = "string",
ProductKey = "string",
RunOnceCommandLists = new[]
{
"string",
},
TimeZone = 0,
Workgroup = "string",
},
WindowsSysprepText = "string",
},
LinkedClone = false,
OvfNetworkMap =
{
{ "string", "string" },
},
OvfStorageMap =
{
{ "string", "string" },
},
Timeout = 0,
},
CpuHotAddEnabled = false,
CpuHotRemoveEnabled = false,
CpuLimit = 0,
CpuPerformanceCountersEnabled = false,
CpuReservation = 0,
CpuShareCount = 0,
CpuShareLevel = "string",
CustomAttributes =
{
{ "string", "string" },
},
DatacenterId = "string",
DatastoreClusterId = "string",
DatastoreId = "string",
Disks = new[]
{
new VSphere.Inputs.VirtualMachineDiskArgs
{
Label = "string",
IoShareLevel = "string",
UnitNumber = 0,
DeviceAddress = "string",
DiskMode = "string",
DiskSharing = "string",
EagerlyScrub = false,
IoLimit = 0,
KeepOnRemove = false,
WriteThrough = false,
DatastoreId = "string",
IoReservation = 0,
Key = 0,
ControllerType = "string",
Path = "string",
Size = 0,
StoragePolicyId = "string",
ThinProvisioned = false,
Attach = false,
Uuid = "string",
IoShareCount = 0,
},
},
EfiSecureBootEnabled = false,
EnableDiskUuid = false,
EnableLogging = false,
EptRviMode = "string",
ExtraConfig =
{
{ "string", "string" },
},
ExtraConfigRebootRequired = false,
Firmware = "string",
Folder = "string",
ForcePowerOff = false,
GuestId = "string",
HardwareVersion = 0,
HostSystemId = "string",
HvMode = "string",
IdeControllerCount = 0,
IgnoredGuestIps = new[]
{
"string",
},
LatencySensitivity = "string",
Memory = 0,
MemoryHotAddEnabled = false,
MemoryLimit = 0,
MemoryReservation = 0,
MemoryReservationLockedToMax = false,
MemoryShareCount = 0,
MemoryShareLevel = "string",
MigrateWaitTimeout = 0,
Name = "string",
NestedHvEnabled = false,
NetworkInterfaces = new[]
{
new VSphere.Inputs.VirtualMachineNetworkInterfaceArgs
{
NetworkId = "string",
AdapterType = "string",
BandwidthLimit = 0,
BandwidthReservation = 0,
BandwidthShareCount = 0,
BandwidthShareLevel = "string",
DeviceAddress = "string",
Key = 0,
MacAddress = "string",
OvfMapping = "string",
PhysicalFunction = "string",
UseStaticMac = false,
},
},
NumCoresPerSocket = 0,
NumCpus = 0,
OvfDeploy = new VSphere.Inputs.VirtualMachineOvfDeployArgs
{
AllowUnverifiedSslCert = false,
DeploymentOption = "string",
DiskProvisioning = "string",
EnableHiddenProperties = false,
IpAllocationPolicy = "string",
IpProtocol = "string",
LocalOvfPath = "string",
OvfNetworkMap =
{
{ "string", "string" },
},
RemoteOvfUrl = "string",
},
PciDeviceIds = new[]
{
"string",
},
PoweronTimeout = 0,
ReplaceTrigger = "string",
RunToolsScriptsAfterPowerOn = false,
RunToolsScriptsAfterResume = false,
RunToolsScriptsBeforeGuestReboot = false,
RunToolsScriptsBeforeGuestShutdown = false,
RunToolsScriptsBeforeGuestStandby = false,
SataControllerCount = 0,
ScsiBusSharing = "string",
ScsiControllerCount = 0,
ScsiType = "string",
ShutdownWaitTimeout = 0,
StoragePolicyId = "string",
SwapPlacementPolicy = "string",
SyncTimeWithHost = false,
SyncTimeWithHostPeriodically = false,
Tags = new[]
{
"string",
},
ToolsUpgradePolicy = "string",
Vapp = new VSphere.Inputs.VirtualMachineVappArgs
{
Properties =
{
{ "string", "string" },
},
},
VbsEnabled = false,
Vtpm = new VSphere.Inputs.VirtualMachineVtpmArgs
{
Version = "string",
},
VvtdEnabled = false,
WaitForGuestIpTimeout = 0,
WaitForGuestNetRoutable = false,
WaitForGuestNetTimeout = 0,
});
example, err := vsphere.NewVirtualMachine(ctx, "virtualMachineResource", &vsphere.VirtualMachineArgs{
ResourcePoolId: pulumi.String("string"),
AlternateGuestName: pulumi.String("string"),
Annotation: pulumi.String("string"),
BootDelay: pulumi.Int(0),
BootRetryDelay: pulumi.Int(0),
BootRetryEnabled: pulumi.Bool(false),
Cdroms: vsphere.VirtualMachineCdromArray{
&vsphere.VirtualMachineCdromArgs{
ClientDevice: pulumi.Bool(false),
DatastoreId: pulumi.String("string"),
DeviceAddress: pulumi.String("string"),
Key: pulumi.Int(0),
Path: pulumi.String("string"),
},
},
Clone: &vsphere.VirtualMachineCloneArgs{
TemplateUuid: pulumi.String("string"),
CustomizationSpec: &vsphere.VirtualMachineCloneCustomizationSpecArgs{
Id: pulumi.String("string"),
Timeout: pulumi.Int(0),
},
Customize: &vsphere.VirtualMachineCloneCustomizeArgs{
DnsServerLists: pulumi.StringArray{
pulumi.String("string"),
},
DnsSuffixLists: pulumi.StringArray{
pulumi.String("string"),
},
Ipv4Gateway: pulumi.String("string"),
Ipv6Gateway: pulumi.String("string"),
LinuxOptions: &vsphere.VirtualMachineCloneCustomizeLinuxOptionsArgs{
Domain: pulumi.String("string"),
HostName: pulumi.String("string"),
HwClockUtc: pulumi.Bool(false),
ScriptText: pulumi.String("string"),
TimeZone: pulumi.String("string"),
},
NetworkInterfaces: vsphere.VirtualMachineCloneCustomizeNetworkInterfaceArray{
&vsphere.VirtualMachineCloneCustomizeNetworkInterfaceArgs{
DnsDomain: pulumi.String("string"),
DnsServerLists: pulumi.StringArray{
pulumi.String("string"),
},
Ipv4Address: pulumi.String("string"),
Ipv4Netmask: pulumi.Int(0),
Ipv6Address: pulumi.String("string"),
Ipv6Netmask: pulumi.Int(0),
},
},
Timeout: pulumi.Int(0),
WindowsOptions: &vsphere.VirtualMachineCloneCustomizeWindowsOptionsArgs{
ComputerName: pulumi.String("string"),
DomainOu: pulumi.String("string"),
AutoLogonCount: pulumi.Int(0),
AutoLogon: pulumi.Bool(false),
DomainAdminPassword: pulumi.String("string"),
DomainAdminUser: pulumi.String("string"),
AdminPassword: pulumi.String("string"),
FullName: pulumi.String("string"),
JoinDomain: pulumi.String("string"),
OrganizationName: pulumi.String("string"),
ProductKey: pulumi.String("string"),
RunOnceCommandLists: pulumi.StringArray{
pulumi.String("string"),
},
TimeZone: pulumi.Int(0),
Workgroup: pulumi.String("string"),
},
WindowsSysprepText: pulumi.String("string"),
},
LinkedClone: pulumi.Bool(false),
OvfNetworkMap: pulumi.StringMap{
"string": pulumi.String("string"),
},
OvfStorageMap: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeout: pulumi.Int(0),
},
CpuHotAddEnabled: pulumi.Bool(false),
CpuHotRemoveEnabled: pulumi.Bool(false),
CpuLimit: pulumi.Int(0),
CpuPerformanceCountersEnabled: pulumi.Bool(false),
CpuReservation: pulumi.Int(0),
CpuShareCount: pulumi.Int(0),
CpuShareLevel: pulumi.String("string"),
CustomAttributes: pulumi.StringMap{
"string": pulumi.String("string"),
},
DatacenterId: pulumi.String("string"),
DatastoreClusterId: pulumi.String("string"),
DatastoreId: pulumi.String("string"),
Disks: vsphere.VirtualMachineDiskArray{
&vsphere.VirtualMachineDiskArgs{
Label: pulumi.String("string"),
IoShareLevel: pulumi.String("string"),
UnitNumber: pulumi.Int(0),
DeviceAddress: pulumi.String("string"),
DiskMode: pulumi.String("string"),
DiskSharing: pulumi.String("string"),
EagerlyScrub: pulumi.Bool(false),
IoLimit: pulumi.Int(0),
KeepOnRemove: pulumi.Bool(false),
WriteThrough: pulumi.Bool(false),
DatastoreId: pulumi.String("string"),
IoReservation: pulumi.Int(0),
Key: pulumi.Int(0),
ControllerType: pulumi.String("string"),
Path: pulumi.String("string"),
Size: pulumi.Int(0),
StoragePolicyId: pulumi.String("string"),
ThinProvisioned: pulumi.Bool(false),
Attach: pulumi.Bool(false),
Uuid: pulumi.String("string"),
IoShareCount: pulumi.Int(0),
},
},
EfiSecureBootEnabled: pulumi.Bool(false),
EnableDiskUuid: pulumi.Bool(false),
EnableLogging: pulumi.Bool(false),
EptRviMode: pulumi.String("string"),
ExtraConfig: pulumi.StringMap{
"string": pulumi.String("string"),
},
ExtraConfigRebootRequired: pulumi.Bool(false),
Firmware: pulumi.String("string"),
Folder: pulumi.String("string"),
ForcePowerOff: pulumi.Bool(false),
GuestId: pulumi.String("string"),
HardwareVersion: pulumi.Int(0),
HostSystemId: pulumi.String("string"),
HvMode: pulumi.String("string"),
IdeControllerCount: pulumi.Int(0),
IgnoredGuestIps: pulumi.StringArray{
pulumi.String("string"),
},
LatencySensitivity: pulumi.String("string"),
Memory: pulumi.Int(0),
MemoryHotAddEnabled: pulumi.Bool(false),
MemoryLimit: pulumi.Int(0),
MemoryReservation: pulumi.Int(0),
MemoryReservationLockedToMax: pulumi.Bool(false),
MemoryShareCount: pulumi.Int(0),
MemoryShareLevel: pulumi.String("string"),
MigrateWaitTimeout: pulumi.Int(0),
Name: pulumi.String("string"),
NestedHvEnabled: pulumi.Bool(false),
NetworkInterfaces: vsphere.VirtualMachineNetworkInterfaceArray{
&vsphere.VirtualMachineNetworkInterfaceArgs{
NetworkId: pulumi.String("string"),
AdapterType: pulumi.String("string"),
BandwidthLimit: pulumi.Int(0),
BandwidthReservation: pulumi.Int(0),
BandwidthShareCount: pulumi.Int(0),
BandwidthShareLevel: pulumi.String("string"),
DeviceAddress: pulumi.String("string"),
Key: pulumi.Int(0),
MacAddress: pulumi.String("string"),
OvfMapping: pulumi.String("string"),
PhysicalFunction: pulumi.String("string"),
UseStaticMac: pulumi.Bool(false),
},
},
NumCoresPerSocket: pulumi.Int(0),
NumCpus: pulumi.Int(0),
OvfDeploy: &vsphere.VirtualMachineOvfDeployArgs{
AllowUnverifiedSslCert: pulumi.Bool(false),
DeploymentOption: pulumi.String("string"),
DiskProvisioning: pulumi.String("string"),
EnableHiddenProperties: pulumi.Bool(false),
IpAllocationPolicy: pulumi.String("string"),
IpProtocol: pulumi.String("string"),
LocalOvfPath: pulumi.String("string"),
OvfNetworkMap: pulumi.StringMap{
"string": pulumi.String("string"),
},
RemoteOvfUrl: pulumi.String("string"),
},
PciDeviceIds: pulumi.StringArray{
pulumi.String("string"),
},
PoweronTimeout: pulumi.Int(0),
ReplaceTrigger: pulumi.String("string"),
RunToolsScriptsAfterPowerOn: pulumi.Bool(false),
RunToolsScriptsAfterResume: pulumi.Bool(false),
RunToolsScriptsBeforeGuestReboot: pulumi.Bool(false),
RunToolsScriptsBeforeGuestShutdown: pulumi.Bool(false),
RunToolsScriptsBeforeGuestStandby: pulumi.Bool(false),
SataControllerCount: pulumi.Int(0),
ScsiBusSharing: pulumi.String("string"),
ScsiControllerCount: pulumi.Int(0),
ScsiType: pulumi.String("string"),
ShutdownWaitTimeout: pulumi.Int(0),
StoragePolicyId: pulumi.String("string"),
SwapPlacementPolicy: pulumi.String("string"),
SyncTimeWithHost: pulumi.Bool(false),
SyncTimeWithHostPeriodically: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
ToolsUpgradePolicy: pulumi.String("string"),
Vapp: &vsphere.VirtualMachineVappArgs{
Properties: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
VbsEnabled: pulumi.Bool(false),
Vtpm: &vsphere.VirtualMachineVtpmArgs{
Version: pulumi.String("string"),
},
VvtdEnabled: pulumi.Bool(false),
WaitForGuestIpTimeout: pulumi.Int(0),
WaitForGuestNetRoutable: pulumi.Bool(false),
WaitForGuestNetTimeout: pulumi.Int(0),
})
var virtualMachineResource = new VirtualMachine("virtualMachineResource", VirtualMachineArgs.builder()
.resourcePoolId("string")
.alternateGuestName("string")
.annotation("string")
.bootDelay(0)
.bootRetryDelay(0)
.bootRetryEnabled(false)
.cdroms(VirtualMachineCdromArgs.builder()
.clientDevice(false)
.datastoreId("string")
.deviceAddress("string")
.key(0)
.path("string")
.build())
.clone(VirtualMachineCloneArgs.builder()
.templateUuid("string")
.customizationSpec(VirtualMachineCloneCustomizationSpecArgs.builder()
.id("string")
.timeout(0)
.build())
.customize(VirtualMachineCloneCustomizeArgs.builder()
.dnsServerLists("string")
.dnsSuffixLists("string")
.ipv4Gateway("string")
.ipv6Gateway("string")
.linuxOptions(VirtualMachineCloneCustomizeLinuxOptionsArgs.builder()
.domain("string")
.hostName("string")
.hwClockUtc(false)
.scriptText("string")
.timeZone("string")
.build())
.networkInterfaces(VirtualMachineCloneCustomizeNetworkInterfaceArgs.builder()
.dnsDomain("string")
.dnsServerLists("string")
.ipv4Address("string")
.ipv4Netmask(0)
.ipv6Address("string")
.ipv6Netmask(0)
.build())
.timeout(0)
.windowsOptions(VirtualMachineCloneCustomizeWindowsOptionsArgs.builder()
.computerName("string")
.domainOu("string")
.autoLogonCount(0)
.autoLogon(false)
.domainAdminPassword("string")
.domainAdminUser("string")
.adminPassword("string")
.fullName("string")
.joinDomain("string")
.organizationName("string")
.productKey("string")
.runOnceCommandLists("string")
.timeZone(0)
.workgroup("string")
.build())
.windowsSysprepText("string")
.build())
.linkedClone(false)
.ovfNetworkMap(Map.of("string", "string"))
.ovfStorageMap(Map.of("string", "string"))
.timeout(0)
.build())
.cpuHotAddEnabled(false)
.cpuHotRemoveEnabled(false)
.cpuLimit(0)
.cpuPerformanceCountersEnabled(false)
.cpuReservation(0)
.cpuShareCount(0)
.cpuShareLevel("string")
.customAttributes(Map.of("string", "string"))
.datacenterId("string")
.datastoreClusterId("string")
.datastoreId("string")
.disks(VirtualMachineDiskArgs.builder()
.label("string")
.ioShareLevel("string")
.unitNumber(0)
.deviceAddress("string")
.diskMode("string")
.diskSharing("string")
.eagerlyScrub(false)
.ioLimit(0)
.keepOnRemove(false)
.writeThrough(false)
.datastoreId("string")
.ioReservation(0)
.key(0)
.controllerType("string")
.path("string")
.size(0)
.storagePolicyId("string")
.thinProvisioned(false)
.attach(false)
.uuid("string")
.ioShareCount(0)
.build())
.efiSecureBootEnabled(false)
.enableDiskUuid(false)
.enableLogging(false)
.eptRviMode("string")
.extraConfig(Map.of("string", "string"))
.extraConfigRebootRequired(false)
.firmware("string")
.folder("string")
.forcePowerOff(false)
.guestId("string")
.hardwareVersion(0)
.hostSystemId("string")
.hvMode("string")
.ideControllerCount(0)
.ignoredGuestIps("string")
.latencySensitivity("string")
.memory(0)
.memoryHotAddEnabled(false)
.memoryLimit(0)
.memoryReservation(0)
.memoryReservationLockedToMax(false)
.memoryShareCount(0)
.memoryShareLevel("string")
.migrateWaitTimeout(0)
.name("string")
.nestedHvEnabled(false)
.networkInterfaces(VirtualMachineNetworkInterfaceArgs.builder()
.networkId("string")
.adapterType("string")
.bandwidthLimit(0)
.bandwidthReservation(0)
.bandwidthShareCount(0)
.bandwidthShareLevel("string")
.deviceAddress("string")
.key(0)
.macAddress("string")
.ovfMapping("string")
.physicalFunction("string")
.useStaticMac(false)
.build())
.numCoresPerSocket(0)
.numCpus(0)
.ovfDeploy(VirtualMachineOvfDeployArgs.builder()
.allowUnverifiedSslCert(false)
.deploymentOption("string")
.diskProvisioning("string")
.enableHiddenProperties(false)
.ipAllocationPolicy("string")
.ipProtocol("string")
.localOvfPath("string")
.ovfNetworkMap(Map.of("string", "string"))
.remoteOvfUrl("string")
.build())
.pciDeviceIds("string")
.poweronTimeout(0)
.replaceTrigger("string")
.runToolsScriptsAfterPowerOn(false)
.runToolsScriptsAfterResume(false)
.runToolsScriptsBeforeGuestReboot(false)
.runToolsScriptsBeforeGuestShutdown(false)
.runToolsScriptsBeforeGuestStandby(false)
.sataControllerCount(0)
.scsiBusSharing("string")
.scsiControllerCount(0)
.scsiType("string")
.shutdownWaitTimeout(0)
.storagePolicyId("string")
.swapPlacementPolicy("string")
.syncTimeWithHost(false)
.syncTimeWithHostPeriodically(false)
.tags("string")
.toolsUpgradePolicy("string")
.vapp(VirtualMachineVappArgs.builder()
.properties(Map.of("string", "string"))
.build())
.vbsEnabled(false)
.vtpm(VirtualMachineVtpmArgs.builder()
.version("string")
.build())
.vvtdEnabled(false)
.waitForGuestIpTimeout(0)
.waitForGuestNetRoutable(false)
.waitForGuestNetTimeout(0)
.build());
virtual_machine_resource = vsphere.VirtualMachine("virtualMachineResource",
resource_pool_id="string",
alternate_guest_name="string",
annotation="string",
boot_delay=0,
boot_retry_delay=0,
boot_retry_enabled=False,
cdroms=[{
"client_device": False,
"datastore_id": "string",
"device_address": "string",
"key": 0,
"path": "string",
}],
clone={
"template_uuid": "string",
"customization_spec": {
"id": "string",
"timeout": 0,
},
"customize": {
"dns_server_lists": ["string"],
"dns_suffix_lists": ["string"],
"ipv4_gateway": "string",
"ipv6_gateway": "string",
"linux_options": {
"domain": "string",
"host_name": "string",
"hw_clock_utc": False,
"script_text": "string",
"time_zone": "string",
},
"network_interfaces": [{
"dns_domain": "string",
"dns_server_lists": ["string"],
"ipv4_address": "string",
"ipv4_netmask": 0,
"ipv6_address": "string",
"ipv6_netmask": 0,
}],
"timeout": 0,
"windows_options": {
"computer_name": "string",
"domain_ou": "string",
"auto_logon_count": 0,
"auto_logon": False,
"domain_admin_password": "string",
"domain_admin_user": "string",
"admin_password": "string",
"full_name": "string",
"join_domain": "string",
"organization_name": "string",
"product_key": "string",
"run_once_command_lists": ["string"],
"time_zone": 0,
"workgroup": "string",
},
"windows_sysprep_text": "string",
},
"linked_clone": False,
"ovf_network_map": {
"string": "string",
},
"ovf_storage_map": {
"string": "string",
},
"timeout": 0,
},
cpu_hot_add_enabled=False,
cpu_hot_remove_enabled=False,
cpu_limit=0,
cpu_performance_counters_enabled=False,
cpu_reservation=0,
cpu_share_count=0,
cpu_share_level="string",
custom_attributes={
"string": "string",
},
datacenter_id="string",
datastore_cluster_id="string",
datastore_id="string",
disks=[{
"label": "string",
"io_share_level": "string",
"unit_number": 0,
"device_address": "string",
"disk_mode": "string",
"disk_sharing": "string",
"eagerly_scrub": False,
"io_limit": 0,
"keep_on_remove": False,
"write_through": False,
"datastore_id": "string",
"io_reservation": 0,
"key": 0,
"controller_type": "string",
"path": "string",
"size": 0,
"storage_policy_id": "string",
"thin_provisioned": False,
"attach": False,
"uuid": "string",
"io_share_count": 0,
}],
efi_secure_boot_enabled=False,
enable_disk_uuid=False,
enable_logging=False,
ept_rvi_mode="string",
extra_config={
"string": "string",
},
extra_config_reboot_required=False,
firmware="string",
folder="string",
force_power_off=False,
guest_id="string",
hardware_version=0,
host_system_id="string",
hv_mode="string",
ide_controller_count=0,
ignored_guest_ips=["string"],
latency_sensitivity="string",
memory=0,
memory_hot_add_enabled=False,
memory_limit=0,
memory_reservation=0,
memory_reservation_locked_to_max=False,
memory_share_count=0,
memory_share_level="string",
migrate_wait_timeout=0,
name="string",
nested_hv_enabled=False,
network_interfaces=[{
"network_id": "string",
"adapter_type": "string",
"bandwidth_limit": 0,
"bandwidth_reservation": 0,
"bandwidth_share_count": 0,
"bandwidth_share_level": "string",
"device_address": "string",
"key": 0,
"mac_address": "string",
"ovf_mapping": "string",
"physical_function": "string",
"use_static_mac": False,
}],
num_cores_per_socket=0,
num_cpus=0,
ovf_deploy={
"allow_unverified_ssl_cert": False,
"deployment_option": "string",
"disk_provisioning": "string",
"enable_hidden_properties": False,
"ip_allocation_policy": "string",
"ip_protocol": "string",
"local_ovf_path": "string",
"ovf_network_map": {
"string": "string",
},
"remote_ovf_url": "string",
},
pci_device_ids=["string"],
poweron_timeout=0,
replace_trigger="string",
run_tools_scripts_after_power_on=False,
run_tools_scripts_after_resume=False,
run_tools_scripts_before_guest_reboot=False,
run_tools_scripts_before_guest_shutdown=False,
run_tools_scripts_before_guest_standby=False,
sata_controller_count=0,
scsi_bus_sharing="string",
scsi_controller_count=0,
scsi_type="string",
shutdown_wait_timeout=0,
storage_policy_id="string",
swap_placement_policy="string",
sync_time_with_host=False,
sync_time_with_host_periodically=False,
tags=["string"],
tools_upgrade_policy="string",
vapp={
"properties": {
"string": "string",
},
},
vbs_enabled=False,
vtpm={
"version": "string",
},
vvtd_enabled=False,
wait_for_guest_ip_timeout=0,
wait_for_guest_net_routable=False,
wait_for_guest_net_timeout=0)
const virtualMachineResource = new vsphere.VirtualMachine("virtualMachineResource", {
resourcePoolId: "string",
alternateGuestName: "string",
annotation: "string",
bootDelay: 0,
bootRetryDelay: 0,
bootRetryEnabled: false,
cdroms: [{
clientDevice: false,
datastoreId: "string",
deviceAddress: "string",
key: 0,
path: "string",
}],
clone: {
templateUuid: "string",
customizationSpec: {
id: "string",
timeout: 0,
},
customize: {
dnsServerLists: ["string"],
dnsSuffixLists: ["string"],
ipv4Gateway: "string",
ipv6Gateway: "string",
linuxOptions: {
domain: "string",
hostName: "string",
hwClockUtc: false,
scriptText: "string",
timeZone: "string",
},
networkInterfaces: [{
dnsDomain: "string",
dnsServerLists: ["string"],
ipv4Address: "string",
ipv4Netmask: 0,
ipv6Address: "string",
ipv6Netmask: 0,
}],
timeout: 0,
windowsOptions: {
computerName: "string",
domainOu: "string",
autoLogonCount: 0,
autoLogon: false,
domainAdminPassword: "string",
domainAdminUser: "string",
adminPassword: "string",
fullName: "string",
joinDomain: "string",
organizationName: "string",
productKey: "string",
runOnceCommandLists: ["string"],
timeZone: 0,
workgroup: "string",
},
windowsSysprepText: "string",
},
linkedClone: false,
ovfNetworkMap: {
string: "string",
},
ovfStorageMap: {
string: "string",
},
timeout: 0,
},
cpuHotAddEnabled: false,
cpuHotRemoveEnabled: false,
cpuLimit: 0,
cpuPerformanceCountersEnabled: false,
cpuReservation: 0,
cpuShareCount: 0,
cpuShareLevel: "string",
customAttributes: {
string: "string",
},
datacenterId: "string",
datastoreClusterId: "string",
datastoreId: "string",
disks: [{
label: "string",
ioShareLevel: "string",
unitNumber: 0,
deviceAddress: "string",
diskMode: "string",
diskSharing: "string",
eagerlyScrub: false,
ioLimit: 0,
keepOnRemove: false,
writeThrough: false,
datastoreId: "string",
ioReservation: 0,
key: 0,
controllerType: "string",
path: "string",
size: 0,
storagePolicyId: "string",
thinProvisioned: false,
attach: false,
uuid: "string",
ioShareCount: 0,
}],
efiSecureBootEnabled: false,
enableDiskUuid: false,
enableLogging: false,
eptRviMode: "string",
extraConfig: {
string: "string",
},
extraConfigRebootRequired: false,
firmware: "string",
folder: "string",
forcePowerOff: false,
guestId: "string",
hardwareVersion: 0,
hostSystemId: "string",
hvMode: "string",
ideControllerCount: 0,
ignoredGuestIps: ["string"],
latencySensitivity: "string",
memory: 0,
memoryHotAddEnabled: false,
memoryLimit: 0,
memoryReservation: 0,
memoryReservationLockedToMax: false,
memoryShareCount: 0,
memoryShareLevel: "string",
migrateWaitTimeout: 0,
name: "string",
nestedHvEnabled: false,
networkInterfaces: [{
networkId: "string",
adapterType: "string",
bandwidthLimit: 0,
bandwidthReservation: 0,
bandwidthShareCount: 0,
bandwidthShareLevel: "string",
deviceAddress: "string",
key: 0,
macAddress: "string",
ovfMapping: "string",
physicalFunction: "string",
useStaticMac: false,
}],
numCoresPerSocket: 0,
numCpus: 0,
ovfDeploy: {
allowUnverifiedSslCert: false,
deploymentOption: "string",
diskProvisioning: "string",
enableHiddenProperties: false,
ipAllocationPolicy: "string",
ipProtocol: "string",
localOvfPath: "string",
ovfNetworkMap: {
string: "string",
},
remoteOvfUrl: "string",
},
pciDeviceIds: ["string"],
poweronTimeout: 0,
replaceTrigger: "string",
runToolsScriptsAfterPowerOn: false,
runToolsScriptsAfterResume: false,
runToolsScriptsBeforeGuestReboot: false,
runToolsScriptsBeforeGuestShutdown: false,
runToolsScriptsBeforeGuestStandby: false,
sataControllerCount: 0,
scsiBusSharing: "string",
scsiControllerCount: 0,
scsiType: "string",
shutdownWaitTimeout: 0,
storagePolicyId: "string",
swapPlacementPolicy: "string",
syncTimeWithHost: false,
syncTimeWithHostPeriodically: false,
tags: ["string"],
toolsUpgradePolicy: "string",
vapp: {
properties: {
string: "string",
},
},
vbsEnabled: false,
vtpm: {
version: "string",
},
vvtdEnabled: false,
waitForGuestIpTimeout: 0,
waitForGuestNetRoutable: false,
waitForGuestNetTimeout: 0,
});
type: vsphere:VirtualMachine
properties:
alternateGuestName: string
annotation: string
bootDelay: 0
bootRetryDelay: 0
bootRetryEnabled: false
cdroms:
- clientDevice: false
datastoreId: string
deviceAddress: string
key: 0
path: string
clone:
customizationSpec:
id: string
timeout: 0
customize:
dnsServerLists:
- string
dnsSuffixLists:
- string
ipv4Gateway: string
ipv6Gateway: string
linuxOptions:
domain: string
hostName: string
hwClockUtc: false
scriptText: string
timeZone: string
networkInterfaces:
- dnsDomain: string
dnsServerLists:
- string
ipv4Address: string
ipv4Netmask: 0
ipv6Address: string
ipv6Netmask: 0
timeout: 0
windowsOptions:
adminPassword: string
autoLogon: false
autoLogonCount: 0
computerName: string
domainAdminPassword: string
domainAdminUser: string
domainOu: string
fullName: string
joinDomain: string
organizationName: string
productKey: string
runOnceCommandLists:
- string
timeZone: 0
workgroup: string
windowsSysprepText: string
linkedClone: false
ovfNetworkMap:
string: string
ovfStorageMap:
string: string
templateUuid: string
timeout: 0
cpuHotAddEnabled: false
cpuHotRemoveEnabled: false
cpuLimit: 0
cpuPerformanceCountersEnabled: false
cpuReservation: 0
cpuShareCount: 0
cpuShareLevel: string
customAttributes:
string: string
datacenterId: string
datastoreClusterId: string
datastoreId: string
disks:
- attach: false
controllerType: string
datastoreId: string
deviceAddress: string
diskMode: string
diskSharing: string
eagerlyScrub: false
ioLimit: 0
ioReservation: 0
ioShareCount: 0
ioShareLevel: string
keepOnRemove: false
key: 0
label: string
path: string
size: 0
storagePolicyId: string
thinProvisioned: false
unitNumber: 0
uuid: string
writeThrough: false
efiSecureBootEnabled: false
enableDiskUuid: false
enableLogging: false
eptRviMode: string
extraConfig:
string: string
extraConfigRebootRequired: false
firmware: string
folder: string
forcePowerOff: false
guestId: string
hardwareVersion: 0
hostSystemId: string
hvMode: string
ideControllerCount: 0
ignoredGuestIps:
- string
latencySensitivity: string
memory: 0
memoryHotAddEnabled: false
memoryLimit: 0
memoryReservation: 0
memoryReservationLockedToMax: false
memoryShareCount: 0
memoryShareLevel: string
migrateWaitTimeout: 0
name: string
nestedHvEnabled: false
networkInterfaces:
- adapterType: string
bandwidthLimit: 0
bandwidthReservation: 0
bandwidthShareCount: 0
bandwidthShareLevel: string
deviceAddress: string
key: 0
macAddress: string
networkId: string
ovfMapping: string
physicalFunction: string
useStaticMac: false
numCoresPerSocket: 0
numCpus: 0
ovfDeploy:
allowUnverifiedSslCert: false
deploymentOption: string
diskProvisioning: string
enableHiddenProperties: false
ipAllocationPolicy: string
ipProtocol: string
localOvfPath: string
ovfNetworkMap:
string: string
remoteOvfUrl: string
pciDeviceIds:
- string
poweronTimeout: 0
replaceTrigger: string
resourcePoolId: string
runToolsScriptsAfterPowerOn: false
runToolsScriptsAfterResume: false
runToolsScriptsBeforeGuestReboot: false
runToolsScriptsBeforeGuestShutdown: false
runToolsScriptsBeforeGuestStandby: false
sataControllerCount: 0
scsiBusSharing: string
scsiControllerCount: 0
scsiType: string
shutdownWaitTimeout: 0
storagePolicyId: string
swapPlacementPolicy: string
syncTimeWithHost: false
syncTimeWithHostPeriodically: false
tags:
- string
toolsUpgradePolicy: string
vapp:
properties:
string: string
vbsEnabled: false
vtpm:
version: string
vvtdEnabled: false
waitForGuestIpTimeout: 0
waitForGuestNetRoutable: false
waitForGuestNetTimeout: 0
VirtualMachine Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VirtualMachine resource accepts the following input properties:
- Resource
Pool stringId - The ID of a resource pool to put the virtual machine in.
- Alternate
Guest stringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- Annotation string
- User-provided description of the virtual machine.
- Boot
Delay int - The number of milliseconds to wait before starting the boot sequence.
- Boot
Retry intDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- Cdroms
List<Pulumi.
VSphere. Inputs. Virtual Machine Cdrom> - A specification for a CDROM device on this virtual machine.
- Clone
Pulumi.
VSphere. Inputs. Virtual Machine Clone - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- Cpu
Limit int - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- Cpu
Performance boolCounters Enabled - Enable CPU performance counters on this virtual machine.
- Cpu
Reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- int
- The amount of shares to allocate to cpu for a custom share level.
- string
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- Custom
Attributes Dictionary<string, string> - A list of custom attributes to set on this resource.
- Datacenter
Id string - The ID of the datacenter where the VM is to be created.
- Datastore
Cluster stringId - The ID of a datastore cluster to put the virtual machine in.
- Datastore
Id string - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- Disks
List<Pulumi.
VSphere. Inputs. Virtual Machine Disk> - A specification for a virtual disk device on this virtual machine.
- Efi
Secure boolBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- Enable
Disk boolUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- Enable
Logging bool - Enable logging on this virtual machine.
- Ept
Rvi stringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- 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, or configuration data for OVF images.
- Extra
Config boolReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - Firmware string
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- Folder string
- The name of the folder to locate the virtual machine in.
- Force
Power boolOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- Guest
Id string - The guest ID for the operating system.
- Hardware
Version int - The hardware version for the virtual machine.
- Host
System stringId - The ID of an optional host system to pin the virtual machine to.
- Hv
Mode string - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- Ide
Controller intCount - Ignored
Guest List<string>Ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- 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, or high.
- Memory int
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- Memory
Reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- Memory
Reservation boolLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- int
- The amount of shares to allocate to memory for a custom share level.
- string
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- Migrate
Wait intTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- Name string
- The name of this virtual machine.
- Nested
Hv boolEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- Network
Interfaces List<Pulumi.VSphere. Inputs. Virtual Machine Network Interface> - A specification for a virtual NIC on this virtual machine.
- Num
Cores intPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- Num
Cpus int - The number of virtual processors to assign to this virtual machine.
- Ovf
Deploy Pulumi.VSphere. Inputs. Virtual Machine Ovf Deploy - A specification for deploying a virtual machine from ovf/ova template.
- Pci
Device List<string>Ids - A list of PCI passthrough devices
- Poweron
Timeout int - The amount of time, in seconds, that we will be trying to power on a VM
- Replace
Trigger string - Triggers replacement of resource whenever it changes.
- Run
Tools boolScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- Run
Tools boolScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- Sata
Controller intCount - Scsi
Bus stringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- Scsi
Controller intCount - Scsi
Type string - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- Shutdown
Wait intTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- Storage
Policy stringId - The ID of the storage policy to assign to the virtual machine home directory.
- Swap
Placement stringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- Sync
Time boolWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- Sync
Time boolWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - List<string>
- A list of tag IDs to apply to this object.
- Tools
Upgrade stringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - Vapp
Pulumi.
VSphere. Inputs. Virtual Machine Vapp - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- Vbs
Enabled bool - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- Vtpm
Pulumi.
VSphere. Inputs. Virtual Machine Vtpm - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- Vvtd
Enabled bool - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- Wait
For intGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- Wait
For intGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- Resource
Pool stringId - The ID of a resource pool to put the virtual machine in.
- Alternate
Guest stringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- Annotation string
- User-provided description of the virtual machine.
- Boot
Delay int - The number of milliseconds to wait before starting the boot sequence.
- Boot
Retry intDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- Cdroms
[]Virtual
Machine Cdrom Args - A specification for a CDROM device on this virtual machine.
- Clone
Virtual
Machine Clone Args - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- Cpu
Limit int - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- Cpu
Performance boolCounters Enabled - Enable CPU performance counters on this virtual machine.
- Cpu
Reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- int
- The amount of shares to allocate to cpu for a custom share level.
- string
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- Custom
Attributes map[string]string - A list of custom attributes to set on this resource.
- Datacenter
Id string - The ID of the datacenter where the VM is to be created.
- Datastore
Cluster stringId - The ID of a datastore cluster to put the virtual machine in.
- Datastore
Id string - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- Disks
[]Virtual
Machine Disk Args - A specification for a virtual disk device on this virtual machine.
- Efi
Secure boolBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- Enable
Disk boolUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- Enable
Logging bool - Enable logging on this virtual machine.
- Ept
Rvi stringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- 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, or configuration data for OVF images.
- Extra
Config boolReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - Firmware string
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- Folder string
- The name of the folder to locate the virtual machine in.
- Force
Power boolOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- Guest
Id string - The guest ID for the operating system.
- Hardware
Version int - The hardware version for the virtual machine.
- Host
System stringId - The ID of an optional host system to pin the virtual machine to.
- Hv
Mode string - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- Ide
Controller intCount - Ignored
Guest []stringIps - List of IP addresses and CIDR networks to ignore while waiting for an IP
- 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, or high.
- Memory int
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- Memory
Reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- Memory
Reservation boolLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- int
- The amount of shares to allocate to memory for a custom share level.
- string
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- Migrate
Wait intTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- Name string
- The name of this virtual machine.
- Nested
Hv boolEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- Network
Interfaces []VirtualMachine Network Interface Args - A specification for a virtual NIC on this virtual machine.
- Num
Cores intPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- Num
Cpus int - The number of virtual processors to assign to this virtual machine.
- Ovf
Deploy VirtualMachine Ovf Deploy Args - A specification for deploying a virtual machine from ovf/ova template.
- Pci
Device []stringIds - A list of PCI passthrough devices
- Poweron
Timeout int - The amount of time, in seconds, that we will be trying to power on a VM
- Replace
Trigger string - Triggers replacement of resource whenever it changes.
- Run
Tools boolScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- Run
Tools boolScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- Sata
Controller intCount - Scsi
Bus stringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- Scsi
Controller intCount - Scsi
Type string - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- Shutdown
Wait intTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- Storage
Policy stringId - The ID of the storage policy to assign to the virtual machine home directory.
- Swap
Placement stringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- Sync
Time boolWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- Sync
Time boolWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - []string
- A list of tag IDs to apply to this object.
- Tools
Upgrade stringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - Vapp
Virtual
Machine Vapp Args - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- Vbs
Enabled bool - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- Vtpm
Virtual
Machine Vtpm Args - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- Vvtd
Enabled bool - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- Wait
For intGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- Wait
For intGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- resource
Pool StringId - The ID of a resource pool to put the virtual machine in.
- alternate
Guest StringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- annotation String
- User-provided description of the virtual machine.
- boot
Delay Integer - The number of milliseconds to wait before starting the boot sequence.
- boot
Retry IntegerDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- cdroms
List<Virtual
Machine Cdrom> - A specification for a CDROM device on this virtual machine.
- clone_
Virtual
Machine Clone - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- cpu
Limit Integer - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- cpu
Performance BooleanCounters Enabled - Enable CPU performance counters on this virtual machine.
- cpu
Reservation Integer - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- Integer
- The amount of shares to allocate to cpu for a custom share level.
- String
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- custom
Attributes Map<String,String> - A list of custom attributes to set on this resource.
- datacenter
Id String - The ID of the datacenter where the VM is to be created.
- datastore
Cluster StringId - The ID of a datastore cluster to put the virtual machine in.
- datastore
Id String - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- disks
List<Virtual
Machine Disk> - A specification for a virtual disk device on this virtual machine.
- efi
Secure BooleanBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- enable
Disk BooleanUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- enable
Logging Boolean - Enable logging on this virtual machine.
- ept
Rvi StringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- 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, or configuration data for OVF images.
- extra
Config BooleanReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - firmware String
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- folder String
- The name of the folder to locate the virtual machine in.
- force
Power BooleanOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- guest
Id String - The guest ID for the operating system.
- hardware
Version Integer - The hardware version for the virtual machine.
- host
System StringId - The ID of an optional host system to pin the virtual machine to.
- hv
Mode String - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- ide
Controller IntegerCount - ignored
Guest List<String>Ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- 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, or high.
- memory Integer
- The size of the virtual machine's memory, in MB.
- memory
Hot BooleanAdd Enabled - Allow memory to be added to this virtual machine while it is running.
- memory
Limit Integer - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- memory
Reservation Integer - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- memory
Reservation BooleanLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- Integer
- The amount of shares to allocate to memory for a custom share level.
- String
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- migrate
Wait IntegerTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- name String
- The name of this virtual machine.
- nested
Hv BooleanEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- network
Interfaces List<VirtualMachine Network Interface> - A specification for a virtual NIC on this virtual machine.
- num
Cores IntegerPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- num
Cpus Integer - The number of virtual processors to assign to this virtual machine.
- ovf
Deploy VirtualMachine Ovf Deploy - A specification for deploying a virtual machine from ovf/ova template.
- pci
Device List<String>Ids - A list of PCI passthrough devices
- poweron
Timeout Integer - The amount of time, in seconds, that we will be trying to power on a VM
- replace
Trigger String - Triggers replacement of resource whenever it changes.
- run
Tools BooleanScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- run
Tools BooleanScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- sata
Controller IntegerCount - scsi
Bus StringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- scsi
Controller IntegerCount - scsi
Type String - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- shutdown
Wait IntegerTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- storage
Policy StringId - The ID of the storage policy to assign to the virtual machine home directory.
- swap
Placement StringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- sync
Time BooleanWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- sync
Time BooleanWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - List<String>
- A list of tag IDs to apply to this object.
- tools
Upgrade StringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - vapp
Virtual
Machine Vapp - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- vbs
Enabled Boolean - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- vtpm
Virtual
Machine Vtpm - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- vvtd
Enabled Boolean - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- wait
For IntegerGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- wait
For IntegerGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- resource
Pool stringId - The ID of a resource pool to put the virtual machine in.
- alternate
Guest stringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- annotation string
- User-provided description of the virtual machine.
- boot
Delay number - The number of milliseconds to wait before starting the boot sequence.
- boot
Retry numberDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- cdroms
Virtual
Machine Cdrom[] - A specification for a CDROM device on this virtual machine.
- clone
Virtual
Machine Clone - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- cpu
Limit number - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- cpu
Performance booleanCounters Enabled - Enable CPU performance counters on this virtual machine.
- cpu
Reservation number - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- number
- The amount of shares to allocate to cpu for a custom share level.
- string
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- custom
Attributes {[key: string]: string} - A list of custom attributes to set on this resource.
- datacenter
Id string - The ID of the datacenter where the VM is to be created.
- datastore
Cluster stringId - The ID of a datastore cluster to put the virtual machine in.
- datastore
Id string - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- disks
Virtual
Machine Disk[] - A specification for a virtual disk device on this virtual machine.
- efi
Secure booleanBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- enable
Disk booleanUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- enable
Logging boolean - Enable logging on this virtual machine.
- ept
Rvi stringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- 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, or configuration data for OVF images.
- extra
Config booleanReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - firmware string
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- folder string
- The name of the folder to locate the virtual machine in.
- force
Power booleanOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- guest
Id string - The guest ID for the operating system.
- hardware
Version number - The hardware version for the virtual machine.
- host
System stringId - The ID of an optional host system to pin the virtual machine to.
- hv
Mode string - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- ide
Controller numberCount - ignored
Guest string[]Ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- 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, or high.
- memory number
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- memory
Reservation number - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- memory
Reservation booleanLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- number
- The amount of shares to allocate to memory for a custom share level.
- string
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- migrate
Wait numberTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- name string
- The name of this virtual machine.
- nested
Hv booleanEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- network
Interfaces VirtualMachine Network Interface[] - A specification for a virtual NIC on this virtual machine.
- num
Cores numberPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- num
Cpus number - The number of virtual processors to assign to this virtual machine.
- ovf
Deploy VirtualMachine Ovf Deploy - A specification for deploying a virtual machine from ovf/ova template.
- pci
Device string[]Ids - A list of PCI passthrough devices
- poweron
Timeout number - The amount of time, in seconds, that we will be trying to power on a VM
- replace
Trigger string - Triggers replacement of resource whenever it changes.
- run
Tools booleanScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- run
Tools booleanScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- run
Tools booleanScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- run
Tools booleanScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- run
Tools booleanScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- sata
Controller numberCount - scsi
Bus stringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- scsi
Controller numberCount - scsi
Type string - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- shutdown
Wait numberTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- storage
Policy stringId - The ID of the storage policy to assign to the virtual machine home directory.
- swap
Placement stringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- sync
Time booleanWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- sync
Time booleanWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - string[]
- A list of tag IDs to apply to this object.
- tools
Upgrade stringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - vapp
Virtual
Machine Vapp - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- vbs
Enabled boolean - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- vtpm
Virtual
Machine Vtpm - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- vvtd
Enabled boolean - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- wait
For numberGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- wait
For numberGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- resource_
pool_ strid - The ID of a resource pool to put the virtual machine in.
- alternate_
guest_ strname - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- annotation str
- User-provided description of the virtual machine.
- boot_
delay int - The number of milliseconds to wait before starting the boot sequence.
- boot_
retry_ intdelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- cdroms
Sequence[Virtual
Machine Cdrom Args] - A specification for a CDROM device on this virtual machine.
- clone
Virtual
Machine Clone Args - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- cpu_
limit int - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- cpu_
performance_ boolcounters_ enabled - Enable CPU performance counters on this virtual machine.
- cpu_
reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- int
- The amount of shares to allocate to cpu for a custom share level.
- str
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- custom_
attributes Mapping[str, str] - A list of custom attributes to set on this resource.
- datacenter_
id str - The ID of the datacenter where the VM is to be created.
- datastore_
cluster_ strid - The ID of a datastore cluster to put the virtual machine in.
- datastore_
id str - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- disks
Sequence[Virtual
Machine Disk Args] - A specification for a virtual disk device on this virtual machine.
- efi_
secure_ boolboot_ enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- enable_
disk_ booluuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- enable_
logging bool - Enable logging on this virtual machine.
- ept_
rvi_ strmode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- extra_
config Mapping[str, str] - Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata, or configuration data for OVF images.
- extra_
config_ boolreboot_ required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - firmware str
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- folder str
- The name of the folder to locate the virtual machine in.
- force_
power_ booloff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- guest_
id str - The guest ID for the operating system.
- hardware_
version int - The hardware version for the virtual machine.
- host_
system_ strid - The ID of an optional host system to pin the virtual machine to.
- hv_
mode str - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- ide_
controller_ intcount - ignored_
guest_ Sequence[str]ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- 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, or high.
- memory int
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- memory_
reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- memory_
reservation_ boollocked_ to_ max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- int
- The amount of shares to allocate to memory for a custom share level.
- str
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- migrate_
wait_ inttimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- name str
- The name of this virtual machine.
- nested_
hv_ boolenabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- network_
interfaces Sequence[VirtualMachine Network Interface Args] - A specification for a virtual NIC on this virtual machine.
- num_
cores_ intper_ socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- num_
cpus int - The number of virtual processors to assign to this virtual machine.
- ovf_
deploy VirtualMachine Ovf Deploy Args - A specification for deploying a virtual machine from ovf/ova template.
- pci_
device_ Sequence[str]ids - A list of PCI passthrough devices
- poweron_
timeout int - The amount of time, in seconds, that we will be trying to power on a VM
- replace_
trigger str - Triggers replacement of resource whenever it changes.
- run_
tools_ boolscripts_ after_ power_ on - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- run_
tools_ boolscripts_ after_ resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- run_
tools_ boolscripts_ before_ guest_ reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- run_
tools_ boolscripts_ before_ guest_ shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- run_
tools_ boolscripts_ before_ guest_ standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- sata_
controller_ intcount - scsi_
bus_ strsharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- scsi_
controller_ intcount - scsi_
type str - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- shutdown_
wait_ inttimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- storage_
policy_ strid - The ID of the storage policy to assign to the virtual machine home directory.
- swap_
placement_ strpolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- sync_
time_ boolwith_ host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- sync_
time_ boolwith_ host_ periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - Sequence[str]
- A list of tag IDs to apply to this object.
- tools_
upgrade_ strpolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - vapp
Virtual
Machine Vapp Args - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- vbs_
enabled bool - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- vtpm
Virtual
Machine Vtpm Args - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- vvtd_
enabled bool - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- wait_
for_ intguest_ ip_ timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- wait_
for_ intguest_ net_ timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- resource
Pool StringId - The ID of a resource pool to put the virtual machine in.
- alternate
Guest StringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- annotation String
- User-provided description of the virtual machine.
- boot
Delay Number - The number of milliseconds to wait before starting the boot sequence.
- boot
Retry NumberDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- cdroms List<Property Map>
- A specification for a CDROM device on this virtual machine.
- clone Property Map
- A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- cpu
Limit Number - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- cpu
Performance BooleanCounters Enabled - Enable CPU performance counters on this virtual machine.
- cpu
Reservation Number - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- Number
- The amount of shares to allocate to cpu for a custom share level.
- String
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- custom
Attributes Map<String> - A list of custom attributes to set on this resource.
- datacenter
Id String - The ID of the datacenter where the VM is to be created.
- datastore
Cluster StringId - The ID of a datastore cluster to put the virtual machine in.
- datastore
Id String - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- disks List<Property Map>
- A specification for a virtual disk device on this virtual machine.
- efi
Secure BooleanBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- enable
Disk BooleanUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- enable
Logging Boolean - Enable logging on this virtual machine.
- ept
Rvi StringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- extra
Config Map<String> - Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata, or configuration data for OVF images.
- extra
Config BooleanReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - firmware String
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- folder String
- The name of the folder to locate the virtual machine in.
- force
Power BooleanOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- guest
Id String - The guest ID for the operating system.
- hardware
Version Number - The hardware version for the virtual machine.
- host
System StringId - The ID of an optional host system to pin the virtual machine to.
- hv
Mode String - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- ide
Controller NumberCount - ignored
Guest List<String>Ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- 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, or high.
- memory Number
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- memory
Reservation Number - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- memory
Reservation BooleanLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- Number
- The amount of shares to allocate to memory for a custom share level.
- String
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- migrate
Wait NumberTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- name String
- The name of this virtual machine.
- nested
Hv BooleanEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- network
Interfaces List<Property Map> - A specification for a virtual NIC on this virtual machine.
- num
Cores NumberPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- num
Cpus Number - The number of virtual processors to assign to this virtual machine.
- ovf
Deploy Property Map - A specification for deploying a virtual machine from ovf/ova template.
- pci
Device List<String>Ids - A list of PCI passthrough devices
- poweron
Timeout Number - The amount of time, in seconds, that we will be trying to power on a VM
- replace
Trigger String - Triggers replacement of resource whenever it changes.
- run
Tools BooleanScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- run
Tools BooleanScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- sata
Controller NumberCount - scsi
Bus StringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- scsi
Controller NumberCount - scsi
Type String - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- shutdown
Wait NumberTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- storage
Policy StringId - The ID of the storage policy to assign to the virtual machine home directory.
- swap
Placement StringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- sync
Time BooleanWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- sync
Time BooleanWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - List<String>
- A list of tag IDs to apply to this object.
- tools
Upgrade StringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - vapp Property Map
- vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- vbs
Enabled Boolean - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- vtpm Property Map
- A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- vvtd
Enabled Boolean - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- wait
For NumberGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- wait
For NumberGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
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 was applied.
- Default
Ip stringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine 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 virtul machine is powered off, this list will be empty. - Id string
- The provider-assigned unique ID for this managed resource.
- Imported bool
- Indicates if the virtual machine resource has been imported, or if 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 managed object reference ID of the created virtual machine.
- Power
State string - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - Reboot
Required bool - Uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - 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 configuration file on the datastore in which the virtual machine is placed.
- Change
Version string - A unique identifier for a given version of the last configuration was applied.
- Default
Ip stringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine 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 virtul machine is powered off, this list will be empty. - Id string
- The provider-assigned unique ID for this managed resource.
- Imported bool
- Indicates if the virtual machine resource has been imported, or if 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 managed object reference ID of the created virtual machine.
- Power
State string - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - Reboot
Required bool - Uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - 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 configuration file on the datastore in which the virtual machine is placed.
- change
Version String - A unique identifier for a given version of the last configuration was applied.
- default
Ip StringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine 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 virtul machine is powered off, this list will be empty. - id String
- The provider-assigned unique ID for this managed resource.
- imported Boolean
- Indicates if the virtual machine resource has been imported, or if 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 managed object reference ID of the created virtual machine.
- power
State String - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - reboot
Required Boolean - uuid String
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - 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 configuration file on the datastore in which the virtual machine is placed.
- change
Version string - A unique identifier for a given version of the last configuration was applied.
- default
Ip stringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine 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 virtul machine is powered off, this list will be empty. - id string
- The provider-assigned unique ID for this managed resource.
- imported boolean
- Indicates if the virtual machine resource has been imported, or if 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 managed object reference ID of the created virtual machine.
- power
State string - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - reboot
Required boolean - uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - 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 configuration file on the datastore in which the virtual machine is placed.
- change_
version str - A unique identifier for a given version of the last configuration was applied.
- default_
ip_ straddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine is powered off, this value will be blank.
- guest_
ip_ Sequence[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 virtul machine is powered off, this list will be empty. - id str
- The provider-assigned unique ID for this managed resource.
- imported bool
- Indicates if the virtual machine resource has been imported, or if 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 managed object reference ID of the created virtual machine.
- power_
state str - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - reboot_
required bool - uuid str
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - vapp_
transports Sequence[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 configuration file on the datastore in which the virtual machine is placed.
- change
Version String - A unique identifier for a given version of the last configuration was applied.
- default
Ip StringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine 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 virtul machine is powered off, this list will be empty. - id String
- The provider-assigned unique ID for this managed resource.
- imported Boolean
- Indicates if the virtual machine resource has been imported, or if 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 managed object reference ID of the created virtual machine.
- power
State String - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - reboot
Required Boolean - uuid String
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - 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 configuration file on the datastore in which the virtual machine is placed.
Look up 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): VirtualMachine
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alternate_guest_name: Optional[str] = None,
annotation: Optional[str] = None,
boot_delay: Optional[int] = None,
boot_retry_delay: Optional[int] = None,
boot_retry_enabled: Optional[bool] = None,
cdroms: Optional[Sequence[VirtualMachineCdromArgs]] = None,
change_version: Optional[str] = None,
clone: Optional[VirtualMachineCloneArgs] = None,
cpu_hot_add_enabled: Optional[bool] = None,
cpu_hot_remove_enabled: Optional[bool] = None,
cpu_limit: Optional[int] = None,
cpu_performance_counters_enabled: Optional[bool] = None,
cpu_reservation: Optional[int] = None,
cpu_share_count: Optional[int] = None,
cpu_share_level: Optional[str] = None,
custom_attributes: Optional[Mapping[str, str]] = None,
datacenter_id: Optional[str] = None,
datastore_cluster_id: Optional[str] = None,
datastore_id: Optional[str] = None,
default_ip_address: Optional[str] = None,
disks: Optional[Sequence[VirtualMachineDiskArgs]] = None,
efi_secure_boot_enabled: Optional[bool] = None,
enable_disk_uuid: Optional[bool] = None,
enable_logging: Optional[bool] = None,
ept_rvi_mode: Optional[str] = None,
extra_config: Optional[Mapping[str, str]] = None,
extra_config_reboot_required: Optional[bool] = None,
firmware: Optional[str] = None,
folder: Optional[str] = None,
force_power_off: Optional[bool] = None,
guest_id: Optional[str] = None,
guest_ip_addresses: Optional[Sequence[str]] = None,
hardware_version: Optional[int] = None,
host_system_id: Optional[str] = None,
hv_mode: Optional[str] = None,
ide_controller_count: Optional[int] = None,
ignored_guest_ips: Optional[Sequence[str]] = None,
imported: Optional[bool] = None,
latency_sensitivity: Optional[str] = None,
memory: Optional[int] = None,
memory_hot_add_enabled: Optional[bool] = None,
memory_limit: Optional[int] = None,
memory_reservation: Optional[int] = None,
memory_reservation_locked_to_max: Optional[bool] = None,
memory_share_count: Optional[int] = None,
memory_share_level: Optional[str] = None,
migrate_wait_timeout: Optional[int] = None,
moid: Optional[str] = None,
name: Optional[str] = None,
nested_hv_enabled: Optional[bool] = None,
network_interfaces: Optional[Sequence[VirtualMachineNetworkInterfaceArgs]] = None,
num_cores_per_socket: Optional[int] = None,
num_cpus: Optional[int] = None,
ovf_deploy: Optional[VirtualMachineOvfDeployArgs] = None,
pci_device_ids: Optional[Sequence[str]] = None,
power_state: Optional[str] = None,
poweron_timeout: Optional[int] = None,
reboot_required: Optional[bool] = None,
replace_trigger: Optional[str] = None,
resource_pool_id: Optional[str] = None,
run_tools_scripts_after_power_on: Optional[bool] = None,
run_tools_scripts_after_resume: Optional[bool] = None,
run_tools_scripts_before_guest_reboot: Optional[bool] = None,
run_tools_scripts_before_guest_shutdown: Optional[bool] = None,
run_tools_scripts_before_guest_standby: Optional[bool] = None,
sata_controller_count: Optional[int] = None,
scsi_bus_sharing: Optional[str] = None,
scsi_controller_count: Optional[int] = None,
scsi_type: Optional[str] = None,
shutdown_wait_timeout: Optional[int] = None,
storage_policy_id: Optional[str] = None,
swap_placement_policy: Optional[str] = None,
sync_time_with_host: Optional[bool] = None,
sync_time_with_host_periodically: Optional[bool] = None,
tags: Optional[Sequence[str]] = None,
tools_upgrade_policy: Optional[str] = None,
uuid: Optional[str] = None,
vapp: Optional[VirtualMachineVappArgs] = None,
vapp_transports: Optional[Sequence[str]] = None,
vbs_enabled: Optional[bool] = None,
vmware_tools_status: Optional[str] = None,
vmx_path: Optional[str] = None,
vtpm: Optional[VirtualMachineVtpmArgs] = None,
vvtd_enabled: Optional[bool] = None,
wait_for_guest_ip_timeout: Optional[int] = None,
wait_for_guest_net_routable: Optional[bool] = None,
wait_for_guest_net_timeout: Optional[int] = None) -> VirtualMachine
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)
public static VirtualMachine get(String name, Output<String> id, VirtualMachineState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alternate
Guest stringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- Annotation string
- User-provided description of the virtual machine.
- Boot
Delay int - The number of milliseconds to wait before starting the boot sequence.
- Boot
Retry intDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- Cdroms
List<Pulumi.
VSphere. Inputs. Virtual Machine Cdrom> - A specification for a CDROM device on this virtual machine.
- Change
Version string - A unique identifier for a given version of the last configuration was applied.
- Clone
Pulumi.
VSphere. Inputs. Virtual Machine Clone - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- Cpu
Limit int - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- Cpu
Performance boolCounters Enabled - Enable CPU performance counters on this virtual machine.
- Cpu
Reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- int
- The amount of shares to allocate to cpu for a custom share level.
- string
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- Custom
Attributes Dictionary<string, string> - A list of custom attributes to set on this resource.
- Datacenter
Id string - The ID of the datacenter where the VM is to be created.
- Datastore
Cluster stringId - The ID of a datastore cluster to put the virtual machine in.
- Datastore
Id string - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- Default
Ip stringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine is powered off, this value will be blank.
- Disks
List<Pulumi.
VSphere. Inputs. Virtual Machine Disk> - A specification for a virtual disk device on this virtual machine.
- Efi
Secure boolBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- Enable
Disk boolUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- Enable
Logging bool - Enable logging on this virtual machine.
- Ept
Rvi stringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- 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, or configuration data for OVF images.
- Extra
Config boolReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - Firmware string
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- Folder string
- The name of the folder to locate the virtual machine in.
- Force
Power boolOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- Guest
Id string - The guest ID for the operating system.
- 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 virtul machine is powered off, this list will be empty. - Hardware
Version int - The hardware version for the virtual machine.
- Host
System stringId - The ID of an optional host system to pin the virtual machine to.
- Hv
Mode string - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- Ide
Controller intCount - Ignored
Guest List<string>Ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- Imported bool
- Indicates if the virtual machine resource has been imported, or if 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, or high.
- Memory int
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- Memory
Reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- Memory
Reservation boolLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- int
- The amount of shares to allocate to memory for a custom share level.
- string
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- Migrate
Wait intTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- Moid string
- The managed object reference ID of the created virtual machine.
- Name string
- The name of this virtual machine.
- Nested
Hv boolEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- Network
Interfaces List<Pulumi.VSphere. Inputs. Virtual Machine Network Interface> - A specification for a virtual NIC on this virtual machine.
- Num
Cores intPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- Num
Cpus int - The number of virtual processors to assign to this virtual machine.
- Ovf
Deploy Pulumi.VSphere. Inputs. Virtual Machine Ovf Deploy - A specification for deploying a virtual machine from ovf/ova template.
- Pci
Device List<string>Ids - A list of PCI passthrough devices
- Power
State string - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - Poweron
Timeout int - The amount of time, in seconds, that we will be trying to power on a VM
- Reboot
Required bool - Replace
Trigger string - Triggers replacement of resource whenever it changes.
- Resource
Pool stringId - The ID of a resource pool to put the virtual machine in.
- Run
Tools boolScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- Run
Tools boolScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- Sata
Controller intCount - Scsi
Bus stringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- Scsi
Controller intCount - Scsi
Type string - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- Shutdown
Wait intTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- Storage
Policy stringId - The ID of the storage policy to assign to the virtual machine home directory.
- Swap
Placement stringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- Sync
Time boolWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- Sync
Time boolWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - List<string>
- A list of tag IDs to apply to this object.
- Tools
Upgrade stringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - Uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - Vapp
Pulumi.
VSphere. Inputs. Virtual Machine Vapp - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- 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.
- Vbs
Enabled bool - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- 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 configuration file on the datastore in which the virtual machine is placed.
- Vtpm
Pulumi.
VSphere. Inputs. Virtual Machine Vtpm - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- Vvtd
Enabled bool - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- Wait
For intGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- Wait
For intGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- Alternate
Guest stringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- Annotation string
- User-provided description of the virtual machine.
- Boot
Delay int - The number of milliseconds to wait before starting the boot sequence.
- Boot
Retry intDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- Cdroms
[]Virtual
Machine Cdrom Args - A specification for a CDROM device on this virtual machine.
- Change
Version string - A unique identifier for a given version of the last configuration was applied.
- Clone
Virtual
Machine Clone Args - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- Cpu
Limit int - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- Cpu
Performance boolCounters Enabled - Enable CPU performance counters on this virtual machine.
- Cpu
Reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- int
- The amount of shares to allocate to cpu for a custom share level.
- string
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- Custom
Attributes map[string]string - A list of custom attributes to set on this resource.
- Datacenter
Id string - The ID of the datacenter where the VM is to be created.
- Datastore
Cluster stringId - The ID of a datastore cluster to put the virtual machine in.
- Datastore
Id string - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- Default
Ip stringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine is powered off, this value will be blank.
- Disks
[]Virtual
Machine Disk Args - A specification for a virtual disk device on this virtual machine.
- Efi
Secure boolBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- Enable
Disk boolUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- Enable
Logging bool - Enable logging on this virtual machine.
- Ept
Rvi stringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- 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, or configuration data for OVF images.
- Extra
Config boolReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - Firmware string
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- Folder string
- The name of the folder to locate the virtual machine in.
- Force
Power boolOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- Guest
Id string - The guest ID for the operating system.
- 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 virtul machine is powered off, this list will be empty. - Hardware
Version int - The hardware version for the virtual machine.
- Host
System stringId - The ID of an optional host system to pin the virtual machine to.
- Hv
Mode string - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- Ide
Controller intCount - Ignored
Guest []stringIps - List of IP addresses and CIDR networks to ignore while waiting for an IP
- Imported bool
- Indicates if the virtual machine resource has been imported, or if 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, or high.
- Memory int
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- Memory
Reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- Memory
Reservation boolLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- int
- The amount of shares to allocate to memory for a custom share level.
- string
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- Migrate
Wait intTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- Moid string
- The managed object reference ID of the created virtual machine.
- Name string
- The name of this virtual machine.
- Nested
Hv boolEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- Network
Interfaces []VirtualMachine Network Interface Args - A specification for a virtual NIC on this virtual machine.
- Num
Cores intPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- Num
Cpus int - The number of virtual processors to assign to this virtual machine.
- Ovf
Deploy VirtualMachine Ovf Deploy Args - A specification for deploying a virtual machine from ovf/ova template.
- Pci
Device []stringIds - A list of PCI passthrough devices
- Power
State string - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - Poweron
Timeout int - The amount of time, in seconds, that we will be trying to power on a VM
- Reboot
Required bool - Replace
Trigger string - Triggers replacement of resource whenever it changes.
- Resource
Pool stringId - The ID of a resource pool to put the virtual machine in.
- Run
Tools boolScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- Run
Tools boolScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- Run
Tools boolScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- Sata
Controller intCount - Scsi
Bus stringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- Scsi
Controller intCount - Scsi
Type string - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- Shutdown
Wait intTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- Storage
Policy stringId - The ID of the storage policy to assign to the virtual machine home directory.
- Swap
Placement stringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- Sync
Time boolWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- Sync
Time boolWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - []string
- A list of tag IDs to apply to this object.
- Tools
Upgrade stringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - Uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - Vapp
Virtual
Machine Vapp Args - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- 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.
- Vbs
Enabled bool - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- 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 configuration file on the datastore in which the virtual machine is placed.
- Vtpm
Virtual
Machine Vtpm Args - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- Vvtd
Enabled bool - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- Wait
For intGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- Wait
For intGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- alternate
Guest StringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- annotation String
- User-provided description of the virtual machine.
- boot
Delay Integer - The number of milliseconds to wait before starting the boot sequence.
- boot
Retry IntegerDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- cdroms
List<Virtual
Machine Cdrom> - A specification for a CDROM device on this virtual machine.
- change
Version String - A unique identifier for a given version of the last configuration was applied.
- clone_
Virtual
Machine Clone - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- cpu
Limit Integer - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- cpu
Performance BooleanCounters Enabled - Enable CPU performance counters on this virtual machine.
- cpu
Reservation Integer - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- Integer
- The amount of shares to allocate to cpu for a custom share level.
- String
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- custom
Attributes Map<String,String> - A list of custom attributes to set on this resource.
- datacenter
Id String - The ID of the datacenter where the VM is to be created.
- datastore
Cluster StringId - The ID of a datastore cluster to put the virtual machine in.
- datastore
Id String - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- default
Ip StringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine is powered off, this value will be blank.
- disks
List<Virtual
Machine Disk> - A specification for a virtual disk device on this virtual machine.
- efi
Secure BooleanBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- enable
Disk BooleanUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- enable
Logging Boolean - Enable logging on this virtual machine.
- ept
Rvi StringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- 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, or configuration data for OVF images.
- extra
Config BooleanReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - firmware String
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- folder String
- The name of the folder to locate the virtual machine in.
- force
Power BooleanOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- guest
Id String - The guest ID for the operating system.
- 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 virtul machine is powered off, this list will be empty. - hardware
Version Integer - The hardware version for the virtual machine.
- host
System StringId - The ID of an optional host system to pin the virtual machine to.
- hv
Mode String - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- ide
Controller IntegerCount - ignored
Guest List<String>Ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- imported Boolean
- Indicates if the virtual machine resource has been imported, or if 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, or high.
- memory Integer
- The size of the virtual machine's memory, in MB.
- memory
Hot BooleanAdd Enabled - Allow memory to be added to this virtual machine while it is running.
- memory
Limit Integer - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- memory
Reservation Integer - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- memory
Reservation BooleanLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- Integer
- The amount of shares to allocate to memory for a custom share level.
- String
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- migrate
Wait IntegerTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- moid String
- The managed object reference ID of the created virtual machine.
- name String
- The name of this virtual machine.
- nested
Hv BooleanEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- network
Interfaces List<VirtualMachine Network Interface> - A specification for a virtual NIC on this virtual machine.
- num
Cores IntegerPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- num
Cpus Integer - The number of virtual processors to assign to this virtual machine.
- ovf
Deploy VirtualMachine Ovf Deploy - A specification for deploying a virtual machine from ovf/ova template.
- pci
Device List<String>Ids - A list of PCI passthrough devices
- power
State String - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - poweron
Timeout Integer - The amount of time, in seconds, that we will be trying to power on a VM
- reboot
Required Boolean - replace
Trigger String - Triggers replacement of resource whenever it changes.
- resource
Pool StringId - The ID of a resource pool to put the virtual machine in.
- run
Tools BooleanScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- run
Tools BooleanScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- sata
Controller IntegerCount - scsi
Bus StringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- scsi
Controller IntegerCount - scsi
Type String - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- shutdown
Wait IntegerTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- storage
Policy StringId - The ID of the storage policy to assign to the virtual machine home directory.
- swap
Placement StringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- sync
Time BooleanWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- sync
Time BooleanWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - List<String>
- A list of tag IDs to apply to this object.
- tools
Upgrade StringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - uuid String
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - vapp
Virtual
Machine Vapp - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- 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.
- vbs
Enabled Boolean - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- 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 configuration file on the datastore in which the virtual machine is placed.
- vtpm
Virtual
Machine Vtpm - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- vvtd
Enabled Boolean - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- wait
For IntegerGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- wait
For IntegerGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- alternate
Guest stringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- annotation string
- User-provided description of the virtual machine.
- boot
Delay number - The number of milliseconds to wait before starting the boot sequence.
- boot
Retry numberDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- cdroms
Virtual
Machine Cdrom[] - A specification for a CDROM device on this virtual machine.
- change
Version string - A unique identifier for a given version of the last configuration was applied.
- clone
Virtual
Machine Clone - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- cpu
Limit number - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- cpu
Performance booleanCounters Enabled - Enable CPU performance counters on this virtual machine.
- cpu
Reservation number - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- number
- The amount of shares to allocate to cpu for a custom share level.
- string
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- custom
Attributes {[key: string]: string} - A list of custom attributes to set on this resource.
- datacenter
Id string - The ID of the datacenter where the VM is to be created.
- datastore
Cluster stringId - The ID of a datastore cluster to put the virtual machine in.
- datastore
Id string - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- default
Ip stringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine is powered off, this value will be blank.
- disks
Virtual
Machine Disk[] - A specification for a virtual disk device on this virtual machine.
- efi
Secure booleanBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- enable
Disk booleanUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- enable
Logging boolean - Enable logging on this virtual machine.
- ept
Rvi stringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- 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, or configuration data for OVF images.
- extra
Config booleanReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - firmware string
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- folder string
- The name of the folder to locate the virtual machine in.
- force
Power booleanOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- guest
Id string - The guest ID for the operating system.
- 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 virtul machine is powered off, this list will be empty. - hardware
Version number - The hardware version for the virtual machine.
- host
System stringId - The ID of an optional host system to pin the virtual machine to.
- hv
Mode string - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- ide
Controller numberCount - ignored
Guest string[]Ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- imported boolean
- Indicates if the virtual machine resource has been imported, or if 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, or high.
- memory number
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- memory
Reservation number - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- memory
Reservation booleanLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- number
- The amount of shares to allocate to memory for a custom share level.
- string
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- migrate
Wait numberTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- moid string
- The managed object reference ID of the created virtual machine.
- name string
- The name of this virtual machine.
- nested
Hv booleanEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- network
Interfaces VirtualMachine Network Interface[] - A specification for a virtual NIC on this virtual machine.
- num
Cores numberPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- num
Cpus number - The number of virtual processors to assign to this virtual machine.
- ovf
Deploy VirtualMachine Ovf Deploy - A specification for deploying a virtual machine from ovf/ova template.
- pci
Device string[]Ids - A list of PCI passthrough devices
- power
State string - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - poweron
Timeout number - The amount of time, in seconds, that we will be trying to power on a VM
- reboot
Required boolean - replace
Trigger string - Triggers replacement of resource whenever it changes.
- resource
Pool stringId - The ID of a resource pool to put the virtual machine in.
- run
Tools booleanScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- run
Tools booleanScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- run
Tools booleanScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- run
Tools booleanScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- run
Tools booleanScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- sata
Controller numberCount - scsi
Bus stringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- scsi
Controller numberCount - scsi
Type string - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- shutdown
Wait numberTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- storage
Policy stringId - The ID of the storage policy to assign to the virtual machine home directory.
- swap
Placement stringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- sync
Time booleanWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- sync
Time booleanWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - string[]
- A list of tag IDs to apply to this object.
- tools
Upgrade stringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - vapp
Virtual
Machine Vapp - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- 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.
- vbs
Enabled boolean - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- 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 configuration file on the datastore in which the virtual machine is placed.
- vtpm
Virtual
Machine Vtpm - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- vvtd
Enabled boolean - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- wait
For numberGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- wait
For numberGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- alternate_
guest_ strname - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- annotation str
- User-provided description of the virtual machine.
- boot_
delay int - The number of milliseconds to wait before starting the boot sequence.
- boot_
retry_ intdelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- cdroms
Sequence[Virtual
Machine Cdrom Args] - A specification for a CDROM device on this virtual machine.
- change_
version str - A unique identifier for a given version of the last configuration was applied.
- clone
Virtual
Machine Clone Args - A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- cpu_
limit int - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- cpu_
performance_ boolcounters_ enabled - Enable CPU performance counters on this virtual machine.
- cpu_
reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- int
- The amount of shares to allocate to cpu for a custom share level.
- str
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- custom_
attributes Mapping[str, str] - A list of custom attributes to set on this resource.
- datacenter_
id str - The ID of the datacenter where the VM is to be created.
- datastore_
cluster_ strid - The ID of a datastore cluster to put the virtual machine in.
- datastore_
id str - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- default_
ip_ straddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine is powered off, this value will be blank.
- disks
Sequence[Virtual
Machine Disk Args] - A specification for a virtual disk device on this virtual machine.
- efi_
secure_ boolboot_ enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- enable_
disk_ booluuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- enable_
logging bool - Enable logging on this virtual machine.
- ept_
rvi_ strmode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- extra_
config Mapping[str, str] - Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata, or configuration data for OVF images.
- extra_
config_ boolreboot_ required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - firmware str
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- folder str
- The name of the folder to locate the virtual machine in.
- force_
power_ booloff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- guest_
id str - The guest ID for the operating system.
- guest_
ip_ Sequence[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 virtul machine is powered off, this list will be empty. - hardware_
version int - The hardware version for the virtual machine.
- host_
system_ strid - The ID of an optional host system to pin the virtual machine to.
- hv_
mode str - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- ide_
controller_ intcount - ignored_
guest_ Sequence[str]ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- imported bool
- Indicates if the virtual machine resource has been imported, or if 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, or high.
- memory int
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- memory_
reservation int - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- memory_
reservation_ boollocked_ to_ max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- int
- The amount of shares to allocate to memory for a custom share level.
- str
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- migrate_
wait_ inttimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- moid str
- The managed object reference ID of the created virtual machine.
- name str
- The name of this virtual machine.
- nested_
hv_ boolenabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- network_
interfaces Sequence[VirtualMachine Network Interface Args] - A specification for a virtual NIC on this virtual machine.
- num_
cores_ intper_ socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- num_
cpus int - The number of virtual processors to assign to this virtual machine.
- ovf_
deploy VirtualMachine Ovf Deploy Args - A specification for deploying a virtual machine from ovf/ova template.
- pci_
device_ Sequence[str]ids - A list of PCI passthrough devices
- power_
state str - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - poweron_
timeout int - The amount of time, in seconds, that we will be trying to power on a VM
- reboot_
required bool - replace_
trigger str - Triggers replacement of resource whenever it changes.
- resource_
pool_ strid - The ID of a resource pool to put the virtual machine in.
- run_
tools_ boolscripts_ after_ power_ on - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- run_
tools_ boolscripts_ after_ resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- run_
tools_ boolscripts_ before_ guest_ reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- run_
tools_ boolscripts_ before_ guest_ shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- run_
tools_ boolscripts_ before_ guest_ standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- sata_
controller_ intcount - scsi_
bus_ strsharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- scsi_
controller_ intcount - scsi_
type str - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- shutdown_
wait_ inttimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- storage_
policy_ strid - The ID of the storage policy to assign to the virtual machine home directory.
- swap_
placement_ strpolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- sync_
time_ boolwith_ host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- sync_
time_ boolwith_ host_ periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - Sequence[str]
- A list of tag IDs to apply to this object.
- tools_
upgrade_ strpolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - uuid str
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - vapp
Virtual
Machine Vapp Args - vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- vapp_
transports Sequence[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.
- vbs_
enabled bool - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- 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 configuration file on the datastore in which the virtual machine is placed.
- vtpm
Virtual
Machine Vtpm Args - A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- vvtd_
enabled bool - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- wait_
for_ intguest_ ip_ timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- wait_
for_ intguest_ net_ timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- alternate
Guest StringName - The guest name for the operating system when guest_id is otherGuest or otherGuest64.
- annotation String
- User-provided description of the virtual machine.
- boot
Delay Number - The number of milliseconds to wait before starting the boot sequence.
- boot
Retry NumberDelay - The number of milliseconds to wait before retrying the boot sequence. This only valid if boot_retry_enabled is true.
- 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.
- cdroms List<Property Map>
- A specification for a CDROM device on this virtual machine.
- change
Version String - A unique identifier for a given version of the last configuration was applied.
- clone Property Map
- A specification for cloning a virtual machine from template.
- 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 added to this virtual machine while it is running.
- cpu
Limit Number - The maximum amount of memory (in MB) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- cpu
Performance BooleanCounters Enabled - Enable CPU performance counters on this virtual machine.
- cpu
Reservation Number - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- Number
- The amount of shares to allocate to cpu for a custom share level.
- String
- The allocation level for cpu resources. Can be one of high, low, normal, or custom.
- custom
Attributes Map<String> - A list of custom attributes to set on this resource.
- datacenter
Id String - The ID of the datacenter where the VM is to be created.
- datastore
Cluster StringId - The ID of a datastore cluster to put the virtual machine in.
- datastore
Id String - The ID of the virtual machine's datastore. The virtual machine configuration is placed here, along with any virtual disks that are created without datastores.
- default
Ip StringAddress - The IP address selected by the provider to be used with any provisioners configured on this resource. When 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 exists. If VMware Tools is not running on the virtual machine, or if the virtual machine is powered off, this value will be blank.
- disks List<Property Map>
- A specification for a virtual disk device on this virtual machine.
- efi
Secure BooleanBoot Enabled - When the boot type set in firmware is efi, this enables EFI secure boot.
- enable
Disk BooleanUuid - Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest.
- enable
Logging Boolean - Enable logging on this virtual machine.
- ept
Rvi StringMode - The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.
- extra
Config Map<String> - Extra configuration data for this virtual machine. Can be used to supply advanced parameters not normally in configuration, such as instance metadata, or configuration data for OVF images.
- extra
Config BooleanReboot Required - Allow the virtual machine to be rebooted when a change to
extra_config
occurs. - firmware String
- The firmware interface to use on the virtual machine. Can be one of bios or efi.
- folder String
- The name of the folder to locate the virtual machine in.
- force
Power BooleanOff - Set to true to force power-off a virtual machine if a graceful guest shutdown failed for a necessary operation.
- guest
Id String - The guest ID for the operating system.
- 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 virtul machine is powered off, this list will be empty. - hardware
Version Number - The hardware version for the virtual machine.
- host
System StringId - The ID of an optional host system to pin the virtual machine to.
- hv
Mode String - The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.
- ide
Controller NumberCount - ignored
Guest List<String>Ips - List of IP addresses and CIDR networks to ignore while waiting for an IP
- imported Boolean
- Indicates if the virtual machine resource has been imported, or if 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, or high.
- memory Number
- The size of the virtual machine's memory, in MB.
- 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) or CPU (in MHz) that this virtual machine can consume, regardless of available resources.
- memory
Reservation Number - The amount of memory (in MB) or CPU (in MHz) that this virtual machine is guaranteed.
- memory
Reservation BooleanLocked To Max - If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
- Number
- The amount of shares to allocate to memory for a custom share level.
- String
- The allocation level for memory resources. Can be one of high, low, normal, or custom.
- migrate
Wait NumberTimeout - The amount of time, in minutes, to wait for a vMotion operation to complete before failing.
- moid String
- The managed object reference ID of the created virtual machine.
- name String
- The name of this virtual machine.
- nested
Hv BooleanEnabled - Enable nested hardware virtualization on this virtual machine, facilitating nested virtualization in the guest.
- network
Interfaces List<Property Map> - A specification for a virtual NIC on this virtual machine.
- num
Cores NumberPer Socket - The number of cores to distribute amongst the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value.
- num
Cpus Number - The number of virtual processors to assign to this virtual machine.
- ovf
Deploy Property Map - A specification for deploying a virtual machine from ovf/ova template.
- pci
Device List<String>Ids - A list of PCI passthrough devices
- power
State String - A computed value for the current power state of the virtual machine. One of
on
,off
, orsuspended
. - poweron
Timeout Number - The amount of time, in seconds, that we will be trying to power on a VM
- reboot
Required Boolean - replace
Trigger String - Triggers replacement of resource whenever it changes.
- resource
Pool StringId - The ID of a resource pool to put the virtual machine in.
- run
Tools BooleanScripts After Power On - Enable the run of scripts after virtual machine power-on when VMware Tools is installed.
- run
Tools BooleanScripts After Resume - Enable the run of scripts after virtual machine resume when when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Reboot - Enable the run of scripts before guest operating system reboot when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Shutdown - Enable the run of scripts before guest operating system shutdown when VMware Tools is installed.
- run
Tools BooleanScripts Before Guest Standby - Enable the run of scripts before guest operating system standby when VMware Tools is installed.
- sata
Controller NumberCount - scsi
Bus StringSharing - Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing.
- scsi
Controller NumberCount - scsi
Type String - The type of SCSI bus this virtual machine will have. Can be one of lsilogic, lsilogic-sas or pvscsi.
- shutdown
Wait NumberTimeout - The amount of time, in minutes, to wait for shutdown when making necessary updates to the virtual machine.
- storage
Policy StringId - The ID of the storage policy to assign to the virtual machine home directory.
- swap
Placement StringPolicy - The swap file placement policy for this virtual machine. Can be one of inherit, hostLocal, or vmDirectory.
- sync
Time BooleanWith Host - Enable guest clock synchronization with the host. On vSphere 7.0 U1 and above, with only this setting the clock is synchronized on startup and resume. Requires VMware Tools to be installed.
- sync
Time BooleanWith Host Periodically - Enable periodic clock synchronization with the host. Supported only on vSphere 7.0 U1 and above. On prior versions
setting
sync_time_with_host
is enough for periodic synchronization. Requires VMware Tools to be installed. - List<String>
- A list of tag IDs to apply to this object.
- tools
Upgrade StringPolicy - Set the upgrade policy for VMware Tools. Can be one of
manual
orupgradeAtPowerCycle
. - uuid String
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - vapp Property Map
- vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
- 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.
- vbs
Enabled Boolean - Flag to specify if Virtualization-based security is enabled for this virtual machine.
- 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 configuration file on the datastore in which the virtual machine is placed.
- vtpm Property Map
- A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
- vvtd
Enabled Boolean - Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD I/O Virtualization (AMD-Vi or IOMMU), is enabled.
- wait
For NumberGuest Ip Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
- 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.
- wait
For NumberGuest Net Timeout - The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1 disables the waiter.
Supporting Types
VirtualMachineCdrom, VirtualMachineCdromArgs
- Client
Device bool - Indicates whether the device should be mapped to a remote client device
- Datastore
Id string - The datastore ID the ISO is located on.
- Device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- Key int
- The ID of the device within the virtual machine.
- Path string
- The path to the ISO file on the datastore.
- Client
Device bool - Indicates whether the device should be mapped to a remote client device
- Datastore
Id string - The datastore ID the ISO is located on.
- Device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- Key int
- The ID of the device within the virtual machine.
- Path string
- The path to the ISO file on the datastore.
- client
Device Boolean - Indicates whether the device should be mapped to a remote client device
- datastore
Id String - The datastore ID the ISO is located on.
- device
Address String - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- key Integer
- The ID of the device within the virtual machine.
- path String
- The path to the ISO file on the datastore.
- client
Device boolean - Indicates whether the device should be mapped to a remote client device
- datastore
Id string - The datastore ID the ISO is located on.
- device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- key number
- The ID of the device within the virtual machine.
- path string
- The path to the ISO file on the datastore.
- client_
device bool - Indicates whether the device should be mapped to a remote client device
- datastore_
id str - The datastore ID the ISO is located on.
- device_
address str - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- key int
- The ID of the device within the virtual machine.
- path str
- The path to the ISO file on the datastore.
- client
Device Boolean - Indicates whether the device should be mapped to a remote client device
- datastore
Id String - The datastore ID the ISO is located on.
- device
Address String - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- key Number
- The ID of the device within the virtual machine.
- path String
- The path to the ISO file on the datastore.
VirtualMachineClone, VirtualMachineCloneArgs
- Template
Uuid string - The UUID of the source virtual machine or template.
- Customization
Spec Pulumi.VSphere. Inputs. Virtual Machine Clone Customization Spec - The customization specification for the virtual machine post-clone.
- Customize
Pulumi.
VSphere. Inputs. Virtual Machine Clone Customize - The customization specification for the virtual machine post-clone.
- Linked
Clone bool - Whether or not to create a linked clone when cloning. When this option is used, the source VM must have a single snapshot associated with it.
- Ovf
Network Dictionary<string, string>Map - Mapping of ovf networks to the networks to use in vSphere.
- Ovf
Storage Dictionary<string, string>Map - Mapping of ovf storage to the datastores to use in vSphere.
- Timeout int
- The timeout, in minutes, to wait for the virtual machine clone to complete.
- Template
Uuid string - The UUID of the source virtual machine or template.
- Customization
Spec VirtualMachine Clone Customization Spec - The customization specification for the virtual machine post-clone.
- Customize
Virtual
Machine Clone Customize - The customization specification for the virtual machine post-clone.
- Linked
Clone bool - Whether or not to create a linked clone when cloning. When this option is used, the source VM must have a single snapshot associated with it.
- Ovf
Network map[string]stringMap - Mapping of ovf networks to the networks to use in vSphere.
- Ovf
Storage map[string]stringMap - Mapping of ovf storage to the datastores to use in vSphere.
- Timeout int
- The timeout, in minutes, to wait for the virtual machine clone to complete.
- template
Uuid String - The UUID of the source virtual machine or template.
- customization
Spec VirtualMachine Clone Customization Spec - The customization specification for the virtual machine post-clone.
- customize
Virtual
Machine Clone Customize - The customization specification for the virtual machine post-clone.
- linked
Clone Boolean - Whether or not to create a linked clone when cloning. When this option is used, the source VM must have a single snapshot associated with it.
- ovf
Network Map<String,String>Map - Mapping of ovf networks to the networks to use in vSphere.
- ovf
Storage Map<String,String>Map - Mapping of ovf storage to the datastores to use in vSphere.
- timeout Integer
- The timeout, in minutes, to wait for the virtual machine clone to complete.
- template
Uuid string - The UUID of the source virtual machine or template.
- customization
Spec VirtualMachine Clone Customization Spec - The customization specification for the virtual machine post-clone.
- customize
Virtual
Machine Clone Customize - The customization specification for the virtual machine post-clone.
- linked
Clone boolean - Whether or not to create a linked clone when cloning. When this option is used, the source VM must have a single snapshot associated with it.
- ovf
Network {[key: string]: string}Map - Mapping of ovf networks to the networks to use in vSphere.
- ovf
Storage {[key: string]: string}Map - Mapping of ovf storage to the datastores to use in vSphere.
- timeout number
- The timeout, in minutes, to wait for the virtual machine clone to complete.
- template_
uuid str - The UUID of the source virtual machine or template.
- customization_
spec VirtualMachine Clone Customization Spec - The customization specification for the virtual machine post-clone.
- customize
Virtual
Machine Clone Customize - The customization specification for the virtual machine post-clone.
- linked_
clone bool - Whether or not to create a linked clone when cloning. When this option is used, the source VM must have a single snapshot associated with it.
- ovf_
network_ Mapping[str, str]map - Mapping of ovf networks to the networks to use in vSphere.
- ovf_
storage_ Mapping[str, str]map - Mapping of ovf storage to the datastores to use in vSphere.
- timeout int
- The timeout, in minutes, to wait for the virtual machine clone to complete.
- template
Uuid String - The UUID of the source virtual machine or template.
- customization
Spec Property Map - The customization specification for the virtual machine post-clone.
- customize Property Map
- The customization specification for the virtual machine post-clone.
- linked
Clone Boolean - Whether or not to create a linked clone when cloning. When this option is used, the source VM must have a single snapshot associated with it.
- ovf
Network Map<String>Map - Mapping of ovf networks to the networks to use in vSphere.
- ovf
Storage Map<String>Map - Mapping of ovf storage to the datastores to use in vSphere.
- timeout Number
- The timeout, in minutes, to wait for the virtual machine clone to complete.
VirtualMachineCloneCustomizationSpec, VirtualMachineCloneCustomizationSpecArgs
VirtualMachineCloneCustomize, VirtualMachineCloneCustomizeArgs
- Dns
Server List<string>Lists - The list of DNS servers for a virtual network adapter with a static IP address.
- Dns
Suffix List<string>Lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- Ipv4Gateway string
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- Ipv6Gateway string
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- Linux
Options Pulumi.VSphere. Inputs. Virtual Machine Clone Customize Linux Options - A list of configuration options specific to Linux virtual machines.
- Network
Interfaces List<Pulumi.VSphere. Inputs. Virtual Machine Clone Customize Network Interface> - A specification of network interface configuration options.
- Timeout int
- The amount of time, in minutes, to wait for guest OS customization to complete before returning with an error. Setting this value to 0 or a negative value skips the waiter. Default: 10.
- Windows
Options Pulumi.VSphere. Inputs. Virtual Machine Clone Customize Windows Options - A list of configuration options specific to Windows virtual machines.
- Windows
Sysprep stringText - Use this option to specify a windows sysprep file directly.
- Dns
Server []stringLists - The list of DNS servers for a virtual network adapter with a static IP address.
- Dns
Suffix []stringLists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- Ipv4Gateway string
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- Ipv6Gateway string
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- Linux
Options VirtualMachine Clone Customize Linux Options - A list of configuration options specific to Linux virtual machines.
- Network
Interfaces []VirtualMachine Clone Customize Network Interface - A specification of network interface configuration options.
- Timeout int
- The amount of time, in minutes, to wait for guest OS customization to complete before returning with an error. Setting this value to 0 or a negative value skips the waiter. Default: 10.
- Windows
Options VirtualMachine Clone Customize Windows Options - A list of configuration options specific to Windows virtual machines.
- Windows
Sysprep stringText - Use this option to specify a windows sysprep file directly.
- dns
Server List<String>Lists - The list of DNS servers for a virtual network adapter with a static IP address.
- dns
Suffix List<String>Lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- ipv4Gateway String
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- ipv6Gateway String
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- linux
Options VirtualMachine Clone Customize Linux Options - A list of configuration options specific to Linux virtual machines.
- network
Interfaces List<VirtualMachine Clone Customize Network Interface> - A specification of network interface configuration options.
- timeout Integer
- The amount of time, in minutes, to wait for guest OS customization to complete before returning with an error. Setting this value to 0 or a negative value skips the waiter. Default: 10.
- windows
Options VirtualMachine Clone Customize Windows Options - A list of configuration options specific to Windows virtual machines.
- windows
Sysprep StringText - Use this option to specify a windows sysprep file directly.
- dns
Server string[]Lists - The list of DNS servers for a virtual network adapter with a static IP address.
- dns
Suffix string[]Lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- ipv4Gateway string
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- ipv6Gateway string
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- linux
Options VirtualMachine Clone Customize Linux Options - A list of configuration options specific to Linux virtual machines.
- network
Interfaces VirtualMachine Clone Customize Network Interface[] - A specification of network interface configuration options.
- timeout number
- The amount of time, in minutes, to wait for guest OS customization to complete before returning with an error. Setting this value to 0 or a negative value skips the waiter. Default: 10.
- windows
Options VirtualMachine Clone Customize Windows Options - A list of configuration options specific to Windows virtual machines.
- windows
Sysprep stringText - Use this option to specify a windows sysprep file directly.
- dns_
server_ Sequence[str]lists - The list of DNS servers for a virtual network adapter with a static IP address.
- dns_
suffix_ Sequence[str]lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- ipv4_
gateway str - The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- ipv6_
gateway str - The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- linux_
options VirtualMachine Clone Customize Linux Options - A list of configuration options specific to Linux virtual machines.
- network_
interfaces Sequence[VirtualMachine Clone Customize Network Interface] - A specification of network interface configuration options.
- timeout int
- The amount of time, in minutes, to wait for guest OS customization to complete before returning with an error. Setting this value to 0 or a negative value skips the waiter. Default: 10.
- windows_
options VirtualMachine Clone Customize Windows Options - A list of configuration options specific to Windows virtual machines.
- windows_
sysprep_ strtext - Use this option to specify a windows sysprep file directly.
- dns
Server List<String>Lists - The list of DNS servers for a virtual network adapter with a static IP address.
- dns
Suffix List<String>Lists - A list of DNS search domains to add to the DNS configuration on the virtual machine.
- ipv4Gateway String
- The IPv4 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- ipv6Gateway String
- The IPv6 default gateway when using network_interface customization on the virtual machine. This address must be local to a static IPv4 address configured in an interface sub-resource.
- linux
Options Property Map - A list of configuration options specific to Linux virtual machines.
- network
Interfaces List<Property Map> - A specification of network interface configuration options.
- timeout Number
- The amount of time, in minutes, to wait for guest OS customization to complete before returning with an error. Setting this value to 0 or a negative value skips the waiter. Default: 10.
- windows
Options Property Map - A list of configuration options specific to Windows virtual machines.
- windows
Sysprep StringText - Use this option to specify a windows sysprep file directly.
VirtualMachineCloneCustomizeLinuxOptions, VirtualMachineCloneCustomizeLinuxOptionsArgs
- Domain string
- The domain name for this virtual machine.
- Host
Name string - The hostname for this virtual machine.
- Hw
Clock boolUtc - Specifies whether or not the hardware clock should be in UTC or not.
- Script
Text string - The customization script to run before and or after guest customization
- Time
Zone string - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- Domain string
- The domain name for this virtual machine.
- Host
Name string - The hostname for this virtual machine.
- Hw
Clock boolUtc - Specifies whether or not the hardware clock should be in UTC or not.
- Script
Text string - The customization script to run before and or after guest customization
- Time
Zone string - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- domain String
- The domain name for this virtual machine.
- host
Name String - The hostname for this virtual machine.
- hw
Clock BooleanUtc - Specifies whether or not the hardware clock should be in UTC or not.
- script
Text String - The customization script to run before and or after guest customization
- time
Zone String - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- domain string
- The domain name for this virtual machine.
- host
Name string - The hostname for this virtual machine.
- hw
Clock booleanUtc - Specifies whether or not the hardware clock should be in UTC or not.
- script
Text string - The customization script to run before and or after guest customization
- time
Zone string - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- domain str
- The domain name for this virtual machine.
- host_
name str - The hostname for this virtual machine.
- hw_
clock_ boolutc - Specifies whether or not the hardware clock should be in UTC or not.
- script_
text str - The customization script to run before and or after guest customization
- time_
zone str - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
- domain String
- The domain name for this virtual machine.
- host
Name String - The hostname for this virtual machine.
- hw
Clock BooleanUtc - Specifies whether or not the hardware clock should be in UTC or not.
- script
Text String - The customization script to run before and or after guest customization
- time
Zone String - Customize the time zone on the VM. This should be a time zone-style entry, like America/Los_Angeles.
VirtualMachineCloneCustomizeNetworkInterface, VirtualMachineCloneCustomizeNetworkInterfaceArgs
- Dns
Domain string - A DNS search domain to add to the DNS configuration on the virtual machine.
- Dns
Server List<string>Lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- Ipv4Address string
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- Ipv4Netmask int
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- Ipv6Address string
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- Ipv6Netmask int
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- Dns
Domain string - A DNS search domain to add to the DNS configuration on the virtual machine.
- Dns
Server []stringLists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- Ipv4Address string
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- Ipv4Netmask int
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- Ipv6Address string
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- Ipv6Netmask int
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- dns
Domain String - A DNS search domain to add to the DNS configuration on the virtual machine.
- dns
Server List<String>Lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- ipv4Address String
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- ipv4Netmask Integer
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- ipv6Address String
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- ipv6Netmask Integer
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- dns
Domain string - A DNS search domain to add to the DNS configuration on the virtual machine.
- dns
Server string[]Lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- ipv4Address string
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- ipv4Netmask number
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- ipv6Address string
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- ipv6Netmask number
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- dns_
domain str - A DNS search domain to add to the DNS configuration on the virtual machine.
- dns_
server_ Sequence[str]lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- ipv4_
address str - The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- ipv4_
netmask int - The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- ipv6_
address str - The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- ipv6_
netmask int - The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
- dns
Domain String - A DNS search domain to add to the DNS configuration on the virtual machine.
- dns
Server List<String>Lists - Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
- ipv4Address String
- The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
- ipv4Netmask Number
- The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
- ipv6Address String
- The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
- ipv6Netmask Number
- The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
VirtualMachineCloneCustomizeWindowsOptions, VirtualMachineCloneCustomizeWindowsOptionsArgs
- Computer
Name string - The host name for this virtual machine.
- Admin
Password string - The new administrator password for this virtual machine.
- Auto
Logon bool - Specifies whether or not the VM automatically logs on as Administrator.
- Auto
Logon intCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- Domain
Admin stringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- Domain
Admin stringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- Domain
Ou string - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- Full
Name string - The full name of the user of this virtual machine.
- Join
Domain string - The domain that the virtual machine should join.
- Organization
Name string - The organization name this virtual machine is being installed for.
- Product
Key string - The product key for this virtual machine.
- Run
Once List<string>Command Lists - A list of commands to run at first user logon, after guest customization.
- Time
Zone int - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- Workgroup string
- The workgroup for this virtual machine if not joining a domain.
- Computer
Name string - The host name for this virtual machine.
- Admin
Password string - The new administrator password for this virtual machine.
- Auto
Logon bool - Specifies whether or not the VM automatically logs on as Administrator.
- Auto
Logon intCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- Domain
Admin stringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- Domain
Admin stringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- Domain
Ou string - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- Full
Name string - The full name of the user of this virtual machine.
- Join
Domain string - The domain that the virtual machine should join.
- Organization
Name string - The organization name this virtual machine is being installed for.
- Product
Key string - The product key for this virtual machine.
- Run
Once []stringCommand Lists - A list of commands to run at first user logon, after guest customization.
- Time
Zone int - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- Workgroup string
- The workgroup for this virtual machine if not joining a domain.
- computer
Name String - The host name for this virtual machine.
- admin
Password String - The new administrator password for this virtual machine.
- auto
Logon Boolean - Specifies whether or not the VM automatically logs on as Administrator.
- auto
Logon IntegerCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- domain
Admin StringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- domain
Admin StringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- domain
Ou String - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- full
Name String - The full name of the user of this virtual machine.
- join
Domain String - The domain that the virtual machine should join.
- organization
Name String - The organization name this virtual machine is being installed for.
- product
Key String - The product key for this virtual machine.
- run
Once List<String>Command Lists - A list of commands to run at first user logon, after guest customization.
- time
Zone Integer - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- workgroup String
- The workgroup for this virtual machine if not joining a domain.
- computer
Name string - The host name for this virtual machine.
- admin
Password string - The new administrator password for this virtual machine.
- auto
Logon boolean - Specifies whether or not the VM automatically logs on as Administrator.
- auto
Logon numberCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- domain
Admin stringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- domain
Admin stringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- domain
Ou string - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- full
Name string - The full name of the user of this virtual machine.
- join
Domain string - The domain that the virtual machine should join.
- organization
Name string - The organization name this virtual machine is being installed for.
- product
Key string - The product key for this virtual machine.
- run
Once string[]Command Lists - A list of commands to run at first user logon, after guest customization.
- time
Zone number - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- workgroup string
- The workgroup for this virtual machine if not joining a domain.
- computer_
name str - The host name for this virtual machine.
- admin_
password str - The new administrator password for this virtual machine.
- auto_
logon bool - Specifies whether or not the VM automatically logs on as Administrator.
- auto_
logon_ intcount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- domain_
admin_ strpassword - The password of the domain administrator used to join this virtual machine to the domain.
- domain_
admin_ struser - The user account of the domain administrator used to join this virtual machine to the domain.
- domain_
ou str - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- full_
name str - The full name of the user of this virtual machine.
- join_
domain str - The domain that the virtual machine should join.
- organization_
name str - The organization name this virtual machine is being installed for.
- product_
key str - The product key for this virtual machine.
- run_
once_ Sequence[str]command_ lists - A list of commands to run at first user logon, after guest customization.
- time_
zone int - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- workgroup str
- The workgroup for this virtual machine if not joining a domain.
- computer
Name String - The host name for this virtual machine.
- admin
Password String - The new administrator password for this virtual machine.
- auto
Logon Boolean - Specifies whether or not the VM automatically logs on as Administrator.
- auto
Logon NumberCount - Specifies how many times the VM should auto-logon the Administrator account when auto_logon is true.
- domain
Admin StringPassword - The password of the domain administrator used to join this virtual machine to the domain.
- domain
Admin StringUser - The user account of the domain administrator used to join this virtual machine to the domain.
- domain
Ou String - The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
- full
Name String - The full name of the user of this virtual machine.
- join
Domain String - The domain that the virtual machine should join.
- organization
Name String - The organization name this virtual machine is being installed for.
- product
Key String - The product key for this virtual machine.
- run
Once List<String>Command Lists - A list of commands to run at first user logon, after guest customization.
- time
Zone Number - The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
- workgroup String
- The workgroup for this virtual machine if not joining a domain.
VirtualMachineDisk, VirtualMachineDiskArgs
- Label string
- A unique label for this disk.
- Attach bool
- If this is true, the disk is attached instead of created. Implies keep_on_remove.
- Controller
Type string - The type of controller the disk should be connected to. Must be 'scsi', 'sata', or 'ide'.
- Datastore
Id string - The datastore ID for this virtual disk, if different than the virtual machine.
- Device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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, or undoable.
- Disk
Sharing string - The sharing mode of this virtual disk. Can be one of sharingMultiWriter or sharingNone.
- Eagerly
Scrub bool - The virtual disk file zeroing policy when thin_provision is not true. The default is false, which lazily-zeros the disk, speeding up thick-provisioned disk creation time.
- Io
Limit int - The upper limit of IOPS that this disk can use.
- Io
Reservation int - The I/O guarantee that this disk has, in IOPS.
- 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, or custom.
- Keep
On boolRemove - Set to true to keep the underlying VMDK file when removing this virtual disk from configuration.
- Key int
- The ID of the device within the virtual machine.
- Path string
- The full path of the virtual disk. This can only be provided if attach is set to true, otherwise it is a read-only value.
- Size int
- The size of the disk, in GB.
- Storage
Policy stringId - The ID of the storage policy to assign to the virtual disk in VM.
- Thin
Provisioned bool - If true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis.
- Unit
Number int - The unique device number for this disk. This number determines where on the SCSI bus this device will be attached.
- Uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - Write
Through bool - If true, writes for this disk are sent directly to the filesystem immediately instead of being buffered.
- Label string
- A unique label for this disk.
- Attach bool
- If this is true, the disk is attached instead of created. Implies keep_on_remove.
- Controller
Type string - The type of controller the disk should be connected to. Must be 'scsi', 'sata', or 'ide'.
- Datastore
Id string - The datastore ID for this virtual disk, if different than the virtual machine.
- Device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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, or undoable.
- Disk
Sharing string - The sharing mode of this virtual disk. Can be one of sharingMultiWriter or sharingNone.
- Eagerly
Scrub bool - The virtual disk file zeroing policy when thin_provision is not true. The default is false, which lazily-zeros the disk, speeding up thick-provisioned disk creation time.
- Io
Limit int - The upper limit of IOPS that this disk can use.
- Io
Reservation int - The I/O guarantee that this disk has, in IOPS.
- 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, or custom.
- Keep
On boolRemove - Set to true to keep the underlying VMDK file when removing this virtual disk from configuration.
- Key int
- The ID of the device within the virtual machine.
- Path string
- The full path of the virtual disk. This can only be provided if attach is set to true, otherwise it is a read-only value.
- Size int
- The size of the disk, in GB.
- Storage
Policy stringId - The ID of the storage policy to assign to the virtual disk in VM.
- Thin
Provisioned bool - If true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis.
- Unit
Number int - The unique device number for this disk. This number determines where on the SCSI bus this device will be attached.
- Uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - Write
Through bool - If true, writes for this disk are sent directly to the filesystem immediately instead of being buffered.
- label String
- A unique label for this disk.
- attach Boolean
- If this is true, the disk is attached instead of created. Implies keep_on_remove.
- controller
Type String - The type of controller the disk should be connected to. Must be 'scsi', 'sata', or 'ide'.
- datastore
Id String - The datastore ID for this virtual disk, if different than the virtual machine.
- device
Address String - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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, or undoable.
- disk
Sharing String - The sharing mode of this virtual disk. Can be one of sharingMultiWriter or sharingNone.
- eagerly
Scrub Boolean - The virtual disk file zeroing policy when thin_provision is not true. The default is false, which lazily-zeros the disk, speeding up thick-provisioned disk creation time.
- io
Limit Integer - The upper limit of IOPS that this disk can use.
- io
Reservation Integer - The I/O guarantee that this disk has, in IOPS.
- Integer
- 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, or custom.
- keep
On BooleanRemove - Set to true to keep the underlying VMDK file when removing this virtual disk from configuration.
- key Integer
- The ID of the device within the virtual machine.
- path String
- The full path of the virtual disk. This can only be provided if attach is set to true, otherwise it is a read-only value.
- size Integer
- The size of the disk, in GB.
- storage
Policy StringId - The ID of the storage policy to assign to the virtual disk in VM.
- thin
Provisioned Boolean - If true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis.
- unit
Number Integer - The unique device number for this disk. This number determines where on the SCSI bus this device will be attached.
- uuid String
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - write
Through Boolean - If true, writes for this disk are sent directly to the filesystem immediately instead of being buffered.
- label string
- A unique label for this disk.
- attach boolean
- If this is true, the disk is attached instead of created. Implies keep_on_remove.
- controller
Type string - The type of controller the disk should be connected to. Must be 'scsi', 'sata', or 'ide'.
- datastore
Id string - The datastore ID for this virtual disk, if different than the virtual machine.
- device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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, or undoable.
- disk
Sharing string - The sharing mode of this virtual disk. Can be one of sharingMultiWriter or sharingNone.
- eagerly
Scrub boolean - The virtual disk file zeroing policy when thin_provision is not true. The default is false, which lazily-zeros the disk, speeding up thick-provisioned disk creation time.
- io
Limit number - The upper limit of IOPS that this disk can use.
- io
Reservation number - The I/O guarantee that this disk has, in IOPS.
- 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, or custom.
- keep
On booleanRemove - Set to true to keep the underlying VMDK file when removing this virtual disk from configuration.
- key number
- The ID of the device within the virtual machine.
- path string
- The full path of the virtual disk. This can only be provided if attach is set to true, otherwise it is a read-only value.
- size number
- The size of the disk, in GB.
- storage
Policy stringId - The ID of the storage policy to assign to the virtual disk in VM.
- thin
Provisioned boolean - If true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis.
- unit
Number number - The unique device number for this disk. This number determines where on the SCSI bus this device will be attached.
- uuid string
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - write
Through boolean - If true, writes for this disk are sent directly to the filesystem immediately instead of being buffered.
- label str
- A unique label for this disk.
- attach bool
- If this is true, the disk is attached instead of created. Implies keep_on_remove.
- controller_
type str - The type of controller the disk should be connected to. Must be 'scsi', 'sata', or 'ide'.
- datastore_
id str - The datastore ID for this virtual disk, if different than the virtual machine.
- device_
address str - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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, or undoable.
- disk_
sharing str - The sharing mode of this virtual disk. Can be one of sharingMultiWriter or sharingNone.
- eagerly_
scrub bool - The virtual disk file zeroing policy when thin_provision is not true. The default is false, which lazily-zeros the disk, speeding up thick-provisioned disk creation time.
- io_
limit int - The upper limit of IOPS that this disk can use.
- io_
reservation int - The I/O guarantee that this disk has, in IOPS.
- int
- 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, or custom.
- keep_
on_ boolremove - Set to true to keep the underlying VMDK file when removing this virtual disk from configuration.
- key int
- The ID of the device within the virtual machine.
- path str
- The full path of the virtual disk. This can only be provided if attach is set to true, otherwise it is a read-only value.
- size int
- The size of the disk, in GB.
- storage_
policy_ strid - The ID of the storage policy to assign to the virtual disk in VM.
- thin_
provisioned bool - If true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis.
- unit_
number int - The unique device number for this disk. This number determines where on the SCSI bus this device will be attached.
- uuid str
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - write_
through bool - If true, writes for this disk are sent directly to the filesystem immediately instead of being buffered.
- label String
- A unique label for this disk.
- attach Boolean
- If this is true, the disk is attached instead of created. Implies keep_on_remove.
- controller
Type String - The type of controller the disk should be connected to. Must be 'scsi', 'sata', or 'ide'.
- datastore
Id String - The datastore ID for this virtual disk, if different than the virtual machine.
- device
Address String - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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, or undoable.
- disk
Sharing String - The sharing mode of this virtual disk. Can be one of sharingMultiWriter or sharingNone.
- eagerly
Scrub Boolean - The virtual disk file zeroing policy when thin_provision is not true. The default is false, which lazily-zeros the disk, speeding up thick-provisioned disk creation time.
- io
Limit Number - The upper limit of IOPS that this disk can use.
- io
Reservation Number - The I/O guarantee that this disk has, in IOPS.
- 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, or custom.
- keep
On BooleanRemove - Set to true to keep the underlying VMDK file when removing this virtual disk from configuration.
- key Number
- The ID of the device within the virtual machine.
- path String
- The full path of the virtual disk. This can only be provided if attach is set to true, otherwise it is a read-only value.
- size Number
- The size of the disk, in GB.
- storage
Policy StringId - The ID of the storage policy to assign to the virtual disk in VM.
- thin
Provisioned Boolean - If true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis.
- unit
Number Number - The unique device number for this disk. This number determines where on the SCSI bus this device will be attached.
- uuid String
- The UUID of the virtual machine. Also exposed as the
id
of the resource. - write
Through Boolean - If true, writes for this disk are sent directly to the filesystem immediately instead of being buffered.
VirtualMachineNetworkInterface, VirtualMachineNetworkInterfaceArgs
- Network
Id string - The ID of the network to connect this network interface to.
- Adapter
Type string - The controller type. Can be one of e1000, e1000e, sriov, vmxnet3, or vrdma.
- Bandwidth
Limit int - The upper bandwidth limit of this network interface, in Mbits/sec.
- Bandwidth
Reservation int - The bandwidth reservation of this network interface, in Mbits/sec.
- 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, or custom.
- Device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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_mac is true.
- Ovf
Mapping string - Mapping of network interface to OVF network.
- Physical
Function string - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- Use
Static boolMac - If true, the mac_address field is treated as a static MAC address and set accordingly.
- Network
Id string - The ID of the network to connect this network interface to.
- Adapter
Type string - The controller type. Can be one of e1000, e1000e, sriov, vmxnet3, or vrdma.
- Bandwidth
Limit int - The upper bandwidth limit of this network interface, in Mbits/sec.
- Bandwidth
Reservation int - The bandwidth reservation of this network interface, in Mbits/sec.
- 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, or custom.
- Device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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_mac is true.
- Ovf
Mapping string - Mapping of network interface to OVF network.
- Physical
Function string - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- Use
Static boolMac - If true, the mac_address field is treated as a static MAC address and set accordingly.
- network
Id String - The ID of the network to connect this network interface to.
- adapter
Type String - The controller type. Can be one of e1000, e1000e, sriov, vmxnet3, or vrdma.
- bandwidth
Limit Integer - The upper bandwidth limit of this network interface, in Mbits/sec.
- bandwidth
Reservation Integer - The bandwidth reservation of this network interface, in Mbits/sec.
- Integer
- 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, or custom.
- device
Address String - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- key Integer
- 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_mac is true.
- ovf
Mapping String - Mapping of network interface to OVF network.
- physical
Function String - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- use
Static BooleanMac - If true, the mac_address field is treated as a static MAC address and set accordingly.
- network
Id string - The ID of the network to connect this network interface to.
- adapter
Type string - The controller type. Can be one of e1000, e1000e, sriov, vmxnet3, or vrdma.
- bandwidth
Limit number - The upper bandwidth limit of this network interface, in Mbits/sec.
- bandwidth
Reservation number - The bandwidth reservation of this network interface, in Mbits/sec.
- 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, or custom.
- device
Address string - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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_mac is true.
- ovf
Mapping string - Mapping of network interface to OVF network.
- physical
Function string - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- use
Static booleanMac - If true, the mac_address field is treated as a static MAC address and set accordingly.
- network_
id str - The ID of the network to connect this network interface to.
- adapter_
type str - The controller type. Can be one of e1000, e1000e, sriov, vmxnet3, or vrdma.
- bandwidth_
limit int - The upper bandwidth limit of this network interface, in Mbits/sec.
- bandwidth_
reservation int - The bandwidth reservation of this network interface, in Mbits/sec.
- int
- 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, or custom.
- device_
address str - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- key int
- 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_mac is true.
- ovf_
mapping str - Mapping of network interface to OVF network.
- physical_
function str - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- use_
static_ boolmac - If true, the mac_address field is treated as a static MAC address and set accordingly.
- network
Id String - The ID of the network to connect this network interface to.
- adapter
Type String - The controller type. Can be one of e1000, e1000e, sriov, vmxnet3, or vrdma.
- bandwidth
Limit Number - The upper bandwidth limit of this network interface, in Mbits/sec.
- bandwidth
Reservation Number - The bandwidth reservation of this network interface, in Mbits/sec.
- 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, or custom.
- device
Address String - The internally-computed address of this device, such as scsi:0:1, denoting scsi bus #0 and device unit 1.
- 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_mac is true.
- ovf
Mapping String - Mapping of network interface to OVF network.
- physical
Function String - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- use
Static BooleanMac - If true, the mac_address field is treated as a static MAC address and set accordingly.
VirtualMachineOvfDeploy, VirtualMachineOvfDeployArgs
- Allow
Unverified boolSsl Cert - Allow unverified ssl certificates while deploying ovf/ova from url.
- Deployment
Option string - The Deployment option to be chosen. If empty, the default option is used.
- Disk
Provisioning string - An optional disk provisioning. If set, all the disks in the deployed ovf will have the same specified disk type (e.g., thin provisioned).
- bool
- Allow properties with ovf:userConfigurable=false to be set.
- Ip
Allocation stringPolicy - The IP allocation policy.
- Ip
Protocol string - The IP protocol.
- Local
Ovf stringPath - The absolute path to the ovf/ova file in the local system.
- Ovf
Network Dictionary<string, string>Map - The mapping of name of network identifiers from the ovf descriptor to network UUID in the VI infrastructure.
- Remote
Ovf stringUrl - URL to the remote ovf/ova file to be deployed.
- Allow
Unverified boolSsl Cert - Allow unverified ssl certificates while deploying ovf/ova from url.
- Deployment
Option string - The Deployment option to be chosen. If empty, the default option is used.
- Disk
Provisioning string - An optional disk provisioning. If set, all the disks in the deployed ovf will have the same specified disk type (e.g., thin provisioned).
- bool
- Allow properties with ovf:userConfigurable=false to be set.
- Ip
Allocation stringPolicy - The IP allocation policy.
- Ip
Protocol string - The IP protocol.
- Local
Ovf stringPath - The absolute path to the ovf/ova file in the local system.
- Ovf
Network map[string]stringMap - The mapping of name of network identifiers from the ovf descriptor to network UUID in the VI infrastructure.
- Remote
Ovf stringUrl - URL to the remote ovf/ova file to be deployed.
- allow
Unverified BooleanSsl Cert - Allow unverified ssl certificates while deploying ovf/ova from url.
- deployment
Option String - The Deployment option to be chosen. If empty, the default option is used.
- disk
Provisioning String - An optional disk provisioning. If set, all the disks in the deployed ovf will have the same specified disk type (e.g., thin provisioned).
- Boolean
- Allow properties with ovf:userConfigurable=false to be set.
- ip
Allocation StringPolicy - The IP allocation policy.
- ip
Protocol String - The IP protocol.
- local
Ovf StringPath - The absolute path to the ovf/ova file in the local system.
- ovf
Network Map<String,String>Map - The mapping of name of network identifiers from the ovf descriptor to network UUID in the VI infrastructure.
- remote
Ovf StringUrl - URL to the remote ovf/ova file to be deployed.
- allow
Unverified booleanSsl Cert - Allow unverified ssl certificates while deploying ovf/ova from url.
- deployment
Option string - The Deployment option to be chosen. If empty, the default option is used.
- disk
Provisioning string - An optional disk provisioning. If set, all the disks in the deployed ovf will have the same specified disk type (e.g., thin provisioned).
- boolean
- Allow properties with ovf:userConfigurable=false to be set.
- ip
Allocation stringPolicy - The IP allocation policy.
- ip
Protocol string - The IP protocol.
- local
Ovf stringPath - The absolute path to the ovf/ova file in the local system.
- ovf
Network {[key: string]: string}Map - The mapping of name of network identifiers from the ovf descriptor to network UUID in the VI infrastructure.
- remote
Ovf stringUrl - URL to the remote ovf/ova file to be deployed.
- allow_
unverified_ boolssl_ cert - Allow unverified ssl certificates while deploying ovf/ova from url.
- deployment_
option str - The Deployment option to be chosen. If empty, the default option is used.
- disk_
provisioning str - An optional disk provisioning. If set, all the disks in the deployed ovf will have the same specified disk type (e.g., thin provisioned).
- bool
- Allow properties with ovf:userConfigurable=false to be set.
- ip_
allocation_ strpolicy - The IP allocation policy.
- ip_
protocol str - The IP protocol.
- local_
ovf_ strpath - The absolute path to the ovf/ova file in the local system.
- ovf_
network_ Mapping[str, str]map - The mapping of name of network identifiers from the ovf descriptor to network UUID in the VI infrastructure.
- remote_
ovf_ strurl - URL to the remote ovf/ova file to be deployed.
- allow
Unverified BooleanSsl Cert - Allow unverified ssl certificates while deploying ovf/ova from url.
- deployment
Option String - The Deployment option to be chosen. If empty, the default option is used.
- disk
Provisioning String - An optional disk provisioning. If set, all the disks in the deployed ovf will have the same specified disk type (e.g., thin provisioned).
- Boolean
- Allow properties with ovf:userConfigurable=false to be set.
- ip
Allocation StringPolicy - The IP allocation policy.
- ip
Protocol String - The IP protocol.
- local
Ovf StringPath - The absolute path to the ovf/ova file in the local system.
- ovf
Network Map<String>Map - The mapping of name of network identifiers from the ovf descriptor to network UUID in the VI infrastructure.
- remote
Ovf StringUrl - URL to the remote ovf/ova file to be deployed.
VirtualMachineVapp, VirtualMachineVappArgs
- Properties Dictionary<string, string>
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- Properties map[string]string
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- properties Map<String,String>
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- properties {[key: string]: string}
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- properties Mapping[str, str]
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- properties Map<String>
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
VirtualMachineVtpm, VirtualMachineVtpmArgs
- Version string
- The version of the TPM device. Default is 2.0.
- Version string
- The version of the TPM device. Default is 2.0.
- version String
- The version of the TPM device. Default is 2.0.
- version string
- The version of the TPM device. Default is 2.0.
- version str
- The version of the TPM device. Default is 2.0.
- version String
- The version of the TPM device. Default is 2.0.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.