hashicorp / terraform-provider-vsphere

Terraform Provider for VMware vSphere
https://registry.terraform.io/providers/hashicorp/vsphere/
Mozilla Public License 2.0
623 stars 453 forks source link

Add support for VM virtual NIC in UPT mode (DPU acceleration) #1903

Closed cleeistaken closed 9 months ago

cleeistaken commented 1 year ago

Community Guidelines

Description

vSphere 8 introduces network function offload to a DPU through VMware Distributed Services Engine (DSE). To benefit from DPU acceleration, VM virtual NIC must be configured in Universal Pass-Through (UPT) mode. This capability is available in the vSphere API.

To enable UPT mode

The vsphere_network data source might need an additional attribute to indicate if the network is DPU accelerated.

Use Case(s)

Deployment of high performance VM taking advantage of DPU acceleration.

Potential Terraform Provider Configuration

data "vsphere_network" "network" {
  name          = "VM Network"
  datacenter_id = data.vsphere_datacenter.datacenter.id
}

memory = 2048
memory_reservation = data.vsphere_network.network.offloaded ? 2048 : 0

network_interface {
    network_id = data.vsphere_network.network.id
    upt_mode = data.vsphere_network.network.offloaded 
    adapter_type = data.vsphere_virtual_machine.template.network_interface_types[0]
  }

References

No response

github-actions[bot] commented 1 year ago

Hello, cleeistaken! 🖐

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.

github-actions[bot] commented 10 months ago

Marking this issue as stale due to inactivity in the past 180 days. This helps us focus on the active issues. If this issue is reproducible with the latest version of the provider, please comment. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] commented 8 months ago

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.