You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/r/virtual_machine.html.markdown
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -616,6 +616,8 @@ The following options are general virtual machine and provider workflow options:
616
616
617
617
*`clone` - (Optional) When specified, the virtual machine will be created as a clone of a specified template. Optional customization options can be submitted for the resource. See [creating a virtual machine from a template](#creating-a-virtual-machine-from-a-template) for more information.
618
618
619
+
~> **NOTE:** Cloning requires vCenter Server and is not supported on direct ESXi host connections.
620
+
619
621
*`extra_config_reboot_required` - (Optional) Allow the virtual machine to be rebooted when a change to `extra_config` occurs. Default: `true`.
620
622
621
623
*`custom_attributes` - (Optional) Map of custom attribute ids to attribute value strings to set for virtual machine. Please refer to the [`vsphere_custom_attributes`][docs-setting-custom-attributes] resource for more information on setting custom attributes.
@@ -661,14 +663,10 @@ The following options are general virtual machine and provider workflow options:
661
663
662
664
*`network_interface` - (Required) A specification for a virtual NIC on the virtual machine. See [network interface options](#network-interface-options) for more information.
663
665
664
-
*`pci_device_id` - (Optional) List of host PCI device IDs in which to create PCI passthroughs.
665
-
666
-
*`shared_pci_device_id` - (Optional) A shared PCI device ID to create PCI passthrough.
667
-
668
-
~> **NOTE:** Cloning requires vCenter Server and is not supported on direct ESXi host connections.
669
-
670
666
*`ovf_deploy` - (Optional) When specified, the virtual machine will be deployed from the provided OVF/OVA template. See [creating a virtual machine from an OVF/OVA template](#creating-a-virtual-machine-from-an-ovf-ova-template) for more information.
671
667
668
+
*`pci_device_id` - (Optional) List of host PCI device IDs in which to create PCI passthroughs.
669
+
672
670
*`replace_trigger` - (Optional) Triggers replacement of resource whenever it changes.
673
671
674
672
For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.)
@@ -685,6 +683,16 @@ For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_i
685
683
686
684
*`scsi_bus_sharing` - (Optional) The type of SCSI bus sharing for the virtual machine SCSI controller. One of `physicalSharing`, `virtualSharing`, and `noSharing`. Default: `noSharing`.
687
685
686
+
*`shared_pci_device_id` - (Optional) List of shared PCI device(s) to create
687
+
shared PCI passthrough.
688
+
689
+
For example, attaching a vGPU to the virtual machine:
690
+
`shared_pci_device_id = ["grid_a100d-40c"]`
691
+
692
+
~> **NOTE:** The use of vGPU requires that the VM has memory reservation set equal
693
+
to the amount of provisioned memory. This can be accomplished by leveraging
694
+
the [`memory_reservation`](#memory_reservation) option.
695
+
688
696
*`storage_policy_id` - (Optional) The ID of the storage policy to assign to the home directory of a virtual machine.
689
697
690
698
*`tags` - (Optional) The IDs of any tags to attach to this resource. Please refer to the [`vsphere_tag`][docs-applying-tags] resource for more information on applying tags to virtual machine resources.
0 commit comments