-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic if GRID vGPU is attached to VM #1265
Comments
We have this same set up and experience the same issues with the above versions. We use packer to bake in vGPU profile and we see a terraform panic attempting to spin this up. Backing down to v1.18.3 proved as a workaround for now. Would love to see this addressed with Terraform also being able to apply vGPU profiles to templates which do not have them baked in. This would match the Packer functionality to do the same, and keep us from creating repetitive templates. |
We have the same issue using a temple with vgpu included. also a similar issue with destroying a vm if the vgpu is added after build. |
Likewise here, same issues as above and it's blocking some important development work we're doing. Any help around this problem appreciated. |
This is the patch that we use to prevent panic:
|
Thank you @skywalk7, will give this a try. Hopefully something like this can get baked into the official provider soon. It's become difficult to juggle this with older bugs from being stuck on 18.X. |
Original implementation of PciPassthrough can't be use for vGPU because it's link to host systemId
Original implementation of PciPassthrough can't be use for vGPU because it's link to host systemId
Original implementation of PciPassthrough can't be use for vGPU because it's link to host systemId
Original implementation of PciPassthrough can't be use for vGPU because it's link to host systemId
Hi, I did a PR to support vGPU, waiting for review |
Encountered this bug today. Not the easiest to pinpoint and diagnose especially while running a Terraform config that manages a large amount of resources. Would love to see a permanent fix in the stable releases of the provider. |
I agree. We're currently stuck between either staying with the old provider or not provisioning vGPU-enabled VMs via Terraform. |
We're also affected by this issue. We're currently forced to:
It would be great to both be able to create and manage VMs with vGPU via Terraform. |
There's an open PR for product manager and maintainer review. Thanks for adding your 👍🏻 to the original description. Ryan |
Hey @tenthirtyam , Yea, I have see the PR (#1378) if that's what you're referring to. Hoping that this gets a chance to be reviewed soon since it has been open for 9 months. Thanks! |
I'll plan to discuss this one with the HashiCorp engineering team in January. Ryan |
Adds conditional to avoid a provider panic when a vGPU is added as a PCI device outside of Terraform to a virtual machine. #1265 Signed-off-by: Ryan Johnson <[email protected]>
Adds conditional to avoid a provider panic when a vGPU is added as a PCI device outside of Terraform to a virtual machine. #1265 Signed-off-by: Ryan Johnson <[email protected]>
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. |
Original implementation of PciPassthrough can't be use for vGPU because it's link to host systemId
Terraform Version
0.13.5 / 0.12.8
vSphere Provider Version
1.24.2
Affected Resource(s)
vsphere_virtual_machine
Panic Output
Expected Behavior
Terraform does not panic, v1.18.3 works fine.
Actual Behavior
The VM will boot and is operational, however Terraform panics and does not complete. Subsequent
terraform apply
commands fail unless the vGPU is removed.Steps to Reproduce
Either attach a GRID vGPU when the VM is powered off, then boot or using a packer image with vGPU profile baked in. When I run
terraform apply
, I get a panic. This appears to be due to the PCI passthrough interface conversion.Important Factoids
Community Note
The text was updated successfully, but these errors were encountered: