rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
253 stars 220 forks source link

PCI Devices on vSphere #1030

Open neilclark-bgn opened 1 year ago

neilclark-bgn commented 1 year ago

Hello,

We're running a couple of RKE2 clusters, managed via Rancher server using Terraform.

We have some GPUs in those clusters, which currently get added to nodes manually. Once we provision nodes via Terraform, we power them down, add the GPU, then power them back up again.

I am wondering if it is possible to add PCI devices to vSphere VMs via the Rancher2 terraform provider? If not, is this something you would consider as a feature request please?

nicewrld commented 1 year ago

+1, also needing this, running RKE2 w/ Rancher 2.7.3

We're using NVIDIA Grid for vGPU, but the ability to add any of the three types would be useful.

DaliborLabudovicGP commented 1 year ago

+1, also need tis

avthart commented 1 year ago

+1 Would be great to have support for adding PCI devices (e.g. NVIDIA GPU)

ionfury commented 9 months ago

+1, running on harvester 1.1 and rancher 2.7.6

iosifnicolae2 commented 8 months ago

Most likely we can automate this by updating each VM manifest (which is of type kubevirt.io.virtualmachine) following: https://kubevirt.io/user-guide/virtual_machines/host-devices/#preparation-of-mediated-devices-such-as-vgpu

And then, to fully automate this we can create a Harvester Addon that will run a CronJob to assign the right PCI device to each VM by updating each VM manifests.