Closed rmmr closed 1 year ago
Hello, rmmr! 🖐
Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.
If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.
So it appears setting host_system_id
was required. I was using resource_pool_id
.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Guidelines
Terraform
v1.4.6
Terraform Provider
v2.4.0
VMware vSphere
8.0.0
Description
I'm attempting to create a
vsphere_virtual_machine
resource from a template. Assigningpci_device_id
to our nvidia a30 gpu with PCI passthrough results in the following error:If i comment out
pci_device_id
, create the resource. Then uncommentpci_device_id
and re-apply, everything works fine, and the device is successfully attached.I'm suspecting this could be because attaching a PCI passthrough device requires a reboot. See: https://kb.vmware.com/s/article/82568
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
resource "vsphere_virtual_machine" "node" {
memory = 4096 memory_reservation = 4096
pci_device_id = ["0000:25:00.0"] // # Id of our A30
clone { template_uuid = data.vsphere_virtual_machine.template.id linked_clone = false }
}
Debug Output
Panic Output
No response
Expected Behavior
Successful creation of the
vsphere_virtual_machine
resource whilstpci_device_id
is set to a passthrough device.Actual Behavior
Resource
vsphere_virtual_machine
fails to create with error:Steps to Reproduce
Have a
Create a minimal terraform configuration so that
vsphere_virtual_machine
is created:Environment Details
No response
Screenshots
No response
References
No response