Closed Antonynixson closed 4 years ago
Hello all,
i apologise for the inconvenience, i forgot to tell you that am using XenServer 7.6 ?? does this provider support XenServer 7.6 ??? since you have tested successfully against XenServer 7.2 ??
Hello all,
i just enabled terraform debug logs and get the logs, please find it below, terraform-debug-logs.txt
MyCode
# Configure the XenServer Provider
provider "xenserver" {
url = "http://192.168.200.10/"
username = "username"
password = "password"
}
# // Create a new virtual machine
resource "xenserver_vm" "test-vm-terraform" {
base_template_name = "centos7-fresh"
name_label = "test"
static_mem_min = 8589934592
static_mem_max = 8589934592
dynamic_mem_min = 8589934592
dynamic_mem_max = 8589934592
vcpus = 4
boot_order = "c"
hard_drive {
is_from_template = true
user_device = "0"
}
cdrom {
is_from_template = true
user_device = "3"
}
network_interface {
network_uuid = "4345a519-33f3-5fd3-8da3-4de550d90888"
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"
auto_poweron = "true"
}
}
}
resource "xenserver_vdi" "vdi" {
sr_uuid = "626008a3-bd82-40fc-37f5-2eae2635a07a"
name_label = "test-vdi"
size = 20073741824
}
Hello all,
Have fixed the issue by following [https://github.com/terra-farm/terraform-provider-xenserver/issues/28], Hence closing this case.
Hello there,
i'm facing a issue like when i ran the terraform code it will create a template only it doesn't launch vm !?
Please find My terraform code below,
Sample output terraform init
terraform plan
terraform apply
terraform show
Screenshot of my xenserver console here i can see the template only, it does not launch any vm ? can anyone please let me know if i did anything wrong ? or i need to add something ?
Thanks, Antonynixson