taliesins / terraform-provider-hyperv

HyperV provider for Terraform
Mozilla Public License 2.0
225 stars 80 forks source link

feat: Add support for Add-VMGpuPartitionAdapter #269

Open nenkoru opened 2 months ago

nenkoru commented 2 months ago

Closes #268

Opted for InstancePath selection instead of by name of the gpu adapter considering the case when there could be two identical gpu adapters with the same name on the host machine. Eg 2x3090 or so.

all the info regarding scripts could be found in this gist [1] [1] https://gist.github.com/nenkoru/acadf3039c94525f3bc3a7329cfdfcd1

also opted-out of copying the driver into the virtual machine as I think it is out of scope of this project

nenkoru commented 2 months ago

Works fine for me, tested a couple of times with different cases except for the data source Need a comment on the instancePath solution vs. a name of a GPU, will add a corresponding docs change