Closed wicadmin closed 1 year ago
I'm wondering if the ovf_source needs to be url encoded. Can you try with this string and let me know if it works.
https://192.168.5.70/folder/ubuntu-21.04-server-cloudimg-amd64.ova%3FdcPath%3Dha-datacenter%26dsName%3Ddatastore1"
I'm wondering if the ovf_source needs to be url encoded. Can you try with this string and let me know if it works.
https://192.168.5.70/folder/ubuntu-21.04-server-cloudimg-amd64.ova%3FdcPath%3Dha-datacenter%26dsName%3Ddatastore1"
Same error.
I am encountering this same error as well:
ovf_source = "https://192.168.1.41/folder/WINSRV2K19-TMP/WINSRV2K19-TMP.ovf?dcPath=ha-datacenter&dsName=HMS-VM-STORAGE-01"
Error: Plugin did not respond │ │ with esxi_guest.vmtest, │ on main.tf line 13, in resource "esxi_guest" "vmtest": │ 13: resource "esxi_guest" "vmtest" { │ │ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details. ╵
Stack trace from the terraform-provider-esxi_v1.10.2.exe plugin:
panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x10 pc=0x14dccb8]
goroutine 45 [running]: github.com/josenk/terraform-provider-esxi/esxi.guestCREATE(0xc0001d7f90, 0xc0004a0600, 0xb, 0xc0004a4288, 0x11, 0xc00005c2a0, 0x6b, 0x1cb7158, 0x1, 0x0, ...) github.com/josenk/terraform-provider-esxi/esxi/guest-create.go:211 +0x27d8 github.com/josenk/terraform-provider-esxi/esxi.resourceGUESTCreate(0xc00040a620, 0x15b05c0, 0xc0001d7f90, 0x2, 0x1d672a0) github.com/josenk/terraform-provider-esxi/esxi/resource_guest.go:403 +0x1aee github.com/hashicorp/terraform/helper/schema.(Resource).Apply(0xc000098a80, 0xc0004c2aa0, 0xc00033cbc0, 0x15b05c0, 0xc0001d7f90, 0x15be801, 0xc0001221d8, 0xc00021a4b0) github.com/hashicorp/terraform@v0.12.2/helper/schema/resource.go:286 +0x395 github.com/hashicorp/terraform/helper/schema.(Provider).Apply(0xc000098d80, 0xc0001158d8, 0xc0004c2aa0, 0xc00033cbc0, 0xc00016c628, 0xc0000c00f8, 0x15c07c0) github.com/hashicorp/terraform@v0.12.2/helper/schema/provider.go:285 +0xa5 github.com/hashicorp/terraform/helper/plugin.(GRPCProviderServer).ApplyResourceChange(0xc00008e4e0, 0x1837230, 0xc0004a3ce0, 0xc0004de9c0, 0xc00008e4e0, 0xc0004a3ce0, 0xc000523a50) github.com/hashicorp/terraform@v0.12.2/helper/plugin/grpc_provider.go:851 +0x88b github.com/hashicorp/terraform/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x1695480, 0xc00008e4e0, 0x1837230, 0xc0004a3ce0, 0xc0004c27d0, 0x0, 0x1837230, 0xc0004a3ce0, 0xc000402d80, 0x466) github.com/hashicorp/terraform@v0.12.2/internal/tfplugin5/tfplugin5.pb.go:3217 +0x222 google.golang.org/grpc.(Server).processUnaryRPC(0xc00004f500, 0x183f5d8, 0xc00004fe00, 0xc00011a100, 0xc000504ff0, 0x1d131c0, 0x0, 0x0, 0x0) google.golang.org/grpc@v1.18.0/server.go:966 +0x493 google.golang.org/grpc.(Server).handleStream(0xc00004f500, 0x183f5d8, 0xc00004fe00, 0xc00011a100, 0x0) google.golang.org/grpc@v1.18.0/server.go:1245 +0xcbd google.golang.org/grpc.(Server).serveStreams.func1.1(0xc00020e180, 0xc00004f500, 0x183f5d8, 0xc00004fe00, 0xc00011a100) google.golang.org/grpc@v1.18.0/server.go:685 +0xb2 created by google.golang.org/grpc.(*Server).serveStreams.func1 google.golang.org/grpc@v1.18.0/server.go:683 +0xa8
Error: The terraform-provider-esxi_v1.10.2.exe plugin crashed!
Enable Debugging. export TF_LOG=DEBUG
. In the debug output, you should be able to find the ovf_tool command... Try running it manually...
Question for both examples... Is this vSphere?
ok, this is ESXi free.
abandoned
Setting the ovf to esxi data store url causes the plugin to crash. Trying to use the same format I use in ovftool to point to the image already downloaded to the datastore:
The above URL works in a browser.
If I use this, it works: