diff --git a/vsphere/virtual_machine_config_structure.go b/vsphere/virtual_machine_config_structure.go index 28f061e5f..b4028e314 100644 --- a/vsphere/virtual_machine_config_structure.go +++ b/vsphere/virtual_machine_config_structure.go @@ -127,12 +127,14 @@ func schemaVirtualMachineConfigSpec() map[string]*schema.Schema { "hv_mode": { Type: schema.TypeString, Optional: true, + Default: string(types.VirtualMachineFlagInfoVirtualExecUsageHvAuto), Description: "The (non-nested) hardware virtualization setting for this virtual machine. Can be one of hvAuto, hvOn, or hvOff.", ValidateFunc: validation.StringInSlice(virtualMachineVirtualExecUsageAllowedValues, false), }, "ept_rvi_mode": { Type: schema.TypeString, Optional: true, + Default: string(types.VirtualMachineFlagInfoVirtualMmuUsageAutomatic), Description: "The EPT/RVI (hardware memory virtualization) setting for this virtual machine. Can be one of automatic, on, or off.", ValidateFunc: validation.StringInSlice(virtualMachineVirtualMmuUsageAllowedValues, false), },