A specified parameter was not correct: spec.identity for a windows guest box vsphere

207 views
Skip to first unread message

Kaleb Albee

unread,
Mar 8, 2016, 5:02:23 PM3/8/16
to Terraform
I am trying to figure out what field I am missing while trying to bring up a windows 2012r2 guest box inside a vsphere system.  I am currently using Terraform 0.6.12.  I have read there is an open issue at https://github.com/mkuzmin/terraform-vsphere/issues/18, however I have see conflicting results implying people have still gotten this done.  Has anyone figured out how to get terraform to work for a windows vsphere guest box?  And what are you doing different than my config below?

Using DEBUG as my error level I get the following

2016/03/08 13:59:00 [DEBUG] root: eval: *terraform.EvalApplyPost
2016/03/08 13:59:00 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* vsphere_virtual_machine.default: A specified parameter was not correct: spec.identity
2016/03/08 13:59:00 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* vsphere_virtual_machine.default: A specified parameter was not correct: spec.identity
2016/03/08 13:59:00 [ERROR] root: eval: *terraform.EvalOpFilter, err: 1 error(s) occurred:

* vsphere_virtual_machine.default: A specified parameter was not correct: spec.identity
2016/03/08 13:59:00 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* vsphere_virtual_machine.default: A specified parameter was not correct: spec.identity
2016/03/08 13:59:00 [TRACE] Exiting eval tree: vsphere_virtual_machine.default
2016/03/08 13:59:00 [DEBUG] vertex output.address, got dep: vsphere_virtual_machine.default
2016/03/08 13:59:00 [DEBUG] vertex provider.vsphere (close), got dep: vsphere_virtual_machine.default

and My config is 
##################################################
provider "vsphere" {
    user = ""
    password = ""
    vsphere_server = ""
    allow_unverified_ssl = "true"
}

resource "vsphere_virtual_machine" "default" {
  name = "tstterapp01"
  folder = "Development/DEV Automation"
  vcpu = 2
  memory = 4096
  datacenter = "Corporate"
  time_zone = "America/Denver"
  cluster = "Test-Cluster"
  domain = "vsphere.test"
  resource_pool = "Test-Cluster/Resources/DEV Automation"

  disk {
      datastore = "NEXSAN-DEV-01"
      template = "Development/DEV Automation/WIN2012R2-DEV-Template"
  }
  network_interface {
      label = "*TEST*"
  }
}

##################################################
Reply all
Reply to author
Forward
0 new messages