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
Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
Do not leave "+1" or other comments that do not add relevant information or questions.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
1.7.5
Terraform Provider
2.10.0
VMware vSphere
8.0.3.00300
Description
I am attempting to create a Windows VM using a sysprepped template from the Content Library. However, the process failed during customization. Upon reviewing the customization logs, I found that the failure occurred when trying to attach the network.
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
resource"vsphere_virtual_machine""tf-win-02" {
name="tf-win-02"resource_pool_id=data.vsphere_compute_cluster.dc-dev-local-cluster-dev-local.resource_pool_idnum_cpus=4memory=8192# Unit in MBfirmware="efi"efi_secure_boot_enabled=truenested_hv_enabled=truevvtd_enabled=truevbs_enabled=truenetwork_interface {
network_id=data.vsphere_network.dc-dev-local-vl-123.idadapter_type="vmxnet3"
}
disk {
unit_number=0label="disk0"size=50eagerly_scrub=falsethin_provisioned=true
}
disk {
unit_number=1label="disk1"size=5eagerly_scrub=falsethin_provisioned=true
}
clone {
template_uuid=data.vsphere_content_library_item.Template-WIN2019.idcustomize {
timeout=20windows_options {
computer_name="tf-win-02"# requiredadmin_password=var.vm_pass# recommended to set passwordtime_zone="165"# Dubai timezone
}
network_interface {
ipv4_address="x.x.x.x"ipv4_netmask=24dns_server_list=["x.x.x.x","x.x.x.x"]
}
ipv4_gateway="x.x.x.x"
}
}
}
Debug Output
An error occurred while customizing VM tf-win-02. For details reference the log file C:/Windows/TEMP/vmware-imc/guestcust.log in the guest OS.││ The virtual machine has not been deleted to assist with troubleshooting. If│ corrective steps are taken without modifying the "customize" block of the│ resource configuration, the resource will need to be tainted before trying│ again. For more information on how to do this, see the following page:│ https://www.terraform.io/docs/commands/taint.html│││ with vsphere_virtual_machine.tf-win-02,│ on main.tf line 45, in resource "vsphere_virtual_machine" "tf-win-02":│ 45: resource "vsphere_virtual_machine" "tf-win-02" {
Panic Output
No response
Expected Behavior
It should customized the newly created vm and attached the network
Actual Behavior
It should customized the newly created vm and attached the network
Steps to Reproduce
Provision a vm from a syspreped template
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered:
Hello, I am experiencing a similar issue, I have a question.
I only hit this issue when trying to deploy a Windows Server 2025
I can use the same terraform code to deploy a Windows Server 2022 without issue.
What version of Windows are you trying to deploy?
@datacore-bwynne I'm encountering this issue with nearly all Windows templates, including WIN 2016, 2019, and 2022. The main problem is with templates that are Sysprepped. If the template isn’t Sysprepped, it provisions without any issues.
Community Guidelines
Terraform
1.7.5
Terraform Provider
2.10.0
VMware vSphere
8.0.3.00300
Description
I am attempting to create a Windows VM using a sysprepped template from the Content Library. However, the process failed during customization. Upon reviewing the customization logs, I found that the failure occurred when trying to attach the network.
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Debug Output
Panic Output
No response
Expected Behavior
It should customized the newly created vm and attached the network
Actual Behavior
It should customized the newly created vm and attached the network
Steps to Reproduce
Provision a vm from a syspreped template
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: