terraform-provider-vcd: [3.3.1 vcd_vapp_vm BUG] Windows/Linux VM created does not customize ip, admin password with vCloud 10.2.1.17444397 + vCenter 7.0 U2b

This problem seems to occur after vCenter is upgraded to 7.0 U2b. So I think the problem is with the provider. Manual creation of VM worked fine with customization.

Terraform Version

0.13 latest

Affected Resource(s)

Please list the resources as a list, for example:

  • vcd_vapp_vm

Terraform Configuration Files

resource “vcd_vapp_vm” “test-vm” { vapp_name = “test-vapp” org = “test-org” vdc = “test-vdc” name = “test-vm” computer_name = “test-vm” catalog_name = “test-catalog” template_name = “test-template” memory = 8192 cpus = 4 cpu_cores = 1

network { type = “org” name = “test-network” ip_allocation_mode = “POOL” is_primary = true adapter_type = “VMXNET3” }

customization { enabled = true force = false change_sid = true allow_local_admin_password = true auto_generate_password = false admin_password = “somePasswordWithoutWeirdSymbolForTesting” }

}

On Windows the command instead of export is set.

Expected Behavior

Windows customization should configure IP and admin password etc.

Actual Behavior

IP is not configured, and admin password not set.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23

Most upvoted comments

Yes it works with GUI with vCloud 10.2.1.17444397 and vCenter 7.0 U2b. Just that Terraform provider doesnt work.

Thanks. Double checking the situation.

  • guest customization worked using terraform provider with 10.2.1.17444397 but before vCenter was upgraded to 7.0 U2b? (which version of Terraform provider was that)
  • customization stopped working after upgrading vCenter to 7.0 U2b (but having the same VCD version 10.2.1.17444397 and the same terraform provider version .

Yes to the above question according to my knowledge now.