terraform-provider-rancher2 icon indicating copy to clipboard operation
terraform-provider-rancher2 copied to clipboard

PCI Devices on vSphere

Open neilclark-bgn opened this issue 2 years ago • 5 comments

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?

neilclark-bgn avatar Nov 11 '22 10:11 neilclark-bgn

+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.

nicewrld avatar Jun 08 '23 15:06 nicewrld

+1, also need tis

DaliborLabudovicGP avatar Jun 08 '23 15:06 DaliborLabudovicGP

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

avthart avatar Jul 19 '23 06:07 avthart

+1, running on harvester 1.1 and rancher 2.7.6

ionfury avatar Oct 18 '23 17:10 ionfury

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.

iosifnicolae2 avatar Nov 04 '23 20:11 iosifnicolae2