net / http:TLS握手超时

时间:2017-10-30 06:58:47

标签: vmware terraform

在使用terraform计划构建时,我收到了错误消息。这是我的.tf文件:

provider "vsphere" {
  user           = "aaa"
  password       = "aaa"
  vsphere_server = "172.22.1.139"
  allow_unverified_ssl = "true"
}

resource "vsphere_folder" "frontend" {
  path = "VirtualMachines"
  datacenter = "A2MS0110-VMFS5"
}

resource "vsphere_virtual_machine" "FIRST_VM" {
  name   = "FIRST_VM"
  vcpu   = 1
  memory = 2048
  datacenter = "A2MS0110-VMFS5"
  network_interface {
    label = "VM Network"
  }
  disk {
    datastore = "A2MS0110-VMFS5"
    vmdk = "/demo2"
  }
}

我收到以下错误:

* provider.vsphere: Error setting up client: Post https://172.22.1.139/sdk: net/http: TLS handshake timeout

这是网络问题还是配置错误?

0 个答案:

没有答案