hashicorp / packer-plugin-vsphere

Packer plugin for VMware vSphere Builder
https://www.packer.io/docs/builders/vsphere
Mozilla Public License 2.0
95 stars 90 forks source link

`configuration_parameters` does not apply `"migrate.encryptionMode" = "required"` #467

Open jlouisfoster opened 5 hours ago

jlouisfoster commented 5 hours ago

Summary

When attempting to add "migrate.encryptionMode" = "required" via configuration_parameters option in .pkr.hcl - this setting does not get added to the .vmx file; thus the change does not occur on the template/vm.

Reproduction Steps

Update configuration_parameters with "migrate.encryptionMode" = "required" and validate if Encrypted vMotion is set to required.

Plugin and Packer version

Packer v1.10.2

Simplified Packer Buildfile

  network_adapters {
    network      = var.vm_network
    network_card = var.network_card
  }

  configuration_parameters = {
    "tools.guest.desktop.autolock" = "FALSE"
    "log.keepOld" = "15"
    "migrate.encryptionMode" = "required"
  }

Operating system and Environment details

Windows Server 2022

Log Fragments and crash.log files

No error in logs

tenthirtyam commented 5 hours ago

I believe that this was meant for hashicorp/packer-plugin-vsphere for VMware vSphere where the configuration_parameters is an option.

I'll transfer the issue.