Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cannot find OS family for guest ID "other5xLinux64Guest": could not find guest ID "other5xLinux64Guest" #163

Open
gowthamakanthan opened this issue Jul 15, 2024 · 2 comments

Comments

@gowthamakanthan
Copy link

Team,

Am getting the following error while executing tf plan based on the latest tag.

Error:

Error: cannot find OS family for guest ID "other5xLinux64Guest": could not find guest ID "other5xLinux64Guest"

Code:

module "vm_creation" {
  for_each        = var.vm
  source          = "Terraform-VMWare-Modules/vm/vsphere"
  version         = "3.8.0"
  cpu_number      = var.vm_cpu
  dc              = var.dc_name[var.vsphere_datacentre]
  disk_datastore  = var.datastore_name[var.vsphere_datacentre]
  dns_server_list = var.dns_list
  dns_suffix_list = var.dns_search
  domain          = var.domain_name
  network         = each.value.network
  ram_size        = var.vm_ram
  staticvmname    = "${var.vsphere_datacentre}-${each.value.vmname}"
  vmfolder        = var.folder_name
  vmgateway       = each.value.vmgateway
  vmrp            = var.pool_name[var.vsphere_datacentre]
  vmtemp          = var.vm_template[var.vsphere_datacentre]
  io_share_level  = ["normal", "normal"]
}

@damnsam
Copy link
Contributor

damnsam commented Jul 15, 2024

What version of vCenter are you connecting to? A quick google suggests that you may be using a vm template too "new" for the version of vCenter you are deploying to, and may require a manual edit of the vmtx file to say "other4xLinux64Guest"

@gowthamakanthan
Copy link
Author

@damnsam Thanks for the followup. Am working with 7.0.3 vcenter version.

Looks like the code has downloaded thehashicorp/vsphere v2.2.0 plugin, Have tried to use the tf init -upgrade and which downloaded the latest plugin (hashicorp/vsphere v2.8.2) which fixed the issue. please close this.

Refer:
https://github.com/Terraform-VMWare-Modules/terraform-vsphere-vm/blob/master/versions.tf#L5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants