i m trying to customize Fortiweb os with terraform, VMware tools is already installed on vm but i get this output error
Error:
│ Virtual machine customization failed on "/Datacenter_flexos/vm/fortiweb":
│
│ An error occurred while customizing VM fortiweb. For details reference the log file /var/log/vmware-imc/toolsDeployPkg.log in the guest OS.
this is my code:
resource "vsphere_virtual_machine" "Fortiweb" {
name = "fortiweb"
datastore_id = data.vsphere_datastore.datastore.id
host_system_id = data.vsphere_host.esxi_host.id
resource_pool_id = vsphere_resource_pool.resource_pool_fortigate.id
num_cpus = data.vsphere_virtual_machine.fortiweb-template.num_cpus
num_cores_per_socket = data.vsphere_virtual_machine.fortiweb-template.num_cores_per_socket
guest_id = data.vsphere_virtual_machine.fortiweb-template.guest_id
firmware = "bios"
scsi_type = data.vsphere_virtual_machine.fortiweb-template.scsi_type
network_interface {
network_id = data.vsphere_network.dmz_network.id
adapter_type = data.vsphere_virtual_machine.fortiweb-template.network_interface_types[0]
}
disk {
label = "fortiweb-disk"
size = data.vsphere_virtual_machine.fortiweb-template.disks[0].size
thin_provisioned = true
}
cdrom {
client_device = true
}
wait_for_guest_net_routable = true
clone {
template_uuid = data.vsphere_virtual_machine.fortiweb-template.id
timeout = 120
customize {
linux_options {
host_name = "fortiweb"
domain = "flexos.tn"
hw_clock_utc = true
}
network_interface {
ipv4_address = "192.168.90.12"
ipv4_netmask = 24
}
network_interface {
ipv4_address = "192.168.90.13"
ipv4_netmask = 24
}
ipv4_gateway = "192.168.90.9"
dns_server_list = ["8.8.8.8"]
}
}
} , i didn't why !!
NB: i just fully automated way to deploy the fortiweb vm with with a specific Ip
NB: even i try to do manually deploy vm from template (template of fortiweb ) , in the customization guest os it shows no guest item found
NB: vSphere 8.0 update3 /fortiweb I've tried 2 versions 7.2.11 and 7.4.9
Could u help me to solve this issue please