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,

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.
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,
Please find the error on the attached image,
Please find my terraform code below
Can anyone please let me know if i done something wrong.