Vsphere-clone failed GET IP

Hello,

When we try to assign an IP address with the builder vsphere-clone we get an error “unexpected EOF”

Do you have an example of HCL file please ?

Below my HCL file :

source "vsphere-clone" "W2K19" {
  vcenter_server      = "vce0421.*****"
  username            = "svc_vcenter_packer****"
  password            = "@lP******"
  cluster             = "Cluster_****"
  datacenter          = "DC4-LAB"
  folder              = "Template/vRA/WindowsServer/FY23Q1"
  datastore           = "prov_*****"
  host                = "dc4prhci*****"
  insecure_connection = "true"
  template            = "W2K19-2023-Q1-GIEC-20230127"

  vm_name              = "EMEA_Win2019_FY23Q1-001"
  winrm_password       = "@l*****"
  winrm_username       = "svc_alpha****"
  CPUs                 = "4"
  RAM                  = "8192"
  RAM_reserve_all      = true
  communicator         = "winrm"
  disk_controller_type = ["lsilogic-sas"]
  firmware             = "bios"
  floppy_files         = ["Setup/ConfigureRemotingForAnsible.ps1", "Setup/create_local_account.ps1"]
  storage {
    disk_size             = "32768"
    disk_thin_provisioned = true
  }
  customize {
    windows_options {
      computer_name = "W2K19-2023-Q1-GIEC-20230127"
    }
	network_interface {
      ipv4_address = "11.129.**.***"
      ipv4_netmask = "21"
	}
	ipv4_gateway    = "11.129.**.*"
    dns_server_list = ["11.128.***.***"]
  }

  convert_to_template = "true"
}

build {
  sources = ["source.vsphere-clone.W2K19"]

  provisioner "windows-shell" {
    inline = ["dir c:\\"]
  }
}

Thx for your help.

Hello community,

where I can find an example of HCL file for Windows with “vSphere Clone” and static IP assignment please?