Hey, I’m creating a VM from a local OVF just fine, but when trying to add another disk to it, i get this error,
│ Error: error reconfiguring virtual machine: error reconfiguring virtual machine: File is larger than the maximum size supported by datastore ‘’
│
│ with vsphere_virtual_machine.log_lnx_vm[1],
│ on vSphere.tf line 106, in resource “vsphere_virtual_machine” “log_lnx_vm”:
│ 106: resource “vsphere_virtual_machine” “log_lnx_vm” {
│
╵
╷
│ Error: error reconfiguring virtual machine: error reconfiguring virtual machine: File is larger than the maximum size supported by datastore ‘’
│
│ with vsphere_virtual_machine.log_lnx_vm[2],
│ on vSphere.tf line 106, in resource “vsphere_virtual_machine” “log_lnx_vm”:
│ 106: resource “vsphere_virtual_machine” “log_lnx_vm” {
│
╵
╷
│ Error: error reconfiguring virtual machine: error reconfiguring virtual machine: File is larger than the maximum size supported by datastore ‘’
│
│ with vsphere_virtual_machine.log_lnx_vm[0],
│ on vSphere.tf line 106, in resource “vsphere_virtual_machine” “log_lnx_vm”:
│ 106: resource “vsphere_virtual_machine” “log_lnx_vm” {
this is my terraform resource
resource “vsphere_virtual_machine” “log_lnx_vm” {
count = 3
name = “log_lnx_${count.index + 1}”
resource_pool_id = data.vsphere_resource_pool.pool.id
datastore_id = data.vsphere_datastore.EMC_MainVolume.id
datacenter_id = data.vsphere_datacenter.dc.id
host_system_id = data.vsphere_host.host.id
folder = “Customers-Images”
firmware = “efi”
#scsi_type = “lsilogic-sas”
num_cpus = 4 # Assuming similar to cp_win
memory = 16384 # Assuming similar to cp_win
nested_hv_enabled = true
wait_for_guest_net_timeout = 0
wait_for_guest_ip_timeout = 0
network_interface {
network_id = data.vsphere_network.network.id
}
disk {
#scsi_type = “pvscsi”
label = “disk0”
size = 524288 # 512GB in MB
thin_provisioned = true
unit_number = 2
}
ovf_deploy {
disk_provisioning = “thin”
allow_unverified_ssl_cert = true
local_ovf_path = “/home/achen/repos/terraform/vm/linux.ova” # Specify the path for log_lnx OVA
ip_protocol = “IPV4”
ip_allocation_policy = “DHCP”
ovf_network_map = {
“Network 1” = data.vsphere_network.network.id
}
}
}
Am I doing it wrong somehow ?
It’s worth mentioning that when adding the disk manually i succed jsut fine.
Please advice,
Thanks in advance.