Closed ghost closed 6 years ago
I am getting this exact same error on vSphere 6.5, terraform v0.11.6, and vsphere provider v1.3.3.
Also occurs on: v1.3.2 v1.3.1 v1.3.0
Relevant-looking lines before the paste shown above:
2018-04-09T23:44:02.121-0400 [DEBUG] plugin.terraform-provider-vsphere_v1.3.3_x4: 2018/04/09 23:44:02 [DEBUG] CdromPostCloneOperation: CDROM devices located: cdrom-3002
2018-04-09T23:44:02.121-0400 [DEBUG] plugin.terraform-provider-vsphere_v1.3.3_x4: 2018/04/09 23:44:02 [DEBUG] CdromPostCloneOperation: Current resource set from configuration:
2018-04-09T23:44:02.121-0400 [DEBUG] plugin.terraform-provider-vsphere_v1.3.3_x4: 2018/04/09 23:44:02 [DEBUG] CdromPostCloneOperation: Reading existing devices
2018-04-09T23:44:02.121-0400 [DEBUG] plugin.terraform-provider-vsphere_v1.3.3_x4: 2018/04/09 23:44:02 [DEBUG] cdrom.0 (key 3002 at ide:1:0): Reading state
2018-04-09T23:44:02.121-0400 [DEBUG] plugin.terraform-provider-vsphere_v1.3.3_x4: 2018/04/09 23:44:02 [DEBUG] FindVirtualDevice: Looking for device with key 3002
2018-04-09T23:44:02.121-0400 [DEBUG] plugin.terraform-provider-vsphere_v1.3.3_x4: 2018/04/09 23:44:02 [DEBUG] FindVirtualDevice: Device found: cdrom-3002
2018-04-09T23:44:02.123-0400 [DEBUG] plugin.terraform-provider-vsphere_v1.3.3_x4: panic: runtime error: invalid memory address or nil pointer dereference
...
@emdantrim I worked around that specific problem by removing the CD-ROM (and the drive? not sure which one did the trick) from the original VM/template. And could go to the next step ;)
Hope this helps
@hellonico good to know, I'll check it out. Thanks!
Hey all, 1.4.0 gets released today which should have a fix for this. Keep an eye out!
Hey all! 1.4.0 was released earlier this week, so I'm just going to close this now. If anyone still has issues here please open a new issue with the new details/crash output.
Thanks!
This issue was originally opened by @hellonico as hashicorp/terraform#17622. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
should have created a VM and started it.
Actual Behavior
vm is created but terraform crashed, network settings are not done yet it seems ?
Steps to Reproduce
terraform init
terraform apply
Additional Context
References
vSphere 5.5.0