From 0fc86ebe7b0a80f5fc63c997c31bcaa73c0e4354 Mon Sep 17 00:00:00 2001 From: Stoyan Zhelyazkov <156204153+spacegospod@users.noreply.github.com> Date: Wed, 8 May 2024 11:22:18 +0300 Subject: [PATCH] Revert "fix: remove default values for `ept_rvi_mode` and `hv_mode` (#2172)" This reverts commit 6d632139dafa481743bfeeaf38cf0b7926554e11. --- CHANGELOG.md | 8 ++++++++ vsphere/virtual_machine_config_structure.go | 2 ++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c08ff984..e9b07add6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # +## 2.8.1 (May 08, 2024) + +BUG FIX: + +* `resource/virtual_machine`: Reverts removing the default values for `ept_rvi_mode` and `hv_mode` + from the virtual machine configuration. + ([#2194](https://github.com/terraform-providers/terraform-provider-vsphere/pull/2194)) + ## 2.8.0 (May 07, 2024) BUG FIX: 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), },