Skip to content
This repository was archived by the owner on Jun 3, 2023. It is now read-only.

Failed to instantiate provider "xenserver" to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5] #45

Description

@Antonynixson

Hello There,

I'm trying to learn Terraform, i have a Citrix XenServer hypervisor installed on server that I want to use with. I just installed terraform and xenserver provider, also can able to initiate the terraform code But while i do terraform plan, terraform apply i will be getting the below issue,

[root@localhost test]# terraform plan
Error: Failed to instantiate provider "xenserver" to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5]
[root@localhost test]#

Please find the error on the attached image,

plan_issue

Please find my terraform code below

# Configure the XenServer Provider
provider "xenserver" {
  url      = "http://192.168.231.12/"
  username = "user"
  password = "password"
}

resource "xenserver_vm" "test" {
  base_template_name = "MYTEST"
  network_uuid = "978b1b0f-0d08-d38f-afad-dd1c8ff7c45d"
  name_label = "test"
  static_mem_min = 8589934592
  static_mem_max = 8589934592
  dynamic_mem_min = 8589934592
  dynamic_mem_max = 8589934592
  vcpus = 1
  boot_order = "c"

  hard_drive {
    is_from_template = true
    user_device = "0"
  } # Template VM HDD
  cdrom {
    is_from_template = true
    user_device = "3"
  }
  network_interface {
    device = 0
    mtu = 1500
    mac = ""
    other_config {
        ethtool-gso = "off"
        ethtool-ufo = "off"
        ethtool-tso = "off"
        ethtool-sg = "off"
        ethtool-tx = "off"
        ethtool-rx = "off"
    }
  }
}

Can anyone please let me know if i done something wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions